Perforce 2005.1 Command Reference | ||
<< Previous Chapter P4PAGER |
Table of Contents Index Perforce on the Web |
Next Chapter >> P4PCACHE |
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.
If you are using ticket-based authentication, but have a script that relies on a P4PASSWD setting, use p4 login -p to display the value of a ticket that can be passed to Perforce commands as though it were a password (that is, either from the command line, or by setting P4PASSWD to the value of the valid ticket).
Perforce 2005.1 Command Reference | ||
<< Previous Chapter P4PAGER |
Table of Contents Index Perforce on the Web |
Next Chapter >> P4PCACHE |