Hack Forums
How to give a specific user access only to a specific folder and its contents? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: How to give a specific user access only to a specific folder and its contents? (/showthread.php?tid=4960799)



How to give a specific user access only to a specific folder and its contents? - murthyinfosec - Aug 23, 2015

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.


* - Viktory - Aug 24, 2015

http://unix.stackexchange.com/questions/101576/give-user-read-write-access-to-only-one-directory