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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s