Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log in as a user in p4

Tags:

I have an issue where users are trying to log in to their Perforce account using p4 command line (not p4v visual client), but it seems to start at a default account without permissions. When they try to logout with

p4 logout

the users get following error

"Access for user "foo" has not been enabled by 'p4 protect'".

What is the standard way of logging out and logging in via p4 command line?

like image 533
coffee Avatar asked Aug 17 '11 12:08

coffee


1 Answers

For ease of use, make sure to set your username via the P4USER environment variable first, then use p4 login and p4 logout You could also use p4 -u <username> login

like image 63
aflat Avatar answered Sep 29 '22 21:09

aflat