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 [<yes|no>]] [-config <configuration file>]

DESCRIPTION

The pts rename command changes the name of the user, machine, network or group entry specified by the -oldname argument to the name specified by the -newname argument. It is not possible to change a user, machine, or network entry's name to one with a colon (:) or at-sign (@).

Members of the system:administrators group can change a regular group name into a prefix-less name and vice versa. When changing a prefix-less group name into a regular group name or a regular group name to another regular group name, the owner field of the new name (the part before the colon (:)) must correctly reflect the group's owner.

Changing a regular group's owner with the pts chown command automatically changes the owner field (the part before the colon) of the group's name, but does not change the owner field of any groups owned by the group. Use this command to rename those groups to a form that accurately reflects their ownership.

CAUTIONS

By convention, many aspects of a user account have the same name as the user's Protection Service entry, such as a user volume and mount point. After using this command to change a user name, also change the names of all related volumes and mount points to maintain consistency. For further details, see the chapter on user accounts in the AuriStor File System Administration Guide.

OPTIONS

-oldname <old name>

Specifies the current full name of the entry.

-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.

-auth

Use the calling user's tokens to communicate with the Protection Server. For more details, see pts(1).

-cell <cell name>

Names the cell in which to run the command. For more details, see pts(1).

-config <configuration file>

Sets the location of the configuration file to be used. The default file is /etc/yfs/yfs-client.conf. For more details, see pts(1).

-encrypt [<yes|no>]

Enables or disables encryption for any communication with the Protection Server. For more details, see pts(1).

-force

Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error.

-help

Prints the online help for this command. All other valid options are ignored.

-localauth

Constructs a server ticket using a key from the local /etc/yfs/server/KeyFileEx file. Do not combine this flag with the -cell or -noauth options. For more details, see pts(1).

-noauth

Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).

EXAMPLES

The following example changes the name of the group staff, owned by the privileged user admin, to admin:staff:

   % pts rename -oldname staff -newname admin:staff

The following example changes the name of the group admin:finance to the group finance. The issuer must belong to the system:administrators group.

   % 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, machine or network entry's name, the issuer must belong to the system:administrators group.

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:administrators group.

SEE ALSO

pts(1), pts_chown(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.

ACKNOWLEDGEMENTS

"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)

"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)

The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).

"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).

"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.