Setting ACLs is quite easy using setfacl. The syntax is longer for setfacl but the job is easier. There's no real strategy to setting ACL other than just giving the users the permissions they need. Permissions can be granted to multiple users as well as multiple groups. ACLs can also be set recursively using the -R option.
- [Instructor] ACLs are turned on by default…in CentOS for the OS partition only.…In comparison to being creative with standard permissions,…along with special bits and umasks to solve problems,…ACLs are downright easy to implement.…With ACLs, you just give the right people and groups…the access they need, and you're done.…The command we use to assign file ACLs…is setfacl.…The syntax is setfacl -m…user:…<username>…:<permissions>…<file>.…
For example, if we wanted to set…our wx permissions for the user name "bob"…on /home/file.txt,…we'd type setfacl -m, for modify,…user:bob for the username,…rwx for permissions, followed by the file path,…in this case, /home/file.txt.…Let's go to a terminal to use the setfacl command.…To set up this exercise, we'll create a directory…called acldir, using mkdur.…Type in sudo…mkdir…/home/acldir,…and hit Enter.…
Type in your password, and hit Enter again.…We had to elevate privileges…because we're creating a directory…outside of our user's home directory.…If it already exists, that's fine.…
- Define file Access Control Lists.
- Describe what extended globs add to Linux pattern matching.
- State why file system recovery tools are so important for Linux users.
- Recall what execute permissions on a directory allows.
- Cite the maximum allowed default permissions on a file in Linux.
- List some of the advantages of ACLs over standard Unix permissions.
Skill Level Intermediate
Linux: Desktops and Remote Accesswith Grant McWilliams1h 44m Intermediate
1. Linux Files
2. Manipulate Files
3. Standard Unix Permissions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.