By admin465621
I added a new user and it has added the user in the home dir. I want to give the user access only to a certain part of the server, how can this be done. I want him to have access to “/usr/share/nginx/public_html” directory only. Can someone help with the right command because i am not a developer. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can change a user’s home directory by running the following command:
sudo usermod -d /usr/share/nginx/public_html username
tried the above and when i log in as that user to WinSCP it still direct to the home directory. I want to lock him in the above directory and limit his privileges.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.