Change a user's Perforce password on the server.
By default, user records are created without passwords, and any Perforce user can impersonate another by setting P4USER or by using the globally-available -u flag. To prevent another user from impersonating you, use p4 passwd to set your password to any string that doesn't contain whitespace or the comment character #.
Once a password has been set, it must be provided to the p4d server program when any p4 command is run. You can do this in one of three ways:
Each of these three methods overrides the methods above it.
On Windows clients, p4 passwd stores the password for you by performing p4 set to change the local registry variable. (Note that the registry variable holds only the encrypted MD5 hash of the password, not the password itself.)
To delete a password, set the password value to an empty string.
user | Superusers can provide this argument to change the password of another user. |
g_opts | See global options section. |
Can File Arg Use Revision Specifier? |
Can File Arg Use Revision Range? |
Minimal Access Level Required |
---|---|---|
<NA> | <NA> | list |
To change other user options | p4 user |
To change users' access levels | p4 protect |