I want to give access to a user for only two directories residing under my /var/www folder.He must have full rights of these directories where he can add new files, new sub directories, chmod, chown etc. How can I do this, I am on debian.

link|improve this question

25% accept rate
2  
See this similar question on U&L for an explanation of filesystem permissions in Unix/Linux: unix.stackexchange.com/questions/5488/… – MikeyB Nov 22 '11 at 18:10
feedback

closed as off topic by MikeyB, MDMarra, mailq, Iain, voretaq7 Nov 22 '11 at 21:32

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

up vote 0 down vote accepted

Two methods I can think of. One add the user to a group that owns those directories, or alternatively, change the ownership of those directories to that user.

chown username name_of_directory

That will allow that user full rights to that directory. On our servers we have a developer group that all developers are members to and all the necessary directories are owned by that group. With group ownership you would probably be looking at a 0775 for the full rights.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.