ACL – Solaris 10

Posted on Updated on


Little documentation about ACL at Solaris 10🙂

(-) The following example shows you how to substitute an ACL on the file named file1. The ACL permissions are configured as follows:

  • The file owner has read, write, and execute permissions
  • The group has read and write permissions
  • The other users have read-only permissions
  • The user named user1 has read, write, and execute permissions on the file
  • The ACL mask has read and write permissions
  • The user named user1 has read, write, and execute permissions

Perform the setfacl command with the following options to substitute an ACL on file1:

# setfacl -s u::rwx,g::rw-,o:r–,m:rw-,u:user1:rwx file1

Or using this command :

# setfacl -s u::7,g::6,o:4,m:6,u:user1:7 file1

(-) Command copies the ACL entries from the file named file1 to the file named file2

# getfacl file1 | setfacl -f – file2

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