Information Technology Reference
In-Depth Information
Table 4.3
First Character Used in the File Permisison Field of the ls Command
Display
Character
Description
b
Block special file
c
Character special file
d
Directory
D
Door
l
Symbolic link
p
FIFO or named pipe
s
Socket
-
Ordinary file
Table 4.4 lists the characters that are used in the display positions two
through ten of the file permission field.
Table 4.4
Characters Two Through Ten Used in the File Permission Field of the ls
Command Display
Character
Description
l
Mandatory locking
r
Read permission
s
Set UID (when in forth position) or Set GID (when in seventh position)
S
Undefined state
t
Sticky bit
T
Undefined state
w
Write permission
x
Execution permission
-
No permission granted
Normally, position 11 is a space except when an ACL has been defined on
the directory/file. In this case, a plus sign ( + ) appears in the 11th position.
The following listing shows examples of the permission field portion of the
output generated by the ls command. See Chapter 12, “Advanced Access
Control,” for a description of ACLs.
# ls -l
total 2
drwxrwxrwt 2 ambro other 512 Jul 24 13:49 dir1
-rwsrwxr-x 1 ambro other 1112 Jul 24 13:53 file1
lrwxrwsr-x 1 ambro other 1112 Jul 24 13:53 file2
-rwxrwlrwx+ 1 ambro other 1112 Jul 24 13:53 file3
Search WWH ::




Custom Search