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