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

RE: Specify the user when a command is run?

From: Wolf Josef <josef.wolf_at_siemens.com>
Date: 2002-10-22 16:57:04 CEST

> Josef Wolf <jw@raven.inka.de> wrote:
> > I am writing a cgi-based administration tool for the svn server. Now,
> > when this script runs svn commands (e.g. the initial import of a
> > template directory when a new repos is created), those commands are
> > run as the apache user (e.g nobody.nogroup). Is there any way to
> > specify the user name that apache authenticated from the cgi script?
>
> The --username option should work, passing to it the

Thanks. But now there is an other problem:

My httpd.conf contains:

 <Location /svn/repos>
   DAV svn
   SVNParentPath /local/svn/repos
   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /path/to/passwd
   AllowOverride AuthConfig
   Require valid-user
 </Location>

Now I create a repository with "svnadmin create /local/svn/repos/project"
and put the following into /local/svn/repos/project/.htaccess :

 AuthType Basic
 AuthName "Subversion Repository"
 AuthUserFile /path/to/passwd
 AuthGroupFile /path/to/groups/project
 Require Group project

Into /path/to/groups/project I put "project: foo bar"

But somehow apache ignores the /path/to/groups/z and acts as if
"Require valid-user" were specified.

Where is the problem? Could it be that dav_svn ignores the .htaccess
files in the repository directory?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 22 16:58:00 2002

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

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