[p4] Authenticating prior to checkpointing
Jeff Grills
jgrills at drivensnow.org
Wed Jan 11 10:21:40 PST 2006
FWIW, I've asked Perforce Support to add a Tech Note/FAQ discussing this
technique, and they agreed that it sounded useful.
j
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Jeff Grills
Sent: Wednesday, January 11, 2006 11:01 AM
To: 'Justin Mosier'; perforce-user at perforce.com
Subject: Re: [p4] Authenticating prior to checkpointing
Assuming the machine and account from which you invoke checkpoints is
reasonably secure, I'd suggest putting your super user that's used for
things like backup into its own group with a 0 or very large (multiple
years) ticket expiration time, and setting up your perforce permissions so
that the super user is restricted to that one machine. Then way you only
have to log in once and the script (as well as all other operations) will
work exactly as you'd expect.
I've typically done this sort of thing in Unix, where we had a dedicated
Unix user account which had a perforce user with super access permanently
logged in using this technique, and that Unix account was protected with
classic Unix sudo access. That way we could grant sudo access to anyone who
needed to administer the perforce server, but the perforce administrator
password did not need to be known by all those individuals (as shared
passwords are typically a security flaw). One would hope there is some
similar thing that can be done in Windows.
j
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Justin Mosier
Sent: Wednesday, January 11, 2006 10:48 AM
To: perforce-user at perforce.com
Subject: [p4] Authenticating prior to checkpointing
I'm trying to checkpoint the perforce database every Sunday through a
scheduled batch script, but I can't get around having to login manually
first.
When I run "p4 admin checkpoint" in the command window, I get the error
message:
Perforce password (P4PASSWD) invalid or unset.
So I logged in using "p4 login [my superuser password]". Then when I run "p4
admin checkpoint", it runs ok
What command do I need to run in the batch script to login/authenticate
prior to running the checkpoint command?
Or do I need to set some environment variable (P4PASSWD)?
Thanks!
Perforce Environment:
Win2003 Server
P4 Server 2004.2/69739
----------------------------------
Justin R. Mosier
jmosier at alberici.com
Alberici Group, Inc.
www.alberici.com <http://www.alberici.com/>
Confidentiality Notice -
This electronic message may contain confidential information intended for
the recipient only. If you are not the intended recipient of this message,
please disregard its contents, and destroy the message, together with any
electronic or other forms of it. We also ask you notify the sender if you
have received this message in error.
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list