Control Access to Files with ACL - RHCSA (RH134).pdf
support8872
379 views
10 slides
Oct 10, 2024
Slide 1 of 10
1
2
3
4
5
6
7
8
9
10
About This Presentation
Slides on how to control access to files with ACL - Part of RHCSA (RH134) syllabus
Size: 348.27 KB
Language: en
Added: Oct 10, 2024
Slides: 10 pages
Slide Content
Controlling Access to Files
with ACL
ACL
●ACL stands for Access Control
List
●Determines who can access
specific resources
●ACL enhances file system
permissions flexibility
●Designed to complement UNIX
file permissions
●Assigning write permission with
ACL prevents file deletion
Remove and assign ACL permissions
●setfacl: To set or modify the Access Control List (ACL) of a file or
directory
●getfacl: To display the current Access Control List (ACL) of a file
or directory
●-m: Modify the ACL of a file or directory
●-x: Remove an ACL entry from a file or directory
●-b: Remove all ACL entries
●-k: Remove the default ACL
●-R: Apply ACL changes recursively
●-d: Set default ACLs for new files and directories
Options for setting ACL permissions
File Permission
Note - When you assign ACL permissions to a file or directory, it appends a
"+" symbol to the permission.
ACL commands
1.Sets Access Control List permissions for user
Command : setfacl -m u:<username>:<permissions> <filename>
2. Sets Access Control List permissions for group
Command : setfacl -m g:<groupname>:<permissions> <filename>
3. Retrieves Access Control List permissions
Command : getfacl <filename>
4. Remove all entries
Command : setfacl -b <filename>
5. Remove ACL permissions for specific user
Command : setfacl -x u:<username> <filename>