Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to give a specific user access only to a specific folder and its contents?

How to give a specific user access only to a specific folder and its contents?

I used

adduser <name>

and created a new user, andrew. Now I want to give him read/write access only to /var/www/sitename.com and its contents.

How am I supposed to do this?

I tried sudo chown andrew /var/www/sitename.com but he is still able to see all the folders and files under /var/www and other directories.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by rchowavijitJan 12, 2024 01:15 AM 0 172 Jan 12, 2024 01:15 AM
Last Post: rchowavijit
by jovateDec 28, 2020 07:16 PM 3 259 Dec 28, 2020 07:16 PM
Last Post: DelTex
by jovateDec 27, 2020 09:21 AM 0 103 Dec 27, 2020 09:21 AM
Last Post: jovate