2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
pts_listowned - Show the Protection Database groups owned by a user or group
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
|
|
|
|
|
|
|
B<pts listowned> S<<< B<-nameorid> <I<user or group name or id>>+ >>>
|
2008-02-04 19:41:49 +00:00
|
|
|
[-cell <I<cell name>>] [B<-noauth>] [B<-localauth>] [B<-force>] [B<-help>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[B<-auth>] [B<-encrypt>] S<<< [B<-config> <I<config directory>>] >>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<pts listo> S<<< B<-na> <I<user or group name or id>>+ >>>
|
2008-02-04 19:41:49 +00:00
|
|
|
[-c <I<cell name>>] [B<-no>] [B<-l>] [B<-f>] [B<-h>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[B<-a>] [B<-e>] S<<< [B<-co> <I<config directory>>] >>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
</div>
|
|
|
|
|
2005-12-08 12:14:33 +00:00
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The B<pts listowned> command lists the groups owned by each user or group
|
|
|
|
specified by the B<-nameorid> argument.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
To list any I<orphaned group>s, whose owners have themselves been deleted
|
|
|
|
from the Protection Database, provide a value of C<0> (zero) for the
|
|
|
|
B<-nameorid> argument. To change the owner to a user or group that still
|
|
|
|
exists, use the B<pts chown> command.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-nameorid> <I<user or group name or id>>+
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the name or AFS UID of each user, or the name or AFS GID of each
|
2005-12-09 14:48:56 +00:00
|
|
|
group, for which to display the list of owned groups. It is acceptable to
|
|
|
|
mix users and groups on the same command line, as well as names and
|
2005-12-08 12:14:33 +00:00
|
|
|
IDs. Precede the GID of each group with a hyphen to indicate that it is
|
|
|
|
negative.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
A value of 0 (zero) lists group entries for groups whose owners no longer
|
|
|
|
have entries in the Protection Database.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2010-07-16 01:21:26 +01:00
|
|
|
=include fragments/pts-common.pod
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
|
|
|
The first line of the output indicates the name and AFS UID or AFS GID of
|
|
|
|
each user or group for which ownership information is requested, in the
|
|
|
|
following format:
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Groups owned by <name> (id: <ID>) are:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
A list of groups follows. The list does not include groups owned by groups
|
|
|
|
that the user or group owns, or to which the user or group belongs. If the
|
|
|
|
user or group does not own any groups, only the header line appears.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The following error message appears if the issuer is not privileged to
|
|
|
|
view ownership information. By default, for both user and group entries
|
|
|
|
the second privacy flag is the hyphen, which denies permission to anyone
|
|
|
|
other than the user (for a user entry) and the members of the
|
|
|
|
system:administrators group.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
pts: Permission denied so failed to get owner list for <name> (id: <ID>)
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The following example lists the groups owned by user terry and shows that
|
|
|
|
the group C<terry:friends> does not own any groups:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% pts listowned terry terry:friends
|
|
|
|
Groups owned by terry (id: 1045) are:
|
|
|
|
terry:friends
|
|
|
|
terry:project1
|
|
|
|
terry:project2
|
|
|
|
Groups owned by terry:friends (id: -673) are:
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The required privilege depends on the setting of the second privacy flag
|
|
|
|
in the Protection Database entry of each user or group indicated by the
|
|
|
|
B<-nameorid> argument (use the B<pts examine> command to display the
|
|
|
|
flags):
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If it is the hyphen and the B<-nameorid> argument specifies a group, only
|
|
|
|
the members of the system:administrators group and the owner of a group
|
|
|
|
can list the groups it owns.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If it is the hyphen and the B<-nameorid> argument specifies a user, only
|
|
|
|
the members of the system:administrators group and the associated user can
|
|
|
|
list the groups he or she owns.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If it is uppercase letter C<O>, anyone who can access the cell's database
|
|
|
|
server machines can list the groups owned by this user or group.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<pts(1)>,
|
|
|
|
L<pts_chown(1)>,
|
|
|
|
L<pts_examine(1)>,
|
|
|
|
L<pts_setfields(1)>
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|