Suse Linux Professional 9.2 00662644457284 用户手册

产品代码
00662644457284
下载
页码 324
-
rw-
r--
-–
Type
Users Permissions
Group Permissions
Permissions for Other Users
This column is comprised of one leading character followed by nine char-
acters grouped in threes. The first of the ten letters stands for the type of
file system component. The dash (
–
) shows that this is a file. A di-
rectory (
d
), a link (
l
), a block device (
b
), or a character device could also be
indicated.
The next three blocks follow a standard pattern. The first three characters
refer to whether the file is readable (
r
) or not (
–
). A
w
in the middle
portion symbolizes that the corresponding object can be edited and a dash
(
–
) means it is not possible to write to the file. An
x
in the third po-
sition denotes that the object can be executed. Because the file in this ex-
ample is a text file and not one that is executable, executable access for this
particular file is not needed.
In this example,
tux
has, as owner of the file
Roadmap
, read (
r
) and
write access (
w
) to it, but cannot execute it (
x
). The members of the group
project3
can read the file, but they cannot modify it or execute it. Other
users do not have any access to this file. Other permissions can be as-
signed by means of ACLs (Access Control Lists). See Access Control Lists on
page 269 for details and refer to the chapter in the Administration Guide for
further background information.
Directory Permissions
Access permissions for directories have the type
d
. For
directories, the individual permissions have a slightly different meaning.
Example 21.2: Sample Output Showing Directory Permissions
drwxrwxr-x 1 tux project3 35 Jun 21 15:15
ProjectData
In Output 21.2, the owner (
tux
) and the owning group (
project3
) of the
directory
ProjectData
are easy to recognize. In contrast to the file access
permissions from File Access on the page before, the set reading permis-
sion (
r
) means that the contents of the directory can be shown. The write
permission (
w
) means new files can be created. The executable permission
(x) means the user can change to this directory. In the above example, this
266
21.2. Users and Access Permissions