You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by will wade <wi...@gmail.com> on 2006/09/05 16:35:38 UTC

access denied - but shouldnt be?

Hi there
Apologies if this is really obvious. I will try and explain my problem
succinctly
Imagine two projects (actually more than two)

/usr/local/svn/project_a
/usr/local/svn/project_b

Both have a svnserve.conf file exactly the same:

password-db = /usr/local/svn_conf/passwd_svn.txt
authz-db = /usr/local/svn_conf/user_access_svn.txt
realm = projects

passwd_svn.txt:

[users]
will = test
bob = test
george = test

user_access_svn.txt:

[/]
* = r

[project_a:/usr/local/project_a]
@developers = rw
@everyone = r

[project_b:/usr/local/project_b]
@developers = rw
@everyone = r

[groups]
developers = will,bob
everyone = @developers, bob

Now when I try and import I cant. I get a access denied and thats it
even if I try import --username will it fails.

If however I turn * = r into * = rw I can import, check in etc with no problems.
Any ideas what the heck Im doing wrong? Im wasting days on trying to fix this?!

Thanks in advance

Will

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

Re: access denied - but shouldnt be?

Posted by will wade <wi...@gmail.com>.
It is indeed the latest build 1.3.2 compiled from source with the apache2
setup included. The only thing missing from the build was berkeleydb.
The OS being used on the server is SuSE 9 and the clients are a variety: mac
10.3.7 and linux
Also just so you know svn is running as a user svnowner (group svnusers) and
all files are owned by svnowner

any ideas??

w


On 05/09/06, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Sep 5, 2006, at 18:35, will wade wrote:
>
> > Imagine two projects (actually more than two)
> >
> > /usr/local/svn/project_a
> > /usr/local/svn/project_b
> >
> > Both have a svnserve.conf file exactly the same:
> >
> > password-db = /usr/local/svn_conf/passwd_svn.txt
> > authz-db = /usr/local/svn_conf/user_access_svn.txt
> > realm = projects
> >
> > passwd_svn.txt:
> >
> > [users]
> > will = test
> > bob = test
> > george = test
> >
> > user_access_svn.txt:
> >
> > [/]
> > * = r
> >
> > [project_a:/usr/local/project_a]
> > @developers = rw
> > @everyone = r
> >
> > [project_b:/usr/local/project_b]
> > @developers = rw
> > @everyone = r
> >
> > [groups]
> > developers = will,bob
> > everyone = @developers, bob
> >
> > Now when I try and import I cant. I get a access denied and thats it
> > even if I try import --username will it fails.
> >
> > If however I turn * = r into * = rw I can import, check in etc with
> > no problems.
> > Any ideas what the heck Im doing wrong? Im wasting days on trying
> > to fix this?!
>
> Are you using at least Subversion 1.3.2? If not, upgrade.
>
> What OS is being used for client and server?
>
>
>
>

Re: access denied - but shouldnt be?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 5, 2006, at 18:35, will wade wrote:

> Imagine two projects (actually more than two)
>
> /usr/local/svn/project_a
> /usr/local/svn/project_b
>
> Both have a svnserve.conf file exactly the same:
>
> password-db = /usr/local/svn_conf/passwd_svn.txt
> authz-db = /usr/local/svn_conf/user_access_svn.txt
> realm = projects
>
> passwd_svn.txt:
>
> [users]
> will = test
> bob = test
> george = test
>
> user_access_svn.txt:
>
> [/]
> * = r
>
> [project_a:/usr/local/project_a]
> @developers = rw
> @everyone = r
>
> [project_b:/usr/local/project_b]
> @developers = rw
> @everyone = r
>
> [groups]
> developers = will,bob
> everyone = @developers, bob
>
> Now when I try and import I cant. I get a access denied and thats it
> even if I try import --username will it fails.
>
> If however I turn * = r into * = rw I can import, check in etc with  
> no problems.
> Any ideas what the heck Im doing wrong? Im wasting days on trying  
> to fix this?!

Are you using at least Subversion 1.3.2? If not, upgrade.

What OS is being used for client and server?



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

Re: access denied - but shouldnt be?

Posted by Andy Levy <an...@gmail.com>.
On 9/5/06, will wade <wi...@gmail.com> wrote:
> Hi there
> Apologies if this is really obvious. I will try and explain my problem
> succinctly
> Imagine two projects (actually more than two)
>
> /usr/local/svn/project_a
> /usr/local/svn/project_b
>
> Both have a svnserve.conf file exactly the same:
>
> password-db = /usr/local/svn_conf/passwd_svn.txt
> authz-db = /usr/local/svn_conf/user_access_svn.txt
> realm = projects
>
> passwd_svn.txt:
>
> [users]
> will = test
> bob = test
> george = test
>
> user_access_svn.txt:
>
> [/]
> * = r
>
> [project_a:/usr/local/project_a]
> @developers = rw
> @everyone = r

The path you specify in the access rule isn't the filesystem path to
the repository.  It should be a path *within* the repository.  You've
granted the world read access to the repository, but you haven't
granted anyone write access.

If /usr/local/project_a isn't the repository itself for project_a, but
instead is a path in the repository pointing to a directory that
represents project_a, then you need to drop project_a: in front of the
path.

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