[p4] Trigger User issue

Ruy Diaz ruy at mezine.com
Mon Feb 12 09:21:06 PST 2007


Thanks, Robert! I have changed the user that the Perforce service runs under
and everything works fine now.


-----Original Message-----
From: Robert Cowham [mailto:robert at vaccaperna.co.uk] 
Sent: Saturday, February 10, 2007 4:12 AM
To: 'Ruy Diaz'; perforce-user at perforce.com
Subject: RE: [p4] Trigger User issue

Hi Ruy

You have correctly identified the problem - because your Perforce server is
running as a service it defaults to System. This is also the user that will
default to when executing triggers.

http://www.robertcowham.com/blog/scm/p4_triggers.html
See also the paper I presented at:
http://www.perforce.com/perforce/conferences/eu/2006/index.html

You may wish to consider:
- passing in the user for the script to use as a parameter
- logging that user in to the server manually and put them into a group with
a large timeout (e.g. 99999999 (8x9s) - 3 years)
- improving your script error handling so that you spot this sort of thing
more easily

HTH
Robert




More information about the perforce-user mailing list