[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: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-25 13:39:12 CEST

On May 25, 2006, at 12:27, Jeb wrote:

> Jeroen N. Witmond wrote:
>
>> 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
>
> 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

Jeb, he's not using Apache; he's using svnserve. Still, Jeroen, the
advice holds: The user under which svnserve is running must have full
read/write permission to the repository, and that user probably isn't
root. (At least, it would be advisable not to run svnserve {or any
other similar daemon} as root.)

Do consider upgrading to the current version of Subversion, which is
1.3.1.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 25 13:40:22 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.