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

Re: '/media/Repositories/db/transactions/0-1.txn': Permission denied

From: Jeb <jeb.beasley_at_penske.com>
Date: 2006-05-25 12:27:46 CEST

When accessing the repository via http, apache's user or group must have
write permission to the repository tree

Get the User and Group under which apache runs from the httpd.conf
file. We use svn and svn
run the following commands as root

cd /media
chown svn:svn Repositiories -R
chmod g+w Repositories -R

That should fix it up

Jeb

Jeroen N. Witmond wrote:

>Greetings!
>
>I'm a newbie with svn, and I'm having problems with my initial import in
>my freshly created repository. Specifically, I get error message:
>
> svn: Can't create directory
>'/media/Repositories/db/transactions/0-1.txn': Permission denied
>
>I'm running Ubuntu version 5.10 and svn version 1.2.0 (r14790) compiled
>Jun 29 2005, 12:46:42.
>
>I created the repository with command:
> sudo -u svnserve svnadmin create --fs-type fsfs /media/Repositories
>Then I changed file /media/Repositories/conf/svnserve.conf to allow
>anon-access = write, and started the server with:
> sudo -u svnserve svnserve --root=/media/Repositories -d
>
>As an ordinary user (not root, not svnserve) I try to create project
>'root' in the repository with command:
> svn import -m 'Revision 1!?' . svn://localhost/root
>
>This results in the error message mentioned above. When I run svnserve
>under `strace -f`, I notice this line in the output (after the stat for
>the start-commit hook):
>
> [pid 8816] mkdir("/media/Repositories/db/transactions/0-1.txn", 0777) =
>-1 EACCES (Permission denied)
>
>Strange thing is that I can create the directory by hand with command:
> sudo -u svnserve mkdir /media/Repositories/db/transactions/0-1.txn
>
>Can anybody help me fix this?
>
>Thanks in advance.
>
>Jeroen.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 25 12:29:56 2006

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.