From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

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

Get extended attributes

Get extended attributes - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Get extended attributes

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 SCLinux security context as stored with the file. To get the SCLinux security context, use ls with a -Z option. Have an ls -Z /etc/passwd and hit enter. We can see the SCLinux security context in the fifth column. We can also recursively get the SCLinux security context using the -RZ option. Extended system attributes store file access control list, 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…

Contents