Linux – Set ACL

Use

$ setfacl -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

Use

$ 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

Advertisements