passwd -- Set the user's password on the server (and Windows client) p4 passwd [ -O oldPassword -P newPassword ] [ user ] 'p4 passwd' sets the user's password on the server. Once a password is set for a user on the server, then in order for that user to invoke any Perforce client commands the same password must be set on the client in the environment variable $P4PASSWD. (On Windows, 'p4 passwd' sets this as well.) 'p4 passwd' prompts for both the old password and the new password with character echoing turned off. Setting the password to an empty string deletes the password. The -O flag provides the old password, avoiding prompting. The -P flag provides the new password, avoiding prompting. Setting the password of someone other than the current user requires superuser access granted by p4 protect In this case 'p4 passwd' does not prompt for the old password.