In this guide let us see how to provide special permission for a user on file or directory by using ACL.

# chmod A+user:jack:read_data/write_data/execute:allow /home/export/sysadmin/

-bash-4.1$ ls -v /home/export/sysadmin/
total 4
-rw-r--r-- 1 jack staff 0 Dec 22 10:32 1111
 0:owner@:read_data/write_data/append_data/read_xattr/write_xattr
 /read_attributes/write_attributes/read_acl/write_acl/write_owner
 /synchronize:allow
 1:group@:read_data/read_xattr/read_attributes/read_acl/synchronize:allow
 2:everyone@:read_data/read_xattr/read_attributes/read_acl/synchronize
 :allow

This is similar to setfacl command in Linux.

LEAVE A REPLY

Please enter your comment!
Please enter your name here