[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Hook Execution with SVNServe under Win2k3

From: Rory Clark <rory_at_clarkzoo.org>
Date: 2006-02-15 03:20:39 CET

Hey there again!

Let me answer your questions:

>> The svnaccount has full permissions on the SVNRoot and SVNWorking
>> directories.

> What about the program(s) being executed?

Yes. Since the batch file resides in f:\svnroot\hooks, it has full access
permissions over it. Since the redirected output isn't being created, which
happens regardless of whither or not the emailing script succeeds or fails.
However, I'm not seeing the output being created under the low-privilege
account.

>> This really boils my question down to this: What operating system
>> privilege does SVNServe require to execute a hook?

> From: http://svnbook.red-bean.com/en/1.1/ch05s02.html#svn-ch-5-sect-2.1

> "Subversion will attempt to execute hooks as the same user who owns
> the process which is accessing the Subversion repository"

Right, this is a given. :) I've already verified that the low privilege
account can execute both the cmd (batch) file and the mailer script. I did
this by logging on as the account and manually firing off the batch file.
Also, when the SVNWorking instance on the Repository Machine was using the
file:// protocol, it worked just fine then as well.

> Also, if you're running svnserve using svnservice, have you
> considered running it under a local service account?
> http://svn.haxx.se/users/archive-2005-10/0608.shtml

Two things on this front:

1) I could never get svnservice to run or install itself as a service. The
OS kept telling me it wasn't a valid Win32 application. SVNServe is
presently being run a scheduled task by the Task Manager.

2) I'm dubious that it would work since the only privilege level I've found
that works with SVNServe hook execution appears to be admin access because
anything less and the post-commit hook never appears to run.

Thanks!

Rory

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 15 03:22:36 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.