4.1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:33 PM on 7/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

what is ACL

allows you to give permissions to any group or user

2
New cards

use of ACL

when a member isn’t apart of the group, but you still want to give them permission

3
New cards

command to assign and remove ACL permissions

  • setfacl

  • getfacl

4
New cards

add ACL permission for user

  • setfacl -m u:<user>:rwx </path/to/file>

5
New cards

add ACL permissions for a single group

  • setfacl -m g:group:rwx /path/to/file

6
New cards

allow all files or directories to inherit from the directory it is within

setfacl -R -m u </path/to/file>

7
New cards

remove a specific ACL entry

setfacl -x u:<user>: </path/to/file>

8
New cards

remove all ACL’s

setfacl -b <path/to/file>

9
New cards

create an ACL to give iafzal read and write permissions

setfacl -m u:iafzal:rw /tmp/file

10
New cards

verify acl changes

getfacl /path/to/file

11
New cards

remove acl

setfacl -rm <entry> /path/to/file

12
New cards

remove acl for specific user

setfacl -x u:username filename

13
New cards

remove a specific group’s acl

setfacl -x g:groupname filename

14
New cards

basic syntax for setfacl

setfacl -m u:username:permissions filename

  • -m: Modify ACL

  • u:username: Assigns permissions to a specific user

  • permissions: Can be r (read), w (write), x (execute)

15
New cards

Removing ACL syntax

To remove an ACL for a specific user, use:

-> setfacl -x u:username filename

To remove all ACLs from a file or directory:

-> setfacl -b filename

16
New cards

allow ACL the same permissions to be applied to all files and subdirectories.

setfacl -R -m u:bob:rwx directoryname

This command grants read, write, and execute permissions to bob for all files and subdirectories in the directory.

17
New cards

Default ACLs can be set on directories to ensure that newly created files inherit certain permissions.

setfacl -m d:u:username:permissions directoryname

The d: prefix indicates that this is a default ACL. Any new files created in this directory will automatically inherit the specified permissions.