PTS_REMOVEUSER(1)
π PTS_REMOVEUSER(1) π
okay bestie, gather round, because this is a page from the AFS Command Reference and it's literally about yeeting a user out of a Protection Database group π
β¨ NAME β¨
pts_removeuser β removes a user from a Protection Database group π«Ά
πΈ SYNOPSIS πΈ
pts removeuser -user <user name>+ -group <group name>+
[-cell <cell name>] [-noauth] [-localauth] [-force]
[-help] [-auth] [-encrypt] [-config <config directory>]
pts rem -u <user name>+ -g <group name>+
[-c <cell name>] [-n] [-l] [-f] [-h]
[-a] [-e] [-co <config directory>]
π¦ DESCRIPTION π¦
So here's the vibe: pts removeuser takes each user or machine named by the -user argument and boots them out of each group named by the -group argument. Multiple users, multiple groups, one command. The way that works is iconic fr fr π
Not me reminding you of the related commands though:
- Wanna add people to a group? That's
pts adduser, bestie. - Wanna list who's in a group?
pts membership, go look. - Wanna remove users from a group and delete the whole group entry in literally one step?
pts deletehandles it.
π CAUTIONS π
AFS compiles each user's group membership as he or she authenticates. Any users who have valid tokens when they are removed from a group retain the privileges extended to that group's members until they discard their tokens or reauthenticate.
so basically they keep the perks until their tokens get dropped. no cap, plan accordingly π¨
π OPTIONS π
-user <user name>+β names each user entry to remove, or the IP address (complete or wildcard-style) of each machine entry to remove. give me names or give me addresses π-group <group name>+β names each group you're removing members from.-authβ use the calling user's tokens to talk to the Protection Server. more deets live inpts(1).-cell <cell name>β names the cell where the command runs. again,pts(1)has the lore.-config <config directory>β use an alternate config directory.pts(1), as always.-encryptβ encrypts any communication with the Protection Server. yep,pts(1).-forceβ lets the command keep going as far as it possibly can when errors or other problems pop up, instead of slamming to a halt at the very first one. resilience queen β¨-helpβ prints the online help for this command. all other valid options are ignored, so don't bother combining.-localauthβ constructs a server ticket using a key from the local/etc/openafs/server/KeyFilefile. Do not combine this flag with the-cellor-noauthoptions. more details inpts(1).-noauthβ assigns the unprivileged identityanonymousto the issuer.pts(1)for the fine print.
π₯ EXAMPLES π₯
Example one: we're removing user smith from the groups "staff" and "staff:finance". and like, notice that no switch names are necessary because only a single instance is provided for the first argument (the username). lowkey elegant.
% pts removeuser smith staff staff:finance
Example two: we're removing three machine entries β representing all machines in the Example Corporation network β from the group "bin-prot":
% pts removeuser -user 138.255.0.0 192.12.105.0 192.12.106.0 -group bin-prot
π PRIVILEGE REQUIRED π
The privilege you need depends on the setting of the fifth privacy flag in the Protection Database for the group named by the -group argument (use the pts examine command to display the flags, iykyk):
- If it is the hyphen, only the group's owner and members of the
system:administratorsgroup can remove members. - If it is lowercase
"r", members of the group can also remove other members.
(It is not possible to set the fifth flag to uppercase "R". so don't even try it π)
π SEE ALSO π
pts(1), pts_adduser(1), pts_examine(1), pts_membership(1), pts_setfields(1)
π 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.
and that's the whole page bestie, mwah π this came to you courtesy of OpenAFS, dated 2026-07-27 β go forth and remove some users, periodt π¦β¨
π¦ 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