Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

is it possible to give sudo privileges to a user for a specific folder? e.g i want the user 'dads' to have sudo access for creating/deleting files in a folder 'virgo' in /opt

share|improve this question
up vote 3 down vote accepted

No, i'm pretty sure you can't, but you can let other users read/write in that folder by changing it's permissions.

Another approach is to create a group, set that group as the owner of the folder, and then add all the users you want to that group.

share|improve this answer

For complex file/folder permissions scenarios, consider the use of ACLs. Otherwise I second the answer of sebikul.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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