Important Linux Commands - Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual

Table of Contents

Advertisement

• x—execute
4.
Filename or filenames separated by spaces
If, for example, the user tux in
Permissions"
(page 360) 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
Permissions"
(page 360) should no longer belong to tux, but to the user geeko.
root should then enter chown geeko Roadmap.
chgrp changes the group ownership of the file. However, the owner of the file
must be a member of the new group. In this way, the user tux from
"Sample Output Showing File Permissions"
the file ProjectData to project4 with the command chgrp project4
ProjectData, as long as he is a member of this new group.

18.3 Important Linux Commands

This section gives insight into the most important commands of your SUSE® Linux
Enterprise system. There are many more commands than listed in this chapter. Along
with the individual commands, parameters are listed and, where appropriate, a typical
sample application is introduced. To learn more about the various commands, use the
manual pages, accessed with man followed by the name of the command, for example,
man ls.
Example 18.2, "Sample Output Showing Directory
Example 18.2, "Sample Output Showing Directory
(page 359) can switch the group owning
Example 18.1,
Working with the Shell
361

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents