PTS_LISTOWNED(1) | AFS Command Reference | PTS_LISTOWNED(1) |
pts_listowned - Show the Protection Database groups owned by a user or group
pts listowned
-nameorid <user or group name or id>+
[-cell <cell name>] [-noauth] [-localauth]
[-force] [-help]
[-auth] [-encrypt]
[-config <config directory>]
pts listo
-na <user or group name or id>+
[-c <cell name>] [-no] [-l] [-f]
[-h]
[-a] [-e]
[-co <config directory>]
The pts listowned command lists the groups owned by each user or group specified by the -nameorid argument.
To list any orphaned groups, whose owners have themselves been deleted from the Protection Database, provide a value of 0 (zero) for the -nameorid argument. To change the owner to a user or group that still exists, use the pts chown command.
A value of 0 (zero) lists group entries for groups whose owners no longer have entries in the Protection Database.
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:
Groups owned by <name> (id: <ID>) are:
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.
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.
pts: Permission denied so failed to get owner list for <name> (id: <ID>)
The following example lists the groups owned by user terry and shows that the group "terry:friends" does not own any groups:
% 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:
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 -nameorid argument (use the pts examine command to display the flags):
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.
2021-01-27 | OpenAFS |