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

post-commit with sudo

From: Michel Jeandon <contact_at_jeandon.com>
Date: 2005-05-14 20:39:48 CEST

Hello.
I have configured as indicated on
http://arstechnica.com/columns/linux/linux-20050406.ars

with method sudo

my post-commit:

#!/bin/sh
sudo /usr/local/bin/svn update /home/http/www-test >> /var/log/svn.log

post-commit is executable

/etc/sudoers:
momeme ALL=NOPASSWD: /usr/local/bin/svn update /home/http/www-test >>
/var/log/svn.log

my /var/log/messages:
May 14 18:53:42 serv-machine sudo: root : TTY=unknown ; PWD=/ ;
USER=momeme ; COMMAND=/usr/local/bin/svn update /home/http/www-test

But the update is not executed.
If I start the same file with crontab, I have the same result... It not
work.

If I start the post-commit in a shell with user: moimeme,
it's ok
in my /var/log/messages, I have:
May 14 12:04:44 serv-machine sudo: moimeme : TTY=pts/3 ;
PWD=/home/moimeme ; USER=root ; COMMAND=/usr/local/bin/svn update
/home/http/www-test

Please help me
Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 14 20:45:43 2005

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