Novell SUSE LINUX Professional 9.3 Update 00662644461625 ユーザーズマニュアル

製品コード
00662644461625
ページ / 304
-
rw-
r--
-–
Type
Users Permissions
Group Permissions
Permissions for Other Users
This column is comprised of one leading character followed by nine charac-
ters grouped in threes. The first of the ten letters stands for the type of file
system component. The hyphen (
-
) shows that this is a file. A directory (
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 hyphen (
-
)
means it is not possible to write to the file. An
x
in the third position de-
notes that the object can be executed. Because the file in this example 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 assigned
by means of ACLs (access control lists). See Section 19.2.6 on page 259 for
details and refer to the chapter in the Administration Guide for further back-
ground information.
Directory Permissions
Access permissions for directories have the type
d
. For
directories, the individual permissions have a slightly different meaning.
Example 19.2: Sample Output Showing Directory Permissions
drwxrwxr-x 1 tux project3 35 Jun 21 15:15
ProjectData
In Example 19.2 on this page, the owner (
tux
) and the owning group
(
project3
) of the directory
ProjectData
are easy to recognize. In con-
trast to the file access permissions from on the page before, the set reading
permission (
r
) means that the contents of the directory can be shown. The
write permission (
w
) means new files can be created. The executable permis-
sion (x) means the user can change to this directory. In the above example,
this means the user
tux
as well as the members of the group
project3
can
256
19.2. Users and Access Permissions