getfacl setfacl difference with chmod

ubuntu2@ubuntu2:~/scripts$ getfacl sc1.sh 
# file: sc1.sh
# owner: ubuntu2
# group: ubuntu2
user::rw-
group::rw-
other::r--


-rwx------ = read,write, and execute for owner only:
Code:
chmod 700 file
-rwxrwx--- = read,write, and execute for owner and 1 specific group:
Code:
chmod 770 file

setfacl allows for much greater control over who has access to a specific file or folder.

You can grant an additional user read access to a file:
Code:
setfacl -m u:lisa:r file

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all