PTS_LISTOWNED(1)
β¨ pts_listowned β the manual page, but make it make sense β¨
okay bestie, so this is pts_listowned(1) from the AFS Command Reference and it's literally just "who owns which groups" but for the AFS Protection Database π
π NAME π
pts_listowned β shows you all the Protection Database groups that a user or a group owns. that's the whole vibe. group ownership reveal, no cap πΈ
π¦ SYNOPSIS π¦
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>]
so there are two whole forms: the long one and the cute little abbreviated one (listo), and yes they do the same thing, she's just wearing a different outfit π
π DESCRIPTION π
pts listowned lists the groups owned by each user or group you hand it in the -nameorid argument. that's it. that's the job. iconic, focused, no notes β¨
now here's the plot twist: if you wanna see the orphaned groups β the ones whose owners have themselves been deleted from the Protection Database π β you pass a value of 0 (zero) to -nameorid. to actually fix that and give those groups a new owner who still exists, you use the pts chown command. adoption arc π«Ά
π OPTIONS π
-nameorid <user or group name or id>+β tells it the name or AFS UID of each user, or the name or AFS GID of each group, that you want the owned-groups list for. you can absolutely mix users and groups on the same command line, and mix names and IDs too, it's giving chaotic but valid π . for each group, put a hyphen in front of the GID to show that it's negative. also! a value of0(zero) lists group entries for groups whose owners no longer have entries in the Protection Database π»-authβ uses the calling user's tokens to talk to the Protection Server. for more deets, go look atpts(1).-cell <cell name>β names the cell you wanna run the command in. more deets inpts(1).-config <config directory>β uses an alternate config directory. more deets inpts(1).-encryptβ encrypts any communication with the Protection Server. more deets inpts(1). secure queen behavior π-forceβ lets the command keep going as far as it possibly can even when errors or other problems pop up, instead of slamming the brakes at the very first error. resilient π§-helpβ prints the online help for this command. every other valid option gets ignored, so don't bother pairing it with anything. she's the main character now π-localauthβ constructs a server ticket using a key from the local/etc/openafs/server/KeyFilefile. do not combine this flag with the-cellor-noauthoptions, fr fr, they don't get along. more deets inpts(1).-noauthβ assigns the unprivileged identityanonymousto the issuer. more deets inpts(1). anonymous era π
π OUTPUT π
the very first line of the output shows the name and AFS UID or AFS GID of each user or group you asked about, and it looks exactly like this:
Groups owned by <name> (id: <ID>) are:
then a list of groups follows it. β οΈ heads up though: that list does not include groups owned by groups that the user or group owns, and it doesn't include groups owned by groups the user or group belongs to either. so it's the direct-ownership list only, no transitive shenanigans. if the user or group doesn't own any groups at all, you get only that header line and then nothing. crickets π¦
and if the issuer isn't privileged enough to view ownership info, you get this error message instead. by default, for both user and group entries, the second privacy flag is the hyphen -, which denies permission to everyone except the user themself (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>)
bestie you do NOT have the clearance for this one π
πΈ EXAMPLES πΈ
here's a whole example where we list the groups owned by user terry, and it also shows that the group "terry:friends" doesn't own any groups (she's group-less, we love her anyway):
% 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:
see that empty line after the last header? that's the no groups owned moment. periodt. β¨
π PRIVILEGE REQUIRED π
what you're allowed to do depends on the setting of the second privacy flag in the Protection Database entry of each user or group you named in -nameorid β and psst, use the pts examine command to actually see those flags π
- if it's the hyphen
-and the-nameoridargument specifies a group, then only the members of thesystem:administratorsgroup and the owner of that group can list the groups it owns. - if it's the hyphen
-and the-nameoridargument specifies a user, then only the members of thesystem:administratorsgroup and the associated user can list the groups he or she owns. - if it's the uppercase letter
"O", then anyone who can access the cell's database server machines can list the groups owned by that user or group. it's giving open invite π
π₯ SEE ALSO π₯
pts(1), pts_chown(1), pts_examine(1), pts_setfields(1)
go read those next, bestie, iykyk π
π 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.
okay that's the whole page!! this was OpenAFS, dated 2026-07-27 β so if you're reading this from the future, hiii, this doc ate and left no crumbs π β¨ bye bestie, go list some groups π«ΆπΈ
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms