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.
Questions on Server Fault are expected to relate to professional 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.
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.
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.