Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / pts_setfields.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3pts_setfields - Sets privacy flags or quota for a Protection Database entry
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<pts setfields> S<<< B<-nameorid> <I<user or group name or id>>+ >>>
11 S<<< [B<-access> <I<set privacy flags>>] >>>
12 S<<< [B<-groupquota> <I<set limit on group creation>>] >>>
13 S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
14 [B<-force>] [B<-help>] [B<-auth>] [B<-encrypt>]
15 S<<< [B<-config> <I<config directory>>] >>>
16
17B<pts setf> S<<< B<-na> <I<user or group name or id>>+ >>>
18 S<<< [B<-ac> <I<set privacy flags>>] >>>
19 S<<< [B<-g> <I<set limit on group creation>>] >>> S<<< [B<-c> <I<cell name>>] >>>
20 [B<-no>] [B<-l>] [B<-f>] [B<-h>] [B<-au>] [B<-e>]
21 S<<< [B<-co> <I<config directory>>] >>>
22
23=for html
24</div>
25
26=head1 DESCRIPTION
27
28The B<pts setfields> command sets the group-creation quota, the privacy
29flags, or both, associated with each user, machine, or group entry
30specified by the B<-nameorid> argument.
31
32To examine the current quota and privacy flags, use the B<pts examine>
33command.
34
35=head1 CAUTIONS
36
37Changing a machine or group's group-creation quota is allowed, but not
38recommended. The concept is meaningless for machines and groups, because
39it is impossible to authenticate as a group or machine.
40
41Similarly, some privacy flag settings do not have a sensible
42interpretation. L</OPTIONS> specifies the appropriate settings.
43
44=head1 OPTIONS
45
46=over 4
47
48=item B<-nameorid> <I<user or group name or id>>+
49
50Specifies the name or AFS UID of each user, the IP address (complete or
51wildcard-style) of each machine, or the name or AFS GID of each machine
52for which to set privacy flags or group-creation quota. It is acceptable
53to mix users, machines, and groups on the same command line, as well as
54names (IP addresses for machines) and IDs. Precede the GID of each group
55with a hyphen to indicate that it is negative.
56
57=item B<-access> <I<privacy flags>>
58
59Specifies the privacy flags to apply to each entry. Provide a string of
60five characters, one for each of the permissions. If this option is
61omitted, the current setting remains unchanged.
62
63Set each flag to achieve the desired combination of permissions. If the
64following list does not mention a certain setting, it is not
65acceptable. For further discussion of the privacy flags, see
66L<pts_examine(1)>.
67
68=over 4
69
70=item *
71
72The first flag determines who can use the B<pts examine> command to
73display information from a user, machine or group's Protection Database
74entry.
75
76=over 4
77
78=item *
79
80Set it to lowercase C<s> to permit the members of the
81system:administrators group to display a user, machine, or group entry,
82the associated user to display a user entry, and the owner or members of a
83group to display the group entry.
84
85=item *
86
87Set it to uppercase C<S> to permit anyone who can access the cell's
88database server machines to display a user, machine, or group entry.
89
90=back
91
92=item *
93
94The second flag determines who can use the B<pts listowned> command to
95list the groups that a user or group owns.
96
97=over 4
98
99=item *
100
101Set it to the hyphen (C<->) to permit the members of the
102system:administrators group and a user to list the groups he or she owns,
103or to permit the members of the system:administrators group and a group's
104owner to list the groups that a group owns.
105
106=item *
107
108Set it to uppercase letter C<O> to permit anyone who can access the cell's
109database server machines to list the groups owned by a machine or group
110entry.
111
112=back
113
114=item *
115
116The third flag determines who can use the B<pts membership> command to
117list the groups to which a user or machine belongs, or the users and
118machines that belong to a group.
119
120=over 4
121
122=item *
123
124Set it to the hyphen (C<->) to permit the members of the
125system:administrators group and a user to list the groups he or she
126belongs to, to permit the members of the B<system:administrators> group to
127list the groups a machine belongs to, or to permit the members of the
128system:administrators group and a group's owner to list the users and
129machines that belong to it.
130
131=item *
132
133Set it to lowercase C<m> to permit members of a group to list the other
134members. (For user and machine entries, this setting is equivalent to the
135hyphen.)
136
137=item *
138
139Set it to uppercase C<M> to permit anyone who can access the cell's
140database server machines to list membership information for a user,
141machine or group.
142
143=back
144
145=item *
146
147The fourth flag determines who can use the B<pts adduser> command to add
148users and machines as members of a group. This flag has no sensible
149interpretation for user and machine entries, but must be set nonetheless,
150preferably to the hyphen.
151
152=over 4
153
154=item *
155
156Set it to the hyphen (C<->) to permit the members of the
157system:administrators group and the owner of the group to add members.
158
159=item *
160
161Set it to lowercase C<a> to permit members of a group to add other
162members.
163
164=item *
165
166Set it to uppercase C<A> to permit anyone who can access the cell's
167database server machines to add members to a group.
168
169=back
170
171=item *
172
173The fifth flag determines who can use the B<pts removeuser> command to
174remove users and machines from membership in a group. This flag has no
175sensible interpretation for user and machine entries, but must be set
176nonetheless, preferably to the hyphen.
177
178=over 4
179
180=item *
181
182Set it to the hyphen (C<->) to permit the members of the
183system:administrators group and the owner of the group to remove members.
184
185=item *
186
187Set it to lowercase C<r> to permit members of a group to remove other
188members.
189
190=back
191
192=back
193
194=item B<-groupquota> <I<group creation quota>>
195
196Specifies the number of additional groups a user can create (it does not
197matter how many he or she has created already). Do not include this
198argument for a group or machine entry.
199
200=include fragments/pts-common.pod
201
202=back
203
204=head1 EXAMPLES
205
206The following example changes the privacy flags on the group C<operators>,
207retaining the default values of the first, second and third flags, but
208setting the fourth and fifth flags to enable the group's members to add
209and remove other members.
210
211 % pts setfields -nameorid operators -access S-Mar
212
213The following example changes the privacy flags and sets group quota on
214the user entry C<admin>. It retains the default values of the first,
215fourth, and fifth flags, but sets the second and third flags, to enable
216anyone to list the groups that C<admin> owns and belongs to. Users
217authenticated as C<admin> can create an additional 50 groups.
218
219 % pts setfields -nameorid admin -access SOM-- -groupquota 50
220
221=head1 PRIVILEGE REQUIRED
222
223To edit group entries or set the privacy flags on any type of entry, the
224issuer must own the entry or belong to the system:administrators group. To
225set group-creation quota on a user entry, the issuer must belong to the
226system:administrators group.
227
228=head1 SEE ALSO
229
230L<pts(1)>,
231L<pts_adduser(1)>,
232L<pts_examine(1)>,
233L<pts_listowned(1)>,
234L<pts_membership(1)>,
235L<pts_removeuser(1)>
236
237=head1 COPYRIGHT
238
239IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
240
241This documentation is covered by the IBM Public License Version 1.0. It was
242converted from HTML to POD by software written by Chas Williams and Russ
243Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.