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

Re: Subversion Hooks Issue

From: Doug Goldstein <doug_at_monetra.com>
Date: 2007-02-09 22:25:01 CET

Erik Hemdal wrote:
>> Erik Hemdal wrote:
>>>> Ryan Schmidt wrote:
>>>>> On Feb 9, 2007, at 12:25, Doug Goldstein wrote:
>>>>>
>> . . .
>>> Any possibility that another user, like 'svn' or 'apache' or
>>> 'whatever' is actually running the script and not the user you are
>>> testing with? Maybe setting world-execute would help?
>>>
>>> Erik
>>>
>>>
>>>
>> # ls -l /var/data/svn/project/hooks/pre-commit
>> -rwxr-xr-x 1 root svnusers 796 Feb 9 13:10
>> /var/data/svn/project/hooks/pre-commit
>>
>
> OK, the only other thing I can suggest is to verify you have execute
> permission on all the higher-level directories to the hook script. If you
> don't have it, you can't pass through to find the script so you can run it.
>
> Erik
>
>
>

doug@doug ~ $ ssh doug@gravel
Last login: Fri Feb 9 16:22:19 2007 from doug.
doug@gravel ~ $ /var/data/svn/project/hooks/pre-commit
doug@gravel ~ $ echo $?
0
doug@gravel ~ $ groups
users svnusers

Since I am using svn+ssh://, my commits should be running as my user,
"doug". So svnserve will be running as that user.

You can see the script is owned by the svnusers group, which I also am a
part of. If the directories below did not have the execute bit, I would
not be able to execute this file.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 22:25:26 2007

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.