Linux – Set ACL


$ setfacl -R -m u:seza:rwX,g:admin:rw-,o:r-- MyFolder

To change to permissions for the folder MyFolder and add

  • User “seza” has all permission: Read, Write, eXecute
  • Group “admin” has all permissions
  • Other has just Read persmission

Note on the options

  • -R is for recursive
  • Note the capital “X“, it will set the “execute” permission only if the file is a directory or has already execute permission for some user.


$ setfacl -m default:u:seza:rwx,default:g:admin:rw-,o:r-- MyFolder

To change the permissions for the future files/folders that will be added


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s