I need to give a new user access to make changes to files in a folder under
I created the user
sudo adduser newuser I then tried to add the user to the www-data group so that they can modify the files owned by www-data.
The user was not able to ssh in at all. So I deleted the user
sudo deluser --remove-home newuser and recreated it again but this time did not add it to the group, but this had no effect, i was still unable to ssh with the new user.
I am able to ssh onto the box with another user I created ages ago and probaly set up a public private key however the folders this article Initial Servire setup talks about a .ssh directory which my current user (that can ssh in) does not have.
Is there an easyer way to give a temporary user access to just 1 directory under
/var/www and if not, how can I go about finding if I have a public key under my existing user that I need to copy to the new user?
Many Thanks Marc
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!