Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

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

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

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

1 Answer 1

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.

share|improve this answer

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