Because ACLs are layered upon standard permissions we can't use standard tools to view them. To view ACLs we will need to use getfacl. We can also view standard Linux permissions with getfacl which shows standard permissions in a more readable manner than ls -l. We can also use getfacl to view all ACLs in the entire OS. This of course can be redirected to a file.
- [Instructor] Because ACLs are layered…on top of Linux permissions, we can't use standard tools…such as ls to list them.…With ACLs comes a suite of new tools.…Let's take a look.…Go to a terminal and create a directory using mkdir…and then change into it.…Type in mkdir space…aclexercise…and hit enter.…Now type in cd aclexercise and hit enter again.…You can verify your path by typing in pwd.…Now let's create a file and place an ACL on it.…
Type in touch aclfile and hit enter.…We can verify this with ls -l.…In order to read the ACLs on a file,…we'll use the getfacl command.…getfacl is installed by default in CentOs,…but if you're using another distribution,…you may have to install ACLs before proceeding.…Type in getfacl space…aclfile and hit enter.…This lists the name of the file,…the user owner, the group owner,…and permissions for the user group and other.…
Basically, this lists the standard Linux permissions.…We can also view the same data in tabular form…by passing the -t option to getfacl.…Type in getfacl -t aclfile…
- 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.