3 pts_setfields - Sets privacy flags or quota for a Protection Database entry
10 B<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<-force>] [B<-help>]
15 B<pts setf> S<<< B<-na> <I<user or group name or id>>+ >>>
16 S<<< [B<-a> <I<set privacy flags>>] >>>
17 S<<< [B<-g> <I<set limit on group creation>>] >>> S<<< [B<-c> <I<cell name>>] >>>
18 [B<-no>] [B<-f>] [B<-h>]
25 The B<pts setfields> command sets the group-creation quota, the privacy
26 flags, or both, associated with each user, machine, or group entry
27 specified by the B<-nameorid> argument.
29 To examine the current quota and privacy flags, use the B<pts examine>
34 Changing a machine or group's group-creation quota is allowed, but not
35 recommended. The concept is meaningless for machines and groups, because
36 it is impossible to authenticate as a group or machine.
38 Similarly, some privacy flag settings do not have a sensible
39 interpretation. L<OPTIONS> specifies the appropriate settings.
45 =item B<-nameorid> <I<user or group name or id>>+
47 Specifies the name or AFS UID of each user, the IP address (complete or
48 wildcard-style) of each machine, or the name or AFS GID of each machine
49 for which to set privacy flags or group-creation quota. It is acceptable
50 to mix users, machines, and groups on the same command line, as well as
51 names (IP addresses for machines) and IDs. Precede the GID of each group
52 with a hyphen to indicate that it is negative.
54 =item B<-access> <I<privacy flags>>
56 Specifies the privacy flags to apply to each entry. Provide a string of
57 five characters, one for each of the permissions. If this option is
58 omitted, the current setting remains unchanged.
60 Set each flag to achieve the desired combination of permissions. If the
61 following list does not mention a certain setting, it is not
62 acceptable. For further discussion of the privacy flags, see
69 The first flag determines who can use the B<pts examine> command to
70 display information from a user, machine or group's Protection Database
77 Set it to lowercase C<s> to permit the members of the
78 system:administrators group to display a user, machine, or group entry,
79 and the associated user to display a user entry.
83 Set it to uppercase C<S> to permit anyone who can access the cell's
84 database server machines to display a user, machine, or group entry.
90 The second flag determines who can use the B<pts listowned> command to
91 list the groups that a user or group owns.
97 Set it to the hyphen (C<->) to permit the members of the
98 system:administrators group and a user to list the groups he or she owns,
99 or to permit the members of the system:administrators group and a group's
100 owner to list the groups that a group owns.
104 Set it to uppercase letter C<O> to permit anyone who can access the cell's
105 database server machines to list the groups owned by a machine or group
112 The third flag determines who can use the B<pts membership> command to
113 list the groups to which a user or machine belongs, or the users and
114 machines that belong to a group.
120 Set it to the hyphen (C<->) to permit the members of the
121 system:administrators group and a user to list the groups he or she
122 belongs to, to permit the members of the B<system:administrators> group to
123 list the groups a machine belongs to, or to permit the members of the
124 system:administrators group and a group's owner to list the users and
125 machines that belong to it.
129 Set it to lowercase C<m> to permit members of a group to list the other
130 members. (For user and machine entries, this setting is equivalent to the
135 Set it to uppercase C<M> to permit anyone who can access the cell's
136 database server machines to list membership information for a user,
143 The fourth flag determines who can use the B<pts adduser> command to add
144 users and machines as members of a group. This flag has no sensible
145 interpretation for user and machine entries, but must be set nonetheless,
146 preferably to the hyphen.
152 Set it to the hyphen (C<->) to permit the members of the
153 system:administrators group and the owner of the group to add members.
157 Set it to lowercase C<a> to permit members of a group to add other
162 Set it to uppercase C<A> to permit anyone who can access the cell's
163 database server machines to add members to a group.
169 The fifth flag determines who can use the B<pts removeuser> command to
170 remove users and machines from membership in a group. This flag has no
171 sensible interpretation for user and machine entries, but must be set
172 nonetheless, preferably to the hyphen.
178 Set it to the hyphen (C<->) to permit the members of the
179 system:administrators group and the owner of the group to remove members.
183 Set it to lowercase C<r> to permit members of a group to remove other
190 =item B<-groupquota> <I<group creation quota>>
192 Specifies the number of additional groups a user can create (it does not
193 matter how many he or she has created already). Do not include this
194 argument for a group or machine entry.
196 =item B<-cell> <I<cell name>>
198 Names the cell in which to run the command. For more details, see
203 Assigns the unprivileged identity anonymous to the issuer. For more
204 details, see L<pts(1)>.
208 Enables the command to continue executing as far as possible when errors
209 or other problems occur, rather than halting execution at the first error.
213 Prints the online help for this command. All other valid options are
220 The following example changes the privacy flags on the group C<operators>,
221 retaining the default values of the first, second and third flags, but
222 setting the fourth and fifth flags to enable the group's members to add
223 and remove other members.
225 % pts setfields -nameorid operators -access S-Mar
227 The following example changes the privacy flags and sets group quota on
228 the user entry C<admin>. It retains the default values of the first,
229 fourth, and fifth flags, but sets the second and third flags, to enable
230 anyone to list the groups that C<admin> owns and belongs to. Users
231 authenticated as C<admin> can create an additional 50 groups.
233 % pts setfields -nameorid admin -access SOM-- -groupquota 50
235 =head1 PRIVILEGE REQUIRED
237 To edit group entries or set the privacy flags on any type of entry, the
238 issuer must own the entry or belong to the system:administrators group. To
239 set group-creation quota on a user entry, the issuer must belong to the
240 system:administrators group.
248 L<pts_membership(1)>,
253 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
255 This documentation is covered by the IBM Public License Version 1.0. It was
256 converted from HTML to POD by software written by Chas Williams and Russ
257 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.