Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

See this similar question on U&L for an explanation of filesystem permissions in Unix/Linux:… – MikeyB Nov 22 '11 at 18:10
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.