Perforce 2001.1 Command Reference
<< Previous Chapter
p4 opened
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 print

p4 passwd


Synopsis

Change a user's Perforce password on the server.

Syntax

p4 [g-opts] passwd [-O oldpassword] [-P newpassword] [user]

Description

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 the comment character #.

Once you have set a password, it must be provided to the Perforce server program when any Perforce client 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. (The registry variable holds only the encrypted MD5 hash, not the password itself.)

To delete a password, set the password value to an empty string.

Options

-O oldpassword

Avoid prompting by specifying the old password on the command line.

-P newpassword

Avoid prompting by specifying the new password on the command line.

user

Superusers can provide this argument to change the password of another user.

g_opts

See the Global Options section.

Usage Notes

Can File Arguments Use
Revision Specifier?

Can File Arguments Use
Revision Range?

Minimal Access Level Required

N/A

N/A

list

Related Commands

To change other user options

p4 user

To change users' access levels

p4 protect


Perforce 2001.1 Command Reference
<< Previous Chapter
p4 opened
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 print
Please send comments and questions about this manual to [email protected].
Copyright 1997-2001 Perforce Software. All rights reserved.
Last updated: 10/01/01