version 2, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
CHOWN |
| |
|
2 |
!!!CHOWN |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
OPTIONS |
| |
|
7 |
AUTHOR |
| |
|
8 |
REPORTING BUGS |
| |
|
9 |
COPYRIGHT |
| |
|
10 |
SEE ALSO |
| |
|
11 |
---- |
| |
|
12 |
!!NAME |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
chown - change file owner and group |
| |
|
16 |
!!SYNOPSIS |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__chown__ [[''OPTION'']... |
| |
|
20 |
''OWNER''[['':''[[''GROUP'']] ''FILE''...__ |
| |
|
21 |
chown__ [[''OPTION'']... '':GROUP FILE''...__ |
| |
|
22 |
chown__ [[''OPTION'']... ''--reference=RFILE |
| |
|
23 |
FILE''... |
| |
|
24 |
!!DESCRIPTION |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
This manual page documents the GNU version of __chown__. |
| |
|
28 |
__chown__ changes the user and/or group ownership of each |
| |
|
29 |
given file, according to its first non-option argument, |
| |
|
30 |
which is interpreted as follows. If only a user name (or |
| |
|
31 |
numeric user ID) is given, that user is made the owner of |
| |
|
32 |
each given file, and the files' group is not changed. If the |
| |
|
33 |
user name is followed by a colon or dot and a group name (or |
| |
|
34 |
numeric group ID), with no spaces between them, the group |
| |
|
35 |
ownership of the files is changed as well. If a colon or dot |
| |
|
36 |
but no group name follows the user name, that user is made |
| |
|
37 |
the owner of the files and the group of the files is changed |
| |
|
38 |
to that user's login group. If the colon or dot and group |
| |
|
39 |
are given, but the user name is omitted, only the group of |
| |
|
40 |
the files is changed; in this case, __chown__ performs |
| |
|
41 |
the same function as __chgrp__. |
| |
|
42 |
!!OPTIONS |
| |
|
43 |
|
| |
|
44 |
|
| |
|
45 |
Change the owner and/or group of each FILE to OWNER and/or |
| |
|
46 |
GROUP. |
| |
|
47 |
|
| |
|
48 |
|
| |
|
49 |
__-c__, __--changes__ |
| |
|
50 |
|
| |
|
51 |
|
| |
|
52 |
like verbose but report only when a change is |
| |
|
53 |
made |
| |
|
54 |
|
| |
|
55 |
|
| |
|
56 |
__--dereference__ |
| |
|
57 |
|
| |
|
58 |
|
| |
|
59 |
affect the referent of each symbolic link, rather than the |
| |
|
60 |
symbolic link itself |
| |
|
61 |
|
| |
|
62 |
|
| |
|
63 |
__-h__, __--no-dereference__ |
| |
|
64 |
|
| |
|
65 |
|
| |
|
66 |
affect symbolic links instead of any referenced file |
| |
|
67 |
(available only on systems that can change the ownership of |
| |
|
68 |
a symlink) |
| |
|
69 |
|
| |
|
70 |
|
| |
|
71 |
__--from__=''CURRENT_OWNER'':CURRENT_GROUP |
| |
|
72 |
|
| |
|
73 |
|
| |
|
74 |
change the owner and/or group of each file only if its |
| |
|
75 |
current owner and/or group match those specified here. |
| |
|
76 |
Either may be omitted, in which case a match is not required |
| |
|
77 |
for the omitted attribute. |
| |
|
78 |
|
| |
|
79 |
|
| |
|
80 |
__-f__, __--silent__, __--quiet__ |
| |
|
81 |
|
| |
|
82 |
|
| |
|
83 |
suppress most error messages |
| |
|
84 |
|
| |
|
85 |
|
| |
|
86 |
__--reference__=''RFILE'' |
| |
|
87 |
|
| |
|
88 |
|
| |
|
89 |
use RFILE's owner and group rather than the specified |
| |
|
90 |
OWNER:GROUP values |
| |
|
91 |
|
| |
|
92 |
|
| |
|
93 |
__-R__, __--recursive__ |
| |
|
94 |
|
| |
|
95 |
|
| |
|
96 |
operate on files and directories recursively |
| |
|
97 |
|
| |
|
98 |
|
| |
|
99 |
__-v__, __--verbose__ |
| |
|
100 |
|
| |
|
101 |
|
| |
|
102 |
output a diagnostic for every file processed |
| |
|
103 |
|
| |
|
104 |
|
| |
|
105 |
__--help__ |
| |
|
106 |
|
| |
|
107 |
|
| |
|
108 |
display this help and exit |
| |
|
109 |
|
| |
|
110 |
|
| |
|
111 |
__--version__ |
| |
|
112 |
|
| |
|
113 |
|
| |
|
114 |
output version information and exit |
| |
|
115 |
|
| |
|
116 |
|
| |
|
117 |
Owner is unchanged if missing. Group is unchanged if |
| |
|
118 |
missing, but changed to login group if implied by a `:'. |
| |
|
119 |
OWNER and GROUP may be numeric as well as |
| |
|
120 |
symbolic. |
| |
|
121 |
!!AUTHOR |
| |
|
122 |
|
| |
|
123 |
|
| 2 |
perry |
124 |
Written by David !MacKenzie. |
| 1 |
perry |
125 |
!!REPORTING BUGS |
| |
|
126 |
|
| |
|
127 |
|
| |
|
128 |
Report bugs to |
| |
|
129 |
!!COPYRIGHT |
| |
|
130 |
|
| |
|
131 |
|
| |
|
132 |
Copyright 2001 Free Software Foundation, Inc. |
| |
|
133 |
This is free software; see the source for copying |
| |
|
134 |
conditions. There is NO warranty; not even for |
| |
|
135 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| |
|
136 |
PURPOSE. |
| |
|
137 |
!!SEE ALSO |
| |
|
138 |
|
| |
|
139 |
|
| |
|
140 |
The full documentation for __chown__ is maintained as a |
| |
|
141 |
Texinfo manual. If the __info__ and __chown__ programs |
| |
|
142 |
are properly installed at your site, the |
| |
|
143 |
command |
| |
|
144 |
|
| |
|
145 |
|
| |
|
146 |
__info chown__ |
| |
|
147 |
|
| |
|
148 |
|
| |
|
149 |
should give you access to the complete manual. |
| |
|
150 |
---- |