26.10.2012 Views

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

106 Start-Up<br />

Changing Ownership Permissions<br />

Other important commands to control the ownership and permissions <strong>of</strong> the file<br />

system components are chown (change owner) and chgrp (change group). The<br />

command chown can be used to transfer ownership <strong>of</strong> a file to another user.<br />

However, only root is permitted to perform this change.<br />

Suppose the file Roadmap from Example 3.2, “Sample Output Showing Directory<br />

Permissions” (page 104) should no longer belong to tux, but to the user geeko.<br />

root should then enter chown geeko Roadmap.<br />

chgrp changes the group ownership <strong>of</strong> the file. However, the owner <strong>of</strong> the file<br />

must be a member <strong>of</strong> the new group. In this way, the user tux from Example 3.1,<br />

“Sample Output Showing File Permissions” (page 103) can switch the group owning<br />

the file ProjectData to project4 with the command chgrp project4<br />

ProjectData, as long as he is a member <strong>of</strong> this new group.<br />

3.3 Important Linux Commands<br />

This section gives insight into the most important commands <strong>of</strong> your <strong>SUSE</strong> Linux<br />

system. There are many more commands than listed in this chapter. Along with the individual<br />

commands, parameters are listed and, where appropriate, a typical sample application<br />

is introduced. To learn more about the various commands, use the manual<br />

pages, accessed with man followed by the name <strong>of</strong> the command, for example, man<br />

ls.<br />

In the man pages, move up and down with PgUp and PgDn . Move between the beginning<br />

and the end <strong>of</strong> a document with Home and End . End this viewing mode by<br />

pressing Q . Learn more about the man command itself with man man.<br />

In the following overview, the individual command elements are written in different<br />

typefaces. The actual command and its mandatory options are always printed as<br />

command option. Specifications or parameters that are not required are placed in<br />

[square brackets].<br />

Adjust the settings to your needs. It makes no sense to write ls file if no file named<br />

file actually exists. You can usually combine several parameters, for example, by<br />

writing ls -la instead <strong>of</strong> ls -l -a.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!