BSD 1 development
[unix-history] / man6 / chownall.6
CommitLineData
76a409ed
BJ
1.th CHOWNALL VIII 8/1/77
2.sh NAME
3chownall \- systematic ownership change on a subtree
4.sh SYNOPSIS
5.bd chownall
6[
7.bd \-
8] [
9\fB\-n\fRname
10] [
11.bd \-a
12] [
13\fB\-g\fR#
14] [
15\fB\-u\fR#
16] directory ...
17.sh DESCRIPTION
18.it Chownall
19systematically changes ownerships of files in the subtree rooted
20at each base directory.
21The format of the changes is determined by the
22ownership
23of the base directory and well as the options specified.
24The options are
25.bd \-
26for terse,
27.bd \-a
28for all,
29and
30.bd \-g
31and
32.bd \-u
33for specifying new decimal user and group options.
34The
35.bd \-n
36option can be used to conveniently give the
37new user number via a user name.
38Four uses can be distinguished:
39.s2
40.lp +5 5
411) Only \fB\-g\fR flag specified
42.br
43The base directory must be owned by user 0 in a group other than group 0.
44All files in the subtree owned by any user of this group are changed to
45be owned by the same user (numerically) in the specified new group.
46.sp
47.lp +5 5
482) Only \fB\-u\fR flag specified
49.br
50The base directory must be owned by a person who is not user number 0 in
51his group.
52All files in the subtree owned by this person are changed
53to be owned by the specified new user number in the same group.
54.sp
55.lp +5 5
563) Both \fB\-g\fR and \fB\-u\fR flags specified
57.br
58All files in the subtree owned by the owner of the base directory become
59owned by the specified group and user.
60.sp
61.lp +5 5
624) \fB\-A\fR, \fB\-g\fR, and \fB\-u\fR flags specified, or \fB\-n\fR flag given
63.br
64All files in the subtree rooted at the given directory are changed to be
65owned by the newly specified user and group.
66This option requires confirmation
67which may be given on the command line via the `-' terse option.
68.i0
69.sh EXAMPLES
70.lp +6 6
71chownall \-g64 /mnt/comc
72.br
73If /mnt/compc is owned by group 138 user 0, this command changes
74all files in the tree rooted there which are presently owned by members
75of group 138 to be owned by the same relative user in group 64.
76.br
77.i0
78chownall \-nbill /mnt/bill
79.i0
80.sh "SEE ALSO"
81chown (I), chown (II)
82.sh AUTHOR
83William Joy
84.sh BUGS
85Shouldn't need
86.bd \-n
87as it should be the ``default''
88so that
89.it chownall
90would work like
91.it chown.
92.s3
93The
94.bd \-g
95and
96.bd \-u
97flags are of questionable value.