3 pts membership - Displays the membership list for a user or group
7 B<pts membership -nameorid> <I<user or group name or id>>+ [-cell <I<cell name>>]
8 [B<-noauth>] [B<-force>] [B<-help>]
10 B<pts m -na> <I<user or group name or id>>+ [B<-c> <I<cell name>>] [B<-no>] [B<-f>] [-h]
12 B<pts groups -na> <I<user or group name or id>>+ [-c <I<cell name>>]
13 [B<-no>] [B<-f>] [B<-h>]
15 B<pts g -na> <I<user or group name or id>>+ [B<-c> <I<cell name>>] [B<-no>] [B<-f>] [-h]
19 The pts membership command lists the groups to which each user
20 or machine specified by the B<-nameorid> argument belongs, or lists
21 the users and machines that belong to each group specified by the
22 B<-nameorid> argument.
24 It is not possible to list the members of the
25 B<system:anyuser> or B<system:authuser> groups,
26 and they do not appear in the list of groups to which a user belongs.
28 To add users or machine to groups, use the pts adduser
29 command; to remove them, use the B<pts removeuser>
38 Specifies the name or AFS UID of each user entry, the IP address (complete
39 or wildcard-style) or AFS UID of each machine entry, or the name or AFS GID of
40 each group, for which to list group membership. It is acceptable to mix
41 users, machines, and groups on the same command line, as well as names and
42 IDs. Precede the GID of each group with a hyphen to indicate that it is
47 Names the cell in which to run the command. For more details, see
48 the introductory B<pts> reference page.
52 Assigns the unprivileged identity anonymous to the
53 issuer. For more details, see the introductory B<pts> reference
58 Enables the command to continue executing as far as possible when errors
59 or other problems occur, rather than halting execution at the first
64 Prints the online help for this command. All other valid options
71 For each user and machine, the output begins with the following header
72 line, followed by a list of the groups to which the user or machine
75 Groups I<name> (id: I<AFS UID>) is a member of:
77 For each group, the output begins with the following header line, followed
78 by a list of the users and machines who belong to the group:
80 Members of I<group_name> (id: I<AFS GID>) are:
84 The following example lists the groups to which the user pat
85 belongs and the members of the group B<smith:friends>.
86 Note that third privacy flag for the B<pat> entry was changed from the
87 default hyphen to enable a non-administrative user to obtain this
90 % pts membership pat smith:friends
91 Groups pat (id: 1144) is a member of:
95 Members of smith:friends (id: -562) are:
102 =head1 PRIVILEGE REQUIRED
104 The required privilege depends on the setting of the third privacy flag in
105 the Protection Database entry of each user or group indicated by the
106 B<-nameorid> argument (use the B<pts examine> command to
113 If it is the hyphen and the -nameorid argument specifies a
114 user, only the associated user and members of the
115 B<system:administrators> group can list the groups to which the
121 If it is the hyphen and the -nameorid argument specifies a
122 machine, only the members of the B<system:administrators> group
123 can list the groups to which the machine belongs.
128 If it is the hyphen and the -nameorid argument specifies a
129 group, only the owner of the group and members of the
130 B<system:administrators> group can list the members of the
136 If it is lowercase C<m> and the -nameorid argument
137 specifies a user or machine entry, the meaning is equivalent to the
143 If it is lowercase C<m> and the -nameorid argument
144 specifies a group, members of the group can also list the other
150 If it is uppercase C<M>, anyone who can access the cell's
151 database server machines can list group memberships.
161 L<pts_removeuser(1)>,
166 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
168 This documentation is covered by the IBM Public License Version 1.0. It was
169 converted from HTML to POD by software written by Chas Williams and Russ
170 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.