Linux System Administration
User Management
Displaying Permissions
Use
ls -l
to display the permissions of a file or directory.
[mlevan@localhost rhct]$ ls -l
total 84
drwxr-xr-x 3 mlevan mlevan 4096 Aug 13 2004 ks-floppy
-rwxr-xr-x 1 mlevan mlevan 77701 Aug 13 2004 Mike_LeVan-RHCT.pdf
Consider the first 10 dashes :
The first dash tells you the type of file (directory, block, character, file)
The next three dash's represent the permissions for the owner.
The
w
represents write, the
x
represents execute, and the
r
means read.
The next three dash's represent the permissions for the group.
The next three dash's represent the permissions for all others.
Prev
Page 15
Next