LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2009, 02:55 AM   #1
DrTwox
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
"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?

Last edited by DrTwox; 02-02-2009 at 02:58 PM.
 
Old 02-03-2009, 03:56 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
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
 
Old 02-04-2009, 03:23 PM   #3
DrTwox
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks mate, finally got it working!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 12:05 AM
KDE and NFS - " Authorization failed "... bonecrusher Linux - Software 2 01-18-2006 08:11 AM
SWAT "Authorization failed" Viva Linux - Networking 5 09-21-2004 12:47 PM
"Failed to initialize the NVIDIA graphics device" WTH went wrong with driver install Ohmn Mandriva 3 06-29-2004 10:29 PM
Config problem: "Authorization failed: server rejected access" -- help please! womble_timsk Linux - Networking 0 05-22-2003 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration