Skip to Content
Solaris™ 8 System Administrator's Reference
book

Solaris™ 8 System Administrator's Reference

by Janice Winsor
September 2000
Beginner content levelBeginner
1312 pages
33h 47m
English
Pearson
Content preview from Solaris™ 8 System Administrator's Reference

chown Change Owner

Synopsis

/usr/ucb/chown [-f][-R] owner [group] filename...
					

Description

Use the chown command to change the owner of a file or files. The owner can be either a decimal user ID (UID) or a login name found in the password file. You can also specify an optional group, which can be either a decimal group ID (GID) or a group name found in the GID file.

Only superuser can change owner IDs.

Options

-f Do not report errors.
-R Recursively descend into directories, setting the ownership of all files in each directory encountered. When symbolic links are encountered, change their ownership but do not traverse them.

Examples

In the following example, even though winsor owns the file, she cannot change the ownership of the file named ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential System Administration Pocket Reference

Essential System Administration Pocket Reference

Æleen Frisch

Publisher Resources

ISBN: 0130277010Purchase book