getfacl setfacl difference with chmod
ubuntu2@ubuntu2:~/scripts$ getfacl sc1.sh
# file: sc1.sh
# owner: ubuntu2
# group: ubuntu2
user::rw-
group::rw-
other::r--
# file: sc1.sh
# owner: ubuntu2
# group: ubuntu2
user::rw-
group::rw-
other::r--
-rwx------ = read,write, and execute for owner only:
-rwxrwx--- = read,write, and execute for owner and 1 specific group:
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:
chmod 700 file
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
Post a Comment