Erwan Lacoste wrote:
>> On Mon, 2004-08-09 at 07:29, Erwan Lacoste wrote:
>>> However, is there any way I can change the user that runs the script?
>>> eg, let's say I want a hook script to be run every time someone commits.
>>> I
>>> have a client using httpd to access repository, and the other one works
>>> on
>>> the server, so he access the repos with file://. Is there any way that
>>> when the second user commits, the post-commit script is run by an httpd
>>> user?
>>
>> Hm, nope... the hook script will always be executed by the process doing
>> the commit. Perhaps the hook script can call a script which does a
>> 'sudo -u other_user' before doing the real work?
>>
>> Or you can write a binary program, make it owned by a single user, set
>> the +s bit, and have the hook script run that binary.
>>
>>
> I tried the 'sudo ...' method, and the problem is that the second
> developper is working on the server over ssh (strange habits), and
> whenever I try a 'su' command with ssh, it returns a nice and sexy
> "Segmentation fault"...
> I'll try writting a program as you explained if I find the time. I'll keep
> you informed of the result.
It appears your "sudo" is broken. Perhaps upgrading it will help?
Or, the really really simple solution: Have everyone use http:// even when
they are on the server.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 9 18:26:06 2004