Results 1 to 2 of 2
Hi Friends, I want to create one user on my server in such a way that when he logged in by ssh on server,he can able to access ONLY /var/www/drupal-6.2 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-26-2011 #1
- Join Date
- Apr 2011
I want to create one user on my server in such a way that when he logged in by ssh on server,he can able to access ONLY /var/www/drupal-6.2 this directory. Please tell me how should i do that.
- 08-26-2011 #2
Firstly, when you create the user, you'll need to set it's home directory to that folder.
Then, you'll need to enable ssh chrooting.
Chrooting, when used, either through SSH, FTP among other things, makes the user's home directory when logged in remotely appear as / therefore they are unable to cd .. out of it."I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327