Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN authorization failed

I installed SVN in Windows XP. I got the error when I create a project. How do I fix it?

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password pass svn: Authorization failed

Here is the configuration file in SVN:

svnserve.conf

anon-access = none
auth-access = write
password-db = passwd

passwd

[users]
user1=pass1
user2=pass2

like image 431
cc96ai Avatar asked Feb 01 '10 16:02

cc96ai


3 Answers

If the

authz-db = authz

line is uncommented, you have to modify the authz file like this:

[/]
me = rw
otheruser = r

I missed the [/] before and I've got the "svn: Authorization failed" on client side. But it works well now.

like image 79
Ray Avatar answered Oct 12 '22 04:10

Ray


It looks like you've got your password wrong:

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password pass svn

[users]
user1=pass1
user2=pass2

You've entered "pass" but your password is specified as "pass1"

like image 23
Simon P Stevens Avatar answered Oct 12 '22 03:10

Simon P Stevens


Are you sure you have set up your SVN repository correctly?

Check the following

Open the file

<path to repository>myproject\conf\svnserve.conf

Check the following line aren't commented out (if the line starts with a # remove it)

anon-access = read  
auth-access = write  
password-db = passwd
like image 35
TheLukeMcCarthy Avatar answered Oct 12 '22 02:10

TheLukeMcCarthy