[Getting Started]  [How To...]  [Browser Tips]  [Glossary]  [Road Map]  

Passwords and P4Web

When you point your browser to your P4Web Helper, you'll be prompted for a username and password.

Username restrictions

At the browser's username/password prompt, you must enter the username that matches the one your P4Web Helper was started up with. Normally, this is the same as your system login or account username.

Each P4Web Helper program is available for use by one and only one user, although that user can make several browser connections to it at once.

The importance of passwords

If your Perforce username has no password associated with it -- which is likely to be the case if you're using Perforce for the first time -- it doesn't matter what you type in your browser's password prompt. However, you should edit your user spec immedately once you are connected with P4Web to create a Perforce password for your username. The password you create this way is stored by the Perforce server. A Perforce password prevents others users from using your P4Web Helper. If your username doesn't have a Perforce password, anyone can connect their browser to your P4Web Helper and run commands that view and write files in your workspace.

Once you've created a Perforce password by editing your user spec, use that password in your browser's username/password prompt. If you enter the wrong password in the prompt, you'll see a Perforce password error message displayed in your browser. The message contains a link you can click on to redisplay the username/password prompt.

Changing your Perforce password

Your browser will continue to use the same password every time it communicates with your P4Web Helper. If you change your Perforce password, either by editing your user spec in P4Web, or with another Perforce client program, you'll get Perforce password errors in subsequent P4Web operations. Just click on the link in the error message to redisplay the browser username/password prompt, and enter your new password.

Passwords in the environment

Perforce passwords set in the environment on Windows and Unix are ignored by the P4Web Helper program. This includes values set in the registry, shell variables, configuration variables, and values passed with the "-P" flag on the p4web startup command. (See How to Use P4Web for information about the p4web startup command.)

P4Web Viewers

You don't need a username or password to point your browser to a P4Web Viewer.


Copyright 2000 Perforce Software. All rights reserved.