Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
+ Reply to Thread
Results 1 to 7 of 7

This is a discussion on Users being able to view above /home directory using WinSCP in the VPS & Dedicated forum
Hello Guys Im currently a vps customer of JaguarPC and I had this problem before that was solved by one of JaguarPC support staff. I ...

  1. #1
    JPC Member
    Join Date
    May 2008
    Posts
    4

    Exclamation Users being able to view above /home directory using WinSCP

    Hello Guys

    Im currently a vps customer of JaguarPC and I had this problem before that was solved by one of JaguarPC support staff. I am asking this because I want to learn it how to secure it. Sorry if this question of mine has been answered somewhere in this forum.

    I dont know if Im explaining this properly but Ill try my best anyways.

    users are able to see above (/home/user) thier own directory and view all the server folders and files such as etc/ var/ root/ using WinSCP

    can somebody please teach me what to do and how to prevent this... thank you

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,748
    I don't know if there's any way to stop them...

    這個行為是依據為原始的產品設計。
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    JPC Member
    Join Date
    May 2008
    Posts
    4
    Quote Originally Posted by Vin DSL View Post
    I don't know if there's any way to stop them...

    這個行為是依據為原始的產品設計。
    as i said JaguarPC's Technical Support did it allready into my server.. they fixed it allready.. its just that I wanna know how they fixed it.. I didint wanna ask them because Im afraid they wont tell me how they secured it...

  4. #4
    Ron
    Ron is offline
    Now with 46.3% more slack
    Join Date
    Aug 2002
    Posts
    7,014
    with ftp maybe, but maybe not with a shell access proggie.

    I don't know for sure though, so my answer is worthless to you.
    Good luck

  5. #5
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,545
    Is it a problem? Aside from their own, they can only see (and touch) folders and files that are world readable. Their access permissions are applied.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    5,985
    What you are reporting is the normal way a server works. If you are running cPanel and set your users up to use JailShell then they'll be in a chrooted environment where they'll only be able to see files that concern them--take a look at /etc/passwd, the only accounts you'll see listed when using JailShell are the service accounts (apache, mysql, shutdown, etc.) and the user's own account, not any other actual users. Other things that can be seen include some config files and the various binary (/bin, /usr/bin, /usr/local/bin, etc.) and library directories, all of which are vital to being able to do anything in the shell environment.

    I don't use cPanel, so I don't know how it implements things, but most systems implement a directory structure somewhere (often /chroot) which contains hard links to those resources that should be available to the chrooted user. When the user logs in his root is changed to this directory which enables him to only see what you want him to see. Support probably just removed some of the links from this location but, again, I'm not a cPanel expert so I can't say for sure.

    You can read a good deal about chroot and how it works here: http://en.wikipedia.org/wiki/Chroot

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,545
    Quote Originally Posted by jason View Post
    things that can be seen include some config files and the various binary (/bin, /usr/bin, /usr/local/bin, etc.) and library directories, all of which are vital to being able to do anything in the shell environment.

    [..]

    which enables him to only see what you want him to see.
    The point being: you probably WANT your user to see those things. It is not a security risk, but part of what makes shell access useful.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts