83a949f280eb237db7f210980424d5b3f2d54cfa
[platform/upstream/coreutils.git] / man / chown.x
1 [NAME]
2 chown \- change file owner and group
3 [DESCRIPTION]
4 This manual page
5 documents the GNU version of
6 .BR chown .
7 .B chown
8 changes the user and/or group ownership of each given file.  If
9 only an owner (a user name or numeric user ID) is given, that user is made the
10 owner of each given file, and the files' group is not changed.  If the
11 owner is followed by a colon and a group name (or numeric group ID),
12 with no spaces between them, the group ownership of the files is
13 changed as well.  If a colon but no group name follows the user name,
14 that user is made the owner of the files and the group of the files is
15 changed to that user's login group.  If the colon and group are given,
16 but the owner is omitted, only the group of the files is changed;
17 in this case,
18 .B chown
19 performs the same function as
20 .BR chgrp .
21 If only a colon is given, or if the entire operand is empty, neither the
22 owner nor the group is changed.
23 .SH OPTIONS
24 [SEE ALSO]
25 chown(2)