Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    69

    Default Restricting Users to Home Directories

    I am attempting to restricting users to Home Directories, but I the usually place where I would do that is not there.

    Where does Cpanel create all of the virtual hosts at?

    Should it be under:

    httpd.conf
    proftpd.conf

    Thanks
    Travis

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    159

    Default

    User's are restricted to their home directory....
    If you are referring to SSH access, you can use Jailshell.
    FastServerManagement
    24x7x365 CPanel Server Management & Monitoring only $29.00/month
    http://www.FastServerManagement.com
    sales@FastServerManagement.com 1-877-898-1423

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    One handy script is:

    /scripts/enablefileprotect

    Which offers some, if marginal, restriction. Of course non of this (including jailshell) has any effect on CGI perl and php scripts which can still view anything that is appropriately readable anywhere on the server.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Jan 2004
    Location
    England
    Posts
    63

    Default

    Is this restricting them in php? like to only there dir know one else's on the server.

  5. #5
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    WHM > Server Configuration > Tweak Security > mod_php_openbasedir tweak

    or whatever that is..

    enable that.. DONE

    Sheldon
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    True. But you, presumably, won't be getting rid of perl CGI. What these restrictions are for is to stop vulnerable scripts (php) from allowing hackers access to things you don't want them to have. None of these will stop a user with an account from accessing everything that the file/dir permissions allow. Don't get a false sense of security.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 07-09-2011, 11:42 AM
  2. Restricting users to internal email only
    By cinatus in forum E-mail Discussions
    Replies: 4
    Last Post: 04-16-2008, 11:13 PM
  3. /home directories on NAS?
    By wills in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 01-02-2008, 08:26 AM
  4. Multiple home directories
    By olliemaitland in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-11-2005, 11:14 AM
  5. restoring home directories permissions.
    By vishal in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 02-23-2005, 11:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube