bbb20ce42ff1bb48b93bea6c100ca162c945fbd0
[openafs.git] / doc / man-pages / pod1 / pts_listowned.pod
1 =head1 NAME
2
3 pts listowned - Show the Protection Database groups owned by a user or group
4
5 =head1 SYNOPSIS
6
7 B<pts listowned> B<-nameorid> <I<user or group name or id>>+
8     [-cell <I<cell name>>] [B<-noauth>] [B<-force>] [B<-help>]
9
10 B<pts listo> B<-na> <I<user or group name or id>>+
11     [-c <I<cell name>>] [B<-no>] [B<-f>] [B<-h>]
12
13 =head1 DESCRIPTION
14
15 The B<pts listowned> command lists the groups owned by each user or group
16 specified by the B<-nameorid> argument.
17
18 To list any I<orphaned group>s, whose owners have themselves been deleted
19 from the Protection Database, provide a value of C<0> (zero) for the
20 B<-nameorid> argument. To change the owner to a user or group that still
21 exists, use the B<pts chown> command.
22
23 =head1 OPTIONS
24
25 =over 4
26
27 =item B<-nameorid> <I<user or group name or id>>+
28
29 Specifies the name or AFS UID of each user, or the name or AFS GID of each
30 group, for which to display the list of owned groups. It is acceptable to
31 mix users and groups on the same command line, as well as names and
32 IDs. Precede the GID of each group with a hyphen to indicate that it is
33 negative.
34
35 A value of 0 (zero) lists group entries for groups whose owners no longer
36 have entries in the Protection Database.
37
38 =item B<-cell> <I<cell name>>
39
40 Names the cell in which to run the command. For more details, see
41 L<pts(1)>.
42
43 =item B<-noauth>
44
45 Assigns the unprivileged identity anonymous to the issuer. For more
46 details, see L<pts(1)>.
47
48 =item B<-force>
49
50 Enables the command to continue executing as far as possible when errors
51 or other problems occur, rather than halting execution at the first error.
52
53 =item B<-help>
54
55 Prints the online help for this command. All other valid options are
56 ignored.
57
58 =back
59
60 =head1 OUTPUT
61
62 The first line of the output indicates the name and AFS UID or AFS GID of
63 each user or group for which ownership information is requested, in the
64 following format:
65
66    Groups owned by <name> (id: <ID>) are:
67
68 A list of groups follows. The list does not include groups owned by groups
69 that the user or group owns, or to which the user or group belongs. If the
70 user or group does not own any groups, only the header line appears.
71
72 The following error message appears if the issuer is not privileged to
73 view ownership information. By default, for both user and group entries
74 the second privacy flag is the hyphen, which denies permission to anyone
75 other than the user (for a user entry) and the members of the
76 system:administrators group.
77
78    pts: Permission denied so failed to get owner list for <name> (id: <ID>)
79
80 =head1 EXAMPLES
81
82 The following example lists the groups owned by user terry and shows that
83 the group C<terry:friends> does not own any groups:
84
85    % pts listowned terry terry:friends
86    Groups owned by terry (id: 1045) are:
87      terry:friends
88      terry:project1
89      terry:project2
90    Groups owned by terry:friends (id: -673) are:
91
92 =head1 PRIVILEGE REQUIRED
93
94 The required privilege depends on the setting of the second privacy flag
95 in the Protection Database entry of each user or group indicated by the
96 B<-nameorid> argument (use the B<pts examine> command to display the
97 flags):
98
99 =over 4
100
101 =item *
102
103 If it is the hyphen and the B<-nameorid> argument specifies a group, only
104 the members of the system:administrators group and the owner of a group
105 can list the groups it owns.
106
107 =item *
108
109 If it is the hyphen and the B<-nameorid> argument specifies a user, only
110 the members of the system:administrators group and the associated user can
111 list the groups he or she owns.
112
113 =item *
114
115 If it is uppercase letter C<O>, anyone who can access the cell's database
116 server machines can list the groups owned by this user or group.
117
118 =back
119
120 =head1 SEE ALSO
121
122 L<pts(1)>,
123 L<pts_chown(1)>,
124 L<pts_examine(1)>,
125 L<pts_setfields(1)>
126
127 =head1 COPYRIGHT
128
129 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
130
131 This documentation is covered by the IBM Public License Version 1.0.  It was
132 converted from HTML to POD by software written by Chas Williams and Russ
133 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.