
1. Users concerned
•
u
(user)—owner of the file
•
g
(group)—group that owns the file
•
o
(others)—additional users (if no parameter is given, the changes apply to all
categories)
2. A character for deletion (
–
), setting (
=
), or insertion (
+
)
3. The abbreviations
•
r
—read
•
w
—write
•
x
—execute
4. Filename or filenames separated by spaces
If, for example, the user
tux
in
Example 17.2, “Sample Output Showing Directory
Permissions”
(page 345) also wants to grant other users write (
w
) access to the di-
rectory
ProjectData
, he can do this using the command
chmod o+w
ProjectData
.
If, however, he wants to deny all users other than himself write permissions, he
can do this by entering the command
chmod go-w ProjectData
. To prohibit
all users from adding a new file to the folder
ProjectData
, enter
chmod -w
ProjectData
. Now, not even the owner can create a new file in the directory
without first reestablishing write permissions.
Changing Ownership Permissions
Other important commands to control the ownership and permissions of the file
system components are
chown
(change owner) and
chgrp
(change group). The
command
chown
can be used to transfer ownership of a file to another user.
However, only
root
is permitted to perform this change.
Suppose the file
Roadmap
from
Example 17.2, “Sample Output Showing Directory
Permissions”
(page 345) should no longer belong to
tux
, but to the user
geeko
.
root
should then enter
chown geeko Roadmap
.
346
Installation and Administration
Summary of Contents for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Page 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Page 14: ......
Page 19: ...Part I Deployment...
Page 20: ......
Page 60: ......
Page 128: ......
Page 243: ...Part II Administration...
Page 244: ......
Page 274: ......
Page 312: ......
Page 348: ......
Page 380: ......
Page 381: ...Part III System...
Page 382: ......
Page 438: ......
Page 452: ......
Page 478: ......
Page 486: ......
Page 498: ......
Page 512: ......
Page 558: ......
Page 559: ...Part IV Services...
Page 560: ......
Page 652: ......
Page 670: ......
Page 742: ......
Page 754: ......
Page 796: ......
Page 817: ...Part V Security...
Page 818: ......
Page 858: ......
Page 886: ......
Page 910: ......
Page 911: ...Part VI Troubleshooting...
Page 912: ......
Page 924: ......