Unix and Linux Discussions Tagged with owner |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
5,637 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
8,853 |
Solaris |
|
|
|
5 |
2,977 |
Shell Programming and Scripting |
|
|
|
5 |
6,561 |
Shell Programming and Scripting |
|
|
|
1 |
2,599 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
6,875 |
Shell Programming and Scripting |
|
|
|
13 |
17,461 |
Cybersecurity |
|
|
|
1 |
8,160 |
Solaris |
|
|
|
4 |
3,808 |
Programming |
|
|
|
10 |
10,711 |
Solaris |
|
|
|
0 |
1,374 |
UNIX and Linux RSS News |
|
|
|
3 |
9,704 |
Shell Programming and Scripting |
|
|
|
4 |
20,155 |
Shell Programming and Scripting |
|
|
|
1 |
5,944 |
UNIX for Dummies Questions & Answers |
|
|
|
19 |
18,426 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,267 |
Cybersecurity |
|
|
|
1 |
9,052 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,113 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,161 |
Cybersecurity |
|
|
|
2 |
18,067 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
10,870 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,497 |
Programming |
|
|
|
2 |
3,438 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
35,591 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
8,265 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
17,531 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,135 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,803 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
77,420 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
13,931 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,585 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
36,954 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,807 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,255 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,094 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
250,580 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,530 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,048 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,188 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,509 |
UNIX for Dummies Questions & Answers |
chown(8) System Manager's Manual chown(8)
Name
chown - change owner and, optionally, group
Syntax
/etc/chown [ -fR ] owner[.group] file...
Description
The command changes the owner and, optionally, group for one or more files and directories. The value for file can be a full or partial
path. The value for owner can be either a decimal UID or a login name found in the password file. The value for group can be either a
decimal GID or a group name found in the group file.
Only the superuser can change the ownership of a file. The superuser can also change the group of a file. The owner of a file can only
change the group, but the owner must be a member of any group specified.
Options
-f Inhibits display of errors that are returned when cannot change the owner or group of the specified files.
-R Causes to recursively descend any directories subordinate to file and to set the owner, group, or both for each file encountered.
When symbolic links are encountered, changes the owner and group for the link file itself but does not traverse the path associated
with the link. The option is useful only when file is a directory that is not empty.
Examples
Change the owner of to ecbell:
/etc/chown ecbell myfile
Change the owner of to craig and group of to admin:
/etc/chown craig.admin myfile
Change the owner to richart and group to eng for the directories and and for all files and directories on any levels subordinate to and
/etc/chown -R richart.eng projecta projectb
Files
See Also
chgrp(1), chown(2), group(5), group(5yp), passwd(5), passwd(5yp)
chown(8)