2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
pts_examine - Displays a Protection Database entry
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<pts examine> S<<< B<-nameorid> <I<user or group name or id>>+ >>>
|
2008-02-04 19:41:49 +00:00
|
|
|
S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
|
2008-06-05 21:31:13 +01:00
|
|
|
[B<-force>] [B<-auth>] [B<-help>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[B<-encrypt>] S<<< [B<-config> <I<config directory>>] >>>
|
2006-03-01 05:02:29 +00:00
|
|
|
|
|
|
|
B<pts e> S<<< B<-na> <I<user or group name or id>>+ >>> S<<< [B<-c> <I<cell name>>] >>>
|
2008-06-05 21:31:13 +01:00
|
|
|
[B<-no>] [B<-l>] [B<-f>] [B<-a>] [B<-h>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[B<-e>] S<<< [B<-co> <I<config directory>>] >>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<pts check> S<<< B<-na> <I<user or group name or id>>+ >>> S<<< [B<-c> <I<cell name>>] >>>
|
2008-06-05 21:31:13 +01:00
|
|
|
[B<-no>] [B<-l>] [B<-f>] [B<-a>] [B<-h>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[B<-e>] S<<< [B<-co> <I<config directory>>] >>>
|
2005-12-21 00:41:17 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<pts che> S<<< B<-na> <I<user or group name or id>>+ >>> S<<< [B<-c> <I<cell name>>] >>>
|
2008-06-05 21:31:13 +01:00
|
|
|
[B<-no>] [B<-l>] [B<-f>] [B<-a>] [B<-h>]
|
2013-06-13 00:22:27 +01:00
|
|
|
[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 examine> command displays information from the Protection
|
2005-12-08 12:14:33 +00:00
|
|
|
Database entry of each user, machine or group specified by the
|
|
|
|
B<-nameorid> argument.
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item -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, the name or AFS GID of each
|
|
|
|
group, or the IP address (complete or wildcard-style) or AFS UID of each
|
|
|
|
machine for which to display the Protection Database entry. It is
|
|
|
|
acceptable to mix users, machines, and groups on the same command line, as
|
2005-12-09 14:48:56 +00:00
|
|
|
well as names (IP addresses for machines) and IDs. Precede the GID of each
|
|
|
|
group with a hyphen to indicate that it is negative.
|
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 output for each entry consists of two lines that include the following
|
|
|
|
fields:
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item Name
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-21 00:41:17 +00:00
|
|
|
The contents of this field depend on the type of entry:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
For a user entry, it is the username that the user types when
|
|
|
|
authenticating with AFS.
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
For a machine entry, it is either the IP address of a single machine in
|
|
|
|
dotted decimal format, or a wildcard notation that represents a group of
|
2005-12-09 14:48:56 +00:00
|
|
|
machines on the same network. See the B<pts createuser> reference page for
|
|
|
|
an explanation of the wildcard notation.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
For a group entry, it is one of two types of group name. If the name has a
|
|
|
|
colon between the two parts, it represents a regular group and the part
|
|
|
|
before the prefix reflects the group's owner. A prefix-less group does not
|
|
|
|
have the owner field or the colon. For more details on group names, see
|
|
|
|
the B<pts creategroup> reference page.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item id
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
A unique number that the AFS server processes use to identify AFS users,
|
|
|
|
machines and groups. AFS UIDs for user and machine entries are positive
|
2005-12-09 14:48:56 +00:00
|
|
|
integers, and AFS GIDs for group entries are negative integers. AFS UIDs
|
|
|
|
and GIDs are similar in function to the UIDs and GIDs used in local file
|
2005-12-08 12:14:33 +00:00
|
|
|
systems such as UFS, but apply only to AFS operations.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item owner
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The user or group that owns the entry and thus can administer it (change
|
2005-12-09 14:48:56 +00:00
|
|
|
the values in most of the fields displayed in the output of this command),
|
|
|
|
or delete it entirely. The Protection Server automatically records the
|
|
|
|
system:administrators group in this field for user and machine entries at
|
|
|
|
creation time.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item creator
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The user who issued the B<pts createuser> or B<pts creategroup> command to
|
|
|
|
create the entry. This field serves as an audit trail, and cannot be
|
|
|
|
changed.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item membership
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
An integer that for users and machines represents the number of groups to
|
2005-12-09 14:48:56 +00:00
|
|
|
which the user or machine belongs. For groups, it represents the number of
|
|
|
|
group members.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item flags
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
A string of five characters, referred to as I<privacy flags>, which
|
|
|
|
indicate who can display or administer certain aspects of the entry.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item s
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Controls who can issue the B<pts examine> command to display the entry.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item o
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Controls who can issue the B<pts listowned> command to display the groups
|
|
|
|
that a user or group owns.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item m
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Controls who can issue the B<pts membership> command to display the groups
|
|
|
|
a user or machine belongs to, or which users or machines belong to a
|
|
|
|
group.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item a
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Controls who can issue the B<pts adduser> command to add a user or machine
|
|
|
|
to a group. It is meaningful only for groups, but a value must always be
|
|
|
|
set for it even on user and machine entries.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item r
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Controls who can issue the B<pts removeuser> command to remove a user or
|
|
|
|
machine from a group. It is meaningful only for groups, but a value must
|
|
|
|
always be set for it even on user and machine entries.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Each flag can take three possible types of values to enable a different
|
|
|
|
set of users to issue the corresponding command:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
A hyphen (-) designates the members of the system:administrators group and
|
|
|
|
the entry's owner. For user entries, it designates the user in addition.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
The lowercase version of the letter applies meaningfully to groups only,
|
2005-12-09 14:48:56 +00:00
|
|
|
and designates members of the group in addition to the individuals
|
|
|
|
designated by the hyphen.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
The uppercase version of the letter designates everyone.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
For example, the flags C<SOmar> on a group entry indicate that anyone can
|
|
|
|
examine the group's entry and display the groups that it owns, and that
|
|
|
|
only the group's members can display, add, or remove its members.
|
|
|
|
|
|
|
|
The default privacy flags for user and machine entries are C<S---->,
|
|
|
|
meaning that anyone can display the entry. The ability to perform any
|
|
|
|
other functions is restricted to members of the system:administrators
|
|
|
|
group and the entry's owner (as well as the user for a user entry).
|
|
|
|
|
|
|
|
The default privacy flags for group entries are C<S-M-->, meaning that all
|
|
|
|
users can display the entry and the members of the group, but only the
|
|
|
|
entry owner and members of the system:administrators group can perform
|
2008-06-05 21:31:13 +01:00
|
|
|
other functions. The defaults for the privacy flags may be changed by
|
|
|
|
running B<ptserver> with the B<-default_access> option. See L<ptserver(8)>
|
|
|
|
for more discussion of the B<-default_access> option.
|
2005-12-09 14:48:56 +00:00
|
|
|
|
|
|
|
=item group quota
|
|
|
|
|
|
|
|
The number of additional groups the user is allowed to create. The B<pts
|
|
|
|
createuser> command sets it to 20 for both users and machines, but it has
|
|
|
|
no meaningful interpretation for a machine, because it is not possible to
|
|
|
|
authenticate as a machine. Similarly, it has no meaning in group entries
|
2008-06-05 21:31:13 +01:00
|
|
|
that only deal with the local cell and the B<pts creategroup> command sets
|
|
|
|
it to 0 (zero); do not change this value.
|
|
|
|
|
|
|
|
When using cross-realm authentication, a special group of the form
|
|
|
|
system:authuser@FOREIGN.REALM is created by an administrator and used. If
|
|
|
|
the group quota for this special group is greater than zero, then aklog
|
|
|
|
will automatically register foreign users in the local PTS database, add
|
|
|
|
the foreign user to the system:authuser@FOREIGN.REALM, and decrement the
|
|
|
|
group quota by one.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The following example displays the user entry for C<terry> and the machine
|
|
|
|
entry C<158.12.105.44>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% pts examine terry 158.12.105.44
|
2005-12-21 00:41:17 +00:00
|
|
|
Name: terry, id: 1045, owner: system:administrators, creator: admin,
|
2005-12-08 12:14:33 +00:00
|
|
|
membership: 9, flags: S----, group quota: 15.
|
2005-12-21 00:41:17 +00:00
|
|
|
Name: 158.12.105.44, id: 5151, owner: system:administrators,
|
2005-12-08 12:14:33 +00:00
|
|
|
creator: byu, membership: 1, flags: S----, group quota: 20.
|
|
|
|
|
|
|
|
The following example displays the entries for the AFS groups with GIDs
|
|
|
|
-673 and -674.
|
|
|
|
|
|
|
|
% pts examine -673 -674
|
2005-12-21 00:41:17 +00:00
|
|
|
Name: terry:friends, id: -673, owner: terry, creator: terry,
|
2005-12-08 12:14:33 +00:00
|
|
|
membership: 5, flags: S-M--, group quota: 0.
|
2005-12-21 00:41:17 +00:00
|
|
|
Name: smith:colleagues, id: -674, owner: smith, creator: smith,
|
2005-12-08 12:14:33 +00:00
|
|
|
membership: 14, flags: SOM--, group quota: 0.
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
|
|
|
The required privilege depends on the setting of the first privacy flag in
|
2005-12-09 14:48:56 +00:00
|
|
|
the Protection Database entry of each entry specified by the B<-nameorid>
|
|
|
|
argument:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If it is lowercase C<s>, members of the system:administrators group and
|
|
|
|
the user associated with a user entry can examine it, and only members of
|
|
|
|
the system:administrators group can examine a machine or group entry.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If it is uppercase C<S>, anyone who can access the cell's database server
|
|
|
|
machines can examine the entry.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<pts(1)>,
|
|
|
|
L<pts_adduser(1)>,
|
|
|
|
L<pts_chown(1)>,
|
|
|
|
L<pts_creategroup(1)>,
|
|
|
|
L<pts_createuser(1)>,
|
|
|
|
L<pts_listowned(1)>,
|
|
|
|
L<pts_membership(1)>,
|
|
|
|
L<pts_removeuser(1)>,
|
|
|
|
L<pts_rename(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.
|