Used by p4 client? | Used by p4d server? |
Command-Line Alternative | Can be set in P4CONFIG file? |
---|---|---|---|
Yes | No | p4 -u username command | Yes |
OS | Value |
---|---|
NT | The value of the USERNAME environment variable. |
All Others | The value of the USER environment variable |
By default, the Perforce username is the same as the OS username.
If a particular Perforce user does not have an attached password, then any other Perforce user can impersonate this user. Each user should set their password with the p4 user command. If the user you're impersonating happens to have a Perforce password, you can run commands as that user with p4 -u username -P password command.