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

RE: Hooks don't work via Http-Access

From: Wiebesiek, Torsten <torsten.wiebesiek_at_grecon.de>
Date: Fri, 12 Jun 2009 14:03:00 +0200

> Sent: Friday, June 12, 2009 2:46 AM
> To: Wiebesiek, Torsten
>
> When you use file:///, the hooks execute as the user who's running the
> commit operation.
>
> Do you have any kind of secure environment set up that Apache
> is running under?

The apache is running as user wwwrun which is in the group www. The
repository including the hooks belong the same user, and the hooks
have 755 permissions.

But I've found the problem! :-)

The hook can't write to files that belong to files belonging root.

> echo `/bin/date +"%Y-%m-%d %H:%M:%S"` : repository=$REPOS
revision=$REV >> /tmp/svn.log

/tmp/svn.log belonged to root. :-(

Thanks for your help,

  Torsten

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361573

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-12 20:37:17 CEST

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.