Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.