0

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

3

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.

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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