Hello There,
I need to create a user other than root which has only one directory access and can not access root.
For ex., I am Developer Admin and have root credentials. Design team need to upload some design flyers to specific folder. So I want to create a new user i.e. designlogin and that can access only design folder, not root i.e. var/www/flyers.
How can I do that? I have searched many links & commands (adduser, useradd etc) on internet, however no success. [We can able to add user however not able to login using it.]
Please guide me with this and Looking forward to get your reply at earliest.
PS: I have already raised a ticket however no reply so asking your help here.
Thank you, Adhrit
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 use a root jail to restrict your user to the specified directory, however you need to copy some of the binaries needed to run command to this directory too.
this page can help you further, please check it while I work on this.
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.