On Jan 18, 2011, at 14:43 , Dave Pawson wrote:

> I'm resurrecting a subversion setup.
> subversion 1.6.5 on apache 2.
> 
> Apache setup
> <Location /repos>
> Dav svn
> SVNParentPath /srv
> Authtype Basic
> AuthName "..."
> AuthuserFile /etc/svnauthfile
> Require valid-user
> </Location>
> 
> user apache is set as owner of /srv and all subdirectories
> I used, as root,
> svnadmin create /srv/files
> svnadmin create /srv/pac
> 
> Then updated ownership again.
> 
> I set two users for access
> #htpasswd -cm /etc/svnauthfile dpawson
> #htpasswd -m /etc/svnauthfile sue
> 
> 
> 
> On the server, as root I can import files OK.
> as a normal user I can't, and I'm getting
> svn: Can't open file /srv/files/db/txn-current-lock': Permission denied
> 
> From a client
> # svn list --username dpawson http://192.168.1.74/repos/files
> svn: access to 'http://192.168.1.74/repos/files' forbidden
> 
> I guess it's a common 403 error code, but I can't figure out
> where the permissions are wrong.

Did you import the initial repository content as local root, using
a "file://" URL?  In that case, some files inside the "db" directory
would now be owned by root.

I'd double-check the permissions on the following dirs & files.

  /etc/svnauthfile (just in case)

  /srv
  /srv/files
  /srv/files/db
  /srv/files/db/txn-current-lock

Also, are ACLs in effect?  SELinux, for example, can block Apache.

HTH,
Steve

--
Stephen Butler | Senior Consultant
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
fon: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194


Reply via email to