MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

Revert the files of user access has been disabled

rajeshkumar created the topic: revert the files of user access has been disabled
Long Back I had one questions to perforce support. Now it was in my archived email So sharing in forum, Hope this will help other members.

Problem Area:
There is one clientSpec called “ClientSpec1” and two user has opened a file in same clientspec “user1” and “user2”. Now we want to delete “user2” without deleted workspace. Also we can
not impersonate user2 login e.g p4 -p PORT -u user2 -c ClientSpec1 -H host1 revert //…
and then revert the files as user access has been disabled.

Please suggest what should be done in this case to revert the files and delete the users.

Solution:
There are a few ways in which you could do this.

Firstly, an admin should be able to log in as another user – so ‘p4 -u admin login user2’ would create the ticket without needing the password for ‘user2’.
Once logged in, you should be able to impersonate this user and run ‘p4 revert -k’ for the files in question.
This is covered in the following KB article.
kb.perforce.com/article/38/reverting-another-users-files

Alternatively, another user could take ownership of the files. Here’s an example:

Users ‘rajesh’ and ‘kumar’ have each opened a file in workspace ‘temporary’.
>p4 opened -a //depot/test…
//depot/test.js#3 – edit default change (xtext) by rajesh@temporary
//depot/test2.js#2 – edit default change (text) by kumar@temporary

I use the ‘reopen’ command to change the user:
>p4 -u adam -c temporary reopen //depot/test…
//depot/test.js#3 – reopened; user adam
//depot/test2.js#2 – reopened; user adam

As these changes are now ‘mine’, I can revert them (noting the ‘-k’ flag here):
>p4 -u adam -c temporary revert -k //depot/test…
//depot/test.js#3 – was edit, cleared
//depot/test2.js#2 – was edit, cleared
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x