[p4] Sharing workspace between 2 users?
Qazwart
qazwart at gmail.com
Sun Sep 2 11:41:03 PDT 2007
The real problem is when the client spec is used on different
machines and root drives. That is, someone is sharing the client on
Machine "A" and Machine "B". It doesn't matter whether this is two
different people, or the same person. This is trouble.
What we are talking about is a single directory workspace on a single
machine that multiple users will access. The problem is the access to
the workspace. Some Perforce user must own it, and it is best if
everyone who used that workspace was that user (as you pointed out).
Otherwise, there may be permission problems with user A sync'ing user
B's workspace.
The best way is to use the P4CONFIG environment variable (which could
be set in the Registry if this is a Windows machine to some file name
(standards are .p4rc for Unix, p4.rc or _p4rc for Windows). Then have
this file in the root of the client. This file will contain the name
of the Perforce user, the workspace name, the P4PORT, etc. That way,
if you go into this directory, you are automatically set to the
correct user and port. I recommended that this be a special Perforce
user with read only rights, and in a user group that has a very long
log out time. That way, people who use this machine: Don't have to
log in, and cannot -- even if they want to -- submit changes.
On Aug 31, 2007, at 6:00 PM, Gabor Maghera wrote:
> Although possible, sharing workspaces is a no-no according to best
> practices. This may not be as much of an issue if you are not
> submitting
> changes through it.
David Weintraub
david at weintraub.name
qazwart at gmail.com
More information about the perforce-user
mailing list