4-4 Create and Manage Access Control Lists (ACLs) Flashcards
ACL means
File access control lists (ACLs) are intended to give finer-grained control over specific file permissions. Named users and named groups that have a UID and GID can take advantage or be assigned to ACLs. ACLs are added in addition to the regular permissions that already existent on a file. The file system has to be mounted with ACL option enabled; not all systems support ACLs.
When ACLs are set on a file or directory using the chmod command, it only updates the masks and not the permissions.
what does that answer/question to this one mean?????
ls -l
-rw-rw-r–+ 1 root root 45 Mar 2 17:01 1.txt
ACLs are set on the directory or file if ls permissions end with a +
what are
Extended ACL Entries
Extended ACL entries are those that contain named groups users or more than the minimum ACLs
what are
Base/Minimum ACL Entries
Base/minimum ACL entries are the original ACL entries on a file that contains ACL entries for the owner, group, and other
Is ACL always available on a system?
File systems must be enabled and mounted with ACL support in order for ACLs to work. By default the XFS and EXT4 file systems ON RED HAT 7 have ACL support enabled.
setfacl -m g:namedgroup:rw file
et the named group permissions to rw for a file
setfacl -m g::rw file
Set the group owner permission to rw for a file
setfacl -m u::rw file
Set the user owner permissions to rw for a file
setfacl -m o::rw file
Set “other” permissions on a file
you can denote -
In order to remove ACL permissions on a file
setfacl -m o::rw,u::rw file
Multiple ACL entries can be specified by separating the entries with a comma
setfacl -m o::rw,u::rw file
Multiple ACL entries can be specified by separating the entries with a comma
setfacl -x g:groupname file
setfacl –remove-all [file/dir]
use -R for recursion
Remove a named group entry from a file’s ACL
getfacl file1 | setfacl –set-file=- file2
Take the ACL from file1 as standard input for setfacl command. The - at the end of –set-
file=- represents the use of standard input (stdin).
Copying ACLs from One File to Another