Perforce 2002.1 Command Reference
<< Previous Chapter
P4PAGER
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4PORT

P4PASSWD


Description

Supplies the current Perforce user's password for any Perforce client command.

Usage Notes

Used by
Client?

Used by
Server?

Command-Line Alternative
Can be set in P4CONFIG file?

Yes

No

p4 -P passwd command

Yes

Value if not Explicitly Set

Operating System
Value

All

None

Notes

Perforce passwords are set via p4 passwd, or in the form invoked by p4 user. The setting of P4PASSWD is used to verify the user's identity. If a password has not been set, the value P4PASSWD is not used, even if set.

While it is possible to manually set the P4PASSWD environment variable to your plaintext password, the more secure way is to use the p4 passwd command. On UNIX, this will invoke a challenge/response mechanism which securely sends your password to the Perforce server. On Windows, this sets P4PASSWD to the encrypted MD5 hash of your password.

On Windows platforms, if you set a password via P4Win (the Perforce Windows client) the value of the registry variable P4PASSWD is set for you. Setting the password in P4Win is like using p4 passwd (or p4 set P4PASSWD) from the MS-DOS command line, setting the registry variable to the encrypted MD5 hash of the password. The unencrypted password itself is never stored in the registry.


Perforce 2002.1 Command Reference
<< Previous Chapter
P4PAGER
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4PORT
Please send comments and questions about this manual to [email protected].
Copyright 1999-2002 Perforce Software. All rights reserved.
Last updated: 04/03/02