fangbite Posted October 17, 2005 Report Share Posted October 17, 2005 I want to make the user ithdesign login and start at the directory /var/www and limit access only to that directory. How do I do this? I'm trying to allow ithdesign (the account used for anyone to edit a home webpage) access only to the website (located in /var/www). Quote Link to comment Share on other sites More sharing options...
crac Posted October 19, 2005 Report Share Posted October 19, 2005 In /etc/passwd you can set his home directory to /var/www by editing the file as root with an editor. Then you need to change the ownership of that directory as root: chown -R ithdesign /var/www To be sure your user cant leave his home directory you need to uncomment the following line in /etc/proftpd.conf (as root): # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ Quote Link to comment Share on other sites More sharing options...
fangbite Posted October 20, 2005 Author Report Share Posted October 20, 2005 This worked perfectly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.