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.
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.

