LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   "svn: Authorization failed"; what am I doing wrong? (https://www.linuxquestions.org/questions/linux-software-2/svn-authorization-failed-%3B-what-am-i-doing-wrong-701579/)

DrTwox 02-02-2009 02:55 AM

"svn: Authorization failed"; what am I doing wrong?
 
Hi all,

I'm trying to set up a subversion server for storing my personal projects. However, I can't actually get it working!

I've installed subversion on my server (Debian etch, subversion version 1.4.2 (r22196)), created the repository and edited the relevant files. The firewall (Shorewall) is set to allow svn traffic to and from the local network.

On the server:
drtwox@server:~$ mkdir svn
drtwox@server:~$ svnadmin create svn
drtwox@server:~$ vim svn/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = projects

drtwox@server:~$ vim svn/conf/passwd
[users]
drtwox = password

drtwox@server:~$ vim svn/conf/authz
[projects:/home/drtwox/svn]
drtwox = rw

drtwox@server:~$ svnserve -r /home/drtwox/svn/ -d

On the client:
drtwox@thinkpad:~$ mkdir project
drtwox@thinkpad:~$ rm -fr /home/drtwox/.subversion/auth/
drtwox@thinkpad:~$ svn import project svn://server/home/drtwox/svn -m "Initial import"
Authentication realm: <svn://server:3690> projects
Password for 'drtwox': password
svn: Authorization failed

What am I doing wrong?

bathory 02-03-2009 03:56 PM

The procedure you've followed looks right apart from
Quote:

On the server:
drtwox@server:~$ mkdir svn
drtwox@server:~$ svnadmin create svn
You should use directly the
Code:

svn create /home/drtwox/svn
so it creates and initializes the repository in the specified directory.
Note also that the authz file is not mandatory.

Regards

DrTwox 02-04-2009 03:23 PM

Thanks mate, finally got it working!


All times are GMT -5. The time now is 04:40 AM.