You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kai Behncke <Ka...@gmx.de> on 2008/10/19 11:57:25 UTC

svn commit: Permission denied (??)

Dear users,

in the moment I`m totally stuck.

My svn is running fine, I can check out the repository and if I works as root, I can do commits.

I changed the system a bit. I made the following entrie in the httpd.conf:


<Location "/my_repos">
DAV svn
SVNPath /var/svn/my_repos
AuthType Basic
AuthName "Repository"
AuthUserFile /etc/svn-auth-file
Require valid-user
</Location>

If I want to have a look in my browser I
type http://my-domain/my-repos

Then I type user "Kai" (the user from my /etc/svn-auth-file) and my password and everything is fine.

The same is when I checkout the repositoy via


"svn co http://my-domain/my-repos"

But: If I wan`t to commit my diffs I´m not allowed??
I get:
"svn: Can't create directory '/var/svn/my_repos/db/transactions/11-1.txn': Permission denied
"

How can this be? Must the user "Kai" be the owner of /var/svn/my_repos ???? (in the moment root is the owner)
If so it would´nt be possible to work with different users?
What can I do?

Thank you very much in advance, Kai
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn commit: Permission denied (??)

Posted by David Weintraub <qa...@gmail.com>.
The owner of the repository directory /var/svn/my_repos must be the
user who is running Apache httpd (something like "apache" or "wwwrun"
depending upon installation), It is this user that will be
manipulating the repository.

All files in that repository should be owned by that user, and have a
mode of 6xx. All folders in that repository should be owned by that
user and have a mode of 7xx.

You didn't mention what your change was, but the error message looks
like it is a problem creating the transaction in the repository
directory because the folder that needs to contain the transaction
isn't writable by the Apache HTTPD process.

If the problem is due to user authentication, you normally would see
the "password: " prompt or the "username: " prompt popup.

--
David Weintraub
qazwart@gmail.com



On Sun, Oct 19, 2008 at 7:57 AM, Kai Behncke <Ka...@gmx.de> wrote:
> Dear users,
>
> in the moment I`m totally stuck.
>
> My svn is running fine, I can check out the repository and if I works as root, I can do commits.
>
> I changed the system a bit. I made the following entrie in the httpd.conf:
>
>
> <Location "/my_repos">
> DAV svn
> SVNPath /var/svn/my_repos
> AuthType Basic
> AuthName "Repository"
> AuthUserFile /etc/svn-auth-file
> Require valid-user
> </Location>
>
> If I want to have a look in my browser I
> type http://my-domain/my-repos
>
> Then I type user "Kai" (the user from my /etc/svn-auth-file) and my password and everything is fine.
>
> The same is when I checkout the repositoy via
>
>
> "svn co http://my-domain/my-repos"
>
> But: If I wan`t to commit my diffs I´m not allowed??
> I get:
> "svn: Can't create directory '/var/svn/my_repos/db/transactions/11-1.txn': Permission denied
> "
>
> How can this be? Must the user "Kai" be the owner of /var/svn/my_repos ???? (in the moment root is the owner)
> If so it would´nt be possible to work with different users?
> What can I do?
>
> Thank you very much in advance, Kai
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> ---------------------------------------------------------------------
> 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