From the course: Linux CentOS 7: Files and Permissions

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Get extended attributes

Get extended attributes - Linux Tutorial

From the course: Linux CentOS 7: Files and Permissions

Start my 1-month free trial

Get extended attributes

- [Instructor] Extended attributes are extensions to normal file attributes. Just like normal attributes, extended attributes are stored with files on the disk. There are three major types of extended attributes. Extended security attributes Extended system attributes and Extended user attributes. Let's take a closer look at each. Each file has a SELinux security context that's stored with the file. To get the SELinux security context use ls with the dash capital Z option. Type in ls -Z /etc/passwd and hit Enter. We can see the SELinux security context in the fifth column. We can also recursively get the SELinux security context using the dash capital R capital Z option. Extended system attributes store file access control lists or ACLs. ACLs provide an additional layer of discretionary access control for Linux, making Linux permissions easier to manage. File ACLs allow administrators to set permissions for multiple users on a file. They also allow permissions for multiple groups to…

Contents