How can I assign folder permissions in Fedora 14 using the command line?

I'd like to give read/write/execute permissions to :

  • 2 users (tom, jim) to the folder /Home/Share
  • 1 group (employees) to the folder /Home/Share/Employees

However, I'm not sure how to do this properly from a shell.

migrated from stackoverflow.com May 9 '12 at 9:15

This question came from our site for professional and enthusiast programmers.


One way to do that is using chown. Take a look at these :





Take a look at the whole user/group/others stuff in Unix, that might help. But it looks like you want to set up stuff that is very awkward for more than a few groups. Perhaps what you need is finer granularity, as the ACL (Access Control Lists) offer on some filesystems. Check out the manual pages for acl(5), setfacl(1) and nearby ones.

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.