PTS_RENAME(1)
β¨ PTS_RENAME(1) β¨
okay bestie, so you found yourself in the AFS Command Reference section of the manual, and the page you're reading is pts_rename π β literally the glow-up command for Protection Database entries. let's get into it π
πΈ NAME πΈ
pts_rename β changes the name of a Protection Database entry π¦
β¨ SYNOPSIS β¨
pts rename -oldname <old name> -newname <new name>
[-cell <cell name>] [-noauth] [-localauth]
[-force] [-help] [-auth] [-encrypt]
[-config <config directory>]
pts ren -o <old name> -ne <new name> [-c <cell name>]
[-no] [-l] [-f] [-h] [-a] [-e]
[-co <config directory>]
periodt. both spellings, both shorthand versions, all the flags listed right there. π
π DESCRIPTION π
so here's the tea β β pts rename changes the name of the user, machine, or group entry that you point at with the -oldname argument, and swaps it to whatever you put in -newname. simple, right?
BUT π¨ β and this is important β it is not possible to change a user or machine entry's name to look like a regular group entry's name (meaning: a name that has a colon in it). so don't even try it, it's giving delulu.
okay so now for the admin-only corner π β members of the system:administrators group can change a regular group name into a prefix-less name and vice versa. sounds fun right? but watch out: when you're changing a prefix-less group name into a regular group name, or changing a regular group name to another regular group name, the owner field of the new name (that's the part before the colon) must correctly reflect the group's owner. no lies in the owner field bestie, the database will know. π
and here's a little lore drop π β when you change a regular group's owner with the pts chown command, that automatically changes the owner field (the part before the colon) of the group's name. but it does not change the owner field of any groups owned by the group. so basically you gotta come back and use this command to rename those groups into a form that accurately reflects their ownership. it's giving "you thought you were done, congrats you're not" π
π¨ CAUTIONS π¨
okay so by convention, a lot of different aspects of an AFS user account share the same name as the user's Protection Database entry β that includes the Authentication Database entry, the volume, and the mount point. π«Ά
so when you use this command to change a user name, you also need to change the names of all those related entities so everything stays consistent. for instructions on how to do that, go check out the chapter on user accounts in the OpenAFS Administration Guide. don't skip this part, it's not optional energy β
π OPTIONS π
-oldname <old name>β specifies the current full name of the entry. like, what it's called right now, before the glow-up. π-newname <new name>β specifies the new full name for the entry. for regular groups, the owner field (the part before the colon) of the new name must reflect the actual ownership of the group. no cap. π₯-authβ use the calling user's tokens to communicate with the Protection Server. for more deets, seepts(1).-cell <cell name>β names the cell in which to run the command. for more deets, seepts(1).-config <config directory>β use an alternate config directory. for more deets, seepts(1).-encryptβ encrypts any communication with the Protection Server. for more deets, seepts(1).-forceβ lets the command keep going as far as possible when errors or other problems show up, instead of halting at the first error. it's the "keep the party going" flag π-helpβ prints the online help for this command. all other valid options are ignored when you use this. it's the main character of the flag list, sorry to the others. π-localauthβ constructs a server ticket using a key from the local/etc/openafs/server/KeyFilefile. do not combine this flag with the-cellor-noauthoptions. for more deets, seepts(1).-noauthβ assigns the unprivileged identityanonymousto the issuer. for more deets, seepts(1).
π¦ EXAMPLES π¦
first one up: this example changes the name of the group staff, which is owned by the privileged user "admin", into "admin:staff":
% pts rename -oldname staff -newname admin:staff
and second, this one changes the name of the group "admin:finance" to the group "finance". heads up though β the issuer must belong to the system:administrators group for this one:
% pts rename -oldname admin:finance -newname finance
π PRIVILEGE REQUIRED π
- to change a regular group name to a prefix-less name or vice versa, or to change a user or machine entry's name β the issuer must belong to the
system:administratorsgroup. π - to change a group name to a new name of the same type (regular or prefix-less) β the issuer must own the group or belong to the
system:administratorsgroup.
π SEE ALSO π
π 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, no crumbs left π β brought to you by OpenAFS, dated 2026-07-27. go rename something responsibly (or at least legally) π β¨π«Ά
π¦ 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