normally I can only do 3 levels: owner, group, others But I want 6 for group1, 5 for group2, 0 for all other groups how can I do this?

2 Answers 2


Traditional Unix permissions are limited to owner, group and other. But most modern unices support access control lists. On modern Linux systems, ACL support is enabled by default in the filesystem, but you may need to install the ACL utilities getfacl and setfacl (e.g. on Debian/Ubuntu/Mint you may need to install the acl package).

chmod u=rwx,go= somefile
setfacl -m g:group1:rw -m g:group2:rx somefile

You need to use Access Control Lists (ACL) to achieve finer control in file and directory permissions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .