LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-04-2008, 09:08 AM   #1
jaaffersadiq
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
Wink Help! Error 401 Authorization Required


Hi Everyone:
I'm a newbie here and also with Subversion, i'm currently trying to setup an apache based server, but everytime i try to access my repository i get this message (I'm Using Apache 2.0.5 and Subversion 1.2.0 by the way):

401 Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Confused

this is my httpd.conf setup:

<Location /svn>
DAV svn
SVNParentPath C:/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile 'C:\Program Files\Apache Group\Apache2\bin\passwd'
#AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>

i did this in the CMD:
bin\htpasswd -c passwd svnuser--I used this commad to create the passwd file (svnuser is my user)

and then i added the password for svnuser like this:

bin\htpasswd passwd svnuser

and then:
Automatically using MD5 format
New password: 123456
Re-Type New Password: 123456
Adding Password for user svnuser


but when i try to access http://localhost/svn
i get a prompt asking for my user/password, then i type svnuser/123456 ( i have to do this 3 times because it keeps asking me for user/password)and get the 401 Authorization Required


I was hoping you guys could help me with any suggestions or letting me know what am i doing wrong.

Thanks a lot![/b]
 
Old 11-04-2008, 05:49 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
i did this in the CMD:
bin\htpasswd -c passwd svnuser--I used this commad to create the passwd file (svnuser is my user)

and then i added the password for svnuser like this:

bin\htpasswd passwd svnuser

and then:
Automatically using MD5 format
New password: 123456
Re-Type New Password: 123456
Adding Password for user svnuser
There is no need to run htpasswd a second time, since using the -c option it creates the password file and adds the password for the specific user.
IIRC when using apache in windows you should use the forward slashes "/" for paths instead of backslashes "\" and it's good practice not to use directory names with spaces. So change
Quote:
AuthUserFile 'C:\Program Files\Apache Group\Apache2\bin\passwd'
to either
Code:
AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/passwd"'
or better yet move the file to a suitable location (like c:/passwd) and see if it works.

Regards
 
  


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
"HELP!!" yum error [Errno 14] HTTP Error 401: Unauthorized chennavarri Fedora 2 05-14-2008 10:29 AM
Root Authorization Required to Reboot and Shutdown rioch Linux - Desktop 2 09-14-2006 09:43 AM
.htaccess -- ErrorDocument can't work with 401 error b:z Linux - Networking 1 05-26-2005 09:28 AM
[access] continuous authorization required wuck LQ Suggestions & Feedback 2 09-26-2003 04:38 AM
401 Authorization Required terek Linux - Newbie 5 07-12-2003 11:01 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration