You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Jeroen N. Witmond" <jn...@xs4all.nl> on 2006/05/25 07:49:36 UTC
'/media/Repositories/db/transactions/0-1.txn': Permission denied
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
Re: '/media/Repositories/db/transactions/0-1.txn': Permission denied
Posted by Jeb <je...@penske.com>.
Good eye Ryan. I saw the ://localhost and my mind read http://localhost.
Looks like svnserve is running under and account named svnserve.
User svnserve should be in a group what is named in the chown command.
Jeb
Ryan Schmidt wrote:
>
> 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
Re: '/media/Repositories/db/transactions/0-1.txn': Permission denied
Posted by Ryan Schmidt <su...@ryandesign.com>.
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
Re: '/media/Repositories/db/transactions/0-1.txn': Permission denied
Posted by Jeb <je...@penske.com>.
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