You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeffrey Lee <jl...@gmail.com> on 2010/05/13 17:04:38 UTC

SVN Authentication fail

My webhosting service installed SVN on my account (for my domain).  They won't enable the Apache module, so have to fire off svnserve -d, which is fine for my purposes.  At any rate, I've created a repository, and believe I've configured all of the passwd authz and svnserve.conf files appropriately (according to the instructions), but I still get an authorization fail when I connect.  I did try to define an additional user in the passwd file that is the account (username and password) I use to ssh into the server, but that didn't help.

Googling hasn't yielded any fruit for me yet, so I'd appreciate any ideas on where to go next.
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> On May 13, 2010, at 12:54 PM, Bob Archer wrote:
> 
> >>>>>>>> No, I'm using ssh to a. create the repository, then b. launch
> >>>> svnserve
> >>>>>>>>
> >>>>>>>> I'm trying to connect using either svnX or TortoiseSVN (I like
> >>>> working
> >>>>>> on
> >>>>>>>> multiple OS at the same time :) )
> >>>>>>>>
> >>>>>>>> So, after I SSH'd in:
> >>>>>>>>
> >>>>>>>> I did svnadmin create svn  - created the directory <server>/svn
> >> with
> >>>>>> all
> >>>>>>>> of the appropriate directories, from the looks of it.  The
> >>>> permissions
> >>>>>> on
> >>>>>>>> the svn directory are rwxr-xr-x, which may be a problem?
> svnadmin
> >>>> and
> >>>>>>>> svnserve have both been launched from the same account (the owner
> >> of
> >>>>>> the
> >>>>>>>> svn directory).
> >>>>>>>>
> >>>>>>>> svnserve.conf was modified to uncomment the following lines:
> >>>>>>>>
> >>>>>>>> anon-access = read (actually I currently have this set to write
> to
> >>>> see
> >>>>>> if
> >>>>>>>> it helped, but it didn't)
> >>>>>>>> auth-access = write
> >>>>>>>> password-db = passwd
> >>>>>>>> authz-db = authz
> >>>>>>>>
> >>>>>>>> nothing else was modified/uncommented and the like.
> >>>>>>>>
> >>>>>>>> passwd was edited to add a line of the sort:
> >>>>>>>>
> >>>>>>>> <username> = <password>
> >>>>>>>>
> >>>>>>>> authz was modified to create a group including <username> and the
> >>>>>>>> following line was added, as well:
> >>>>>>>>
> >>>>>>>> [repository: /svn]
> >>>>>>>>
> >>>>>>>> @<groupdefined earlier> = rw
> >>>>>>>>
> >>>>>>>> Then I launch svnserve -d
> >>>>>>>>
> >>>>>>>> Attempt to connect with svnX and get an Authentication Failed.
> >>>>>>>
> >>>>>>> how? Are you using svn+ssh://bla.servername.com/reponame
> >>>>>>>
> >>>>>>> I think if you do that svnserve is spawned for you.
> >>>>>>>
> >>>>>>> ???
> >>>>>>>
> >>>>>>> Have you read this part of the svn book http://svnbook.red-
> >>>>>> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth
> >> ??
> >>>>>>>
> >>>>>>> BOb
> >>>>>>>
> >>>>>
> >>>>>> I'm just using svn://  I was hoping to not have to ssh in as I will
> >>>> have
> >>>>>> occasion to have to connect from behind a firewall that does not
> >> permit
> >>>>>> ssh.
> >>>>>
> >>>>> I see. So, you are running the daemon then closing your ssh
> >> connection.
> >>>> Are you sure that keeps the deamon running. I'm not much of a Linux
> >> guy.
> >>>>>
> >>>>> That said... are you sure your hoster has the port that svn needs
> >> open.
> >>>> Is this a shared server or a dedicated server or what? I'm not sure
> why
> >>>> you would get an auth failure. It is prompting for the username and
> >>>> password? Or are you just passing them.
> >>>>>
> >>>>> If you use svn.exe while you are in the ssh session does that work?
> >>>>>
> >>>>> BOb
> >>>>>
> >>>> Very much a shared server.
> >>>>
> >>>> I tried the following (from within ssh):
> >>>>
> >>>> /usr/local/bin/svn info svn://<server>/svn
> >>>>
> >>>> Result:
> >>>>
> >>>> Authorization failed
> >>>
> >>> Hmm... are you sure you have the config set up correctly and pointing
> to
> >> an auth file that is correctly set up? Do you have anon access enabled?
> >> Have you tried passing the svn username / password on your command line
> >> like:
> >>>
> >>> /usr/local/bin/svn info svn://<server>/svn --username User --password
> >> Password
> >>>
> >>> I'm wondering since you are on a shared server if someone else is
> >> running svnserve on the default port. ALthough I expect that would give
> >> you an error.
> >>>
> >>> BOb
> >>>
> >> Hmmm...  if I do the command line specifying --username <ssh user> --
> >> password <password> I'll get a response like "Authentication realm:
> >> <svn://<server>:3690> some sort of key is presented and then I'm asked
> for
> >> a username.  If I give it the username specified in the passwd db, then
> >> the incorrect password I'm told the password is incorrect.  If I give
> it
> >> the correct password, I get an Authentication failed.
> >>
> >> I'm beginning to wonder if the directory permissions are at issue?
> >
> > Well, the SSH password has nothing to do with it... since you aren't
> using SSH or tunneling through SSH. you should be providing a
> username/password pair that is in your passwd file that your config points
> to.
> >
> > BOb
> >
> Right, which I am doing.  However, if I give an incorrect password, I get
> told that.  If I give the correct password, I get an Authorization fail.
> Clearly, then, it knows I'm the right user with the right password, but
> something else is preventing access.

Yes, I would agree with that. Sounds like the user you daemon is running under doesn't have the correct permissions to the repository folder/files. 

> I'm just using svn://  I was hoping to not have to ssh in as I will have
> occasion to have to connect from behind a firewall that does not permit ssh.

Is there no way you can ask for them to open it up. I don't understand why outgoing SSH connections could be a problem.

BOb


Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
Right, which I am doing.  However, if I give an incorrect password, I get told that.  If I give the correct password, I get an Authorization fail.  Clearly, then, it knows I'm the right user with the right password, but something else is preventing access.
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 12:54 PM, Bob Archer wrote:

>>>>>>>> No, I'm using ssh to a. create the repository, then b. launch
>>>> svnserve
>>>>>>>> 
>>>>>>>> I'm trying to connect using either svnX or TortoiseSVN (I like
>>>> working
>>>>>> on
>>>>>>>> multiple OS at the same time :) )
>>>>>>>> 
>>>>>>>> So, after I SSH'd in:
>>>>>>>> 
>>>>>>>> I did svnadmin create svn  - created the directory <server>/svn
>> with
>>>>>> all
>>>>>>>> of the appropriate directories, from the looks of it.  The
>>>> permissions
>>>>>> on
>>>>>>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin
>>>> and
>>>>>>>> svnserve have both been launched from the same account (the owner
>> of
>>>>>> the
>>>>>>>> svn directory).
>>>>>>>> 
>>>>>>>> svnserve.conf was modified to uncomment the following lines:
>>>>>>>> 
>>>>>>>> anon-access = read (actually I currently have this set to write to
>>>> see
>>>>>> if
>>>>>>>> it helped, but it didn't)
>>>>>>>> auth-access = write
>>>>>>>> password-db = passwd
>>>>>>>> authz-db = authz
>>>>>>>> 
>>>>>>>> nothing else was modified/uncommented and the like.
>>>>>>>> 
>>>>>>>> passwd was edited to add a line of the sort:
>>>>>>>> 
>>>>>>>> <username> = <password>
>>>>>>>> 
>>>>>>>> authz was modified to create a group including <username> and the
>>>>>>>> following line was added, as well:
>>>>>>>> 
>>>>>>>> [repository: /svn]
>>>>>>>> 
>>>>>>>> @<groupdefined earlier> = rw
>>>>>>>> 
>>>>>>>> Then I launch svnserve -d
>>>>>>>> 
>>>>>>>> Attempt to connect with svnX and get an Authentication Failed.
>>>>>>> 
>>>>>>> how? Are you using svn+ssh://bla.servername.com/reponame
>>>>>>> 
>>>>>>> I think if you do that svnserve is spawned for you.
>>>>>>> 
>>>>>>> ???
>>>>>>> 
>>>>>>> Have you read this part of the svn book http://svnbook.red-
>>>>>> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth
>> ??
>>>>>>> 
>>>>>>> BOb
>>>>>>> 
>>>>> 
>>>>>> I'm just using svn://  I was hoping to not have to ssh in as I will
>>>> have
>>>>>> occasion to have to connect from behind a firewall that does not
>> permit
>>>>>> ssh.
>>>>> 
>>>>> I see. So, you are running the daemon then closing your ssh
>> connection.
>>>> Are you sure that keeps the deamon running. I'm not much of a Linux
>> guy.
>>>>> 
>>>>> That said... are you sure your hoster has the port that svn needs
>> open.
>>>> Is this a shared server or a dedicated server or what? I'm not sure why
>>>> you would get an auth failure. It is prompting for the username and
>>>> password? Or are you just passing them.
>>>>> 
>>>>> If you use svn.exe while you are in the ssh session does that work?
>>>>> 
>>>>> BOb
>>>>> 
>>>> Very much a shared server.
>>>> 
>>>> I tried the following (from within ssh):
>>>> 
>>>> /usr/local/bin/svn info svn://<server>/svn
>>>> 
>>>> Result:
>>>> 
>>>> Authorization failed
>>> 
>>> Hmm... are you sure you have the config set up correctly and pointing to
>> an auth file that is correctly set up? Do you have anon access enabled?
>> Have you tried passing the svn username / password on your command line
>> like:
>>> 
>>> /usr/local/bin/svn info svn://<server>/svn --username User --password
>> Password
>>> 
>>> I'm wondering since you are on a shared server if someone else is
>> running svnserve on the default port. ALthough I expect that would give
>> you an error.
>>> 
>>> BOb
>>> 
>> Hmmm...  if I do the command line specifying --username <ssh user> --
>> password <password> I'll get a response like "Authentication realm:
>> <svn://<server>:3690> some sort of key is presented and then I'm asked for
>> a username.  If I give it the username specified in the passwd db, then
>> the incorrect password I'm told the password is incorrect.  If I give it
>> the correct password, I get an Authentication failed.
>> 
>> I'm beginning to wonder if the directory permissions are at issue?
> 
> Well, the SSH password has nothing to do with it... since you aren't using SSH or tunneling through SSH. you should be providing a username/password pair that is in your passwd file that your config points to. 
> 
> BOb
> 

RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> >>>>>> No, I'm using ssh to a. create the repository, then b. launch
> >> svnserve
> >>>>>>
> >>>>>> I'm trying to connect using either svnX or TortoiseSVN (I like
> >> working
> >>>> on
> >>>>>> multiple OS at the same time :) )
> >>>>>>
> >>>>>> So, after I SSH'd in:
> >>>>>>
> >>>>>> I did svnadmin create svn  - created the directory <server>/svn
> with
> >>>> all
> >>>>>> of the appropriate directories, from the looks of it.  The
> >> permissions
> >>>> on
> >>>>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin
> >> and
> >>>>>> svnserve have both been launched from the same account (the owner
> of
> >>>> the
> >>>>>> svn directory).
> >>>>>>
> >>>>>> svnserve.conf was modified to uncomment the following lines:
> >>>>>>
> >>>>>> anon-access = read (actually I currently have this set to write to
> >> see
> >>>> if
> >>>>>> it helped, but it didn't)
> >>>>>> auth-access = write
> >>>>>> password-db = passwd
> >>>>>> authz-db = authz
> >>>>>>
> >>>>>> nothing else was modified/uncommented and the like.
> >>>>>>
> >>>>>> passwd was edited to add a line of the sort:
> >>>>>>
> >>>>>> <username> = <password>
> >>>>>>
> >>>>>> authz was modified to create a group including <username> and the
> >>>>>> following line was added, as well:
> >>>>>>
> >>>>>> [repository: /svn]
> >>>>>>
> >>>>>> @<groupdefined earlier> = rw
> >>>>>>
> >>>>>> Then I launch svnserve -d
> >>>>>>
> >>>>>> Attempt to connect with svnX and get an Authentication Failed.
> >>>>>
> >>>>> how? Are you using svn+ssh://bla.servername.com/reponame
> >>>>>
> >>>>> I think if you do that svnserve is spawned for you.
> >>>>>
> >>>>> ???
> >>>>>
> >>>>> Have you read this part of the svn book http://svnbook.red-
> >>>> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth
> ??
> >>>>>
> >>>>> BOb
> >>>>>
> >>>
> >>>> I'm just using svn://  I was hoping to not have to ssh in as I will
> >> have
> >>>> occasion to have to connect from behind a firewall that does not
> permit
> >>>> ssh.
> >>>
> >>> I see. So, you are running the daemon then closing your ssh
> connection.
> >> Are you sure that keeps the deamon running. I'm not much of a Linux
> guy.
> >>>
> >>> That said... are you sure your hoster has the port that svn needs
> open.
> >> Is this a shared server or a dedicated server or what? I'm not sure why
> >> you would get an auth failure. It is prompting for the username and
> >> password? Or are you just passing them.
> >>>
> >>> If you use svn.exe while you are in the ssh session does that work?
> >>>
> >>> BOb
> >>>
> >> Very much a shared server.
> >>
> >> I tried the following (from within ssh):
> >>
> >> /usr/local/bin/svn info svn://<server>/svn
> >>
> >> Result:
> >>
> >> Authorization failed
> >
> > Hmm... are you sure you have the config set up correctly and pointing to
> an auth file that is correctly set up? Do you have anon access enabled?
> Have you tried passing the svn username / password on your command line
> like:
> >
> > /usr/local/bin/svn info svn://<server>/svn --username User --password
> Password
> >
> > I'm wondering since you are on a shared server if someone else is
> running svnserve on the default port. ALthough I expect that would give
> you an error.
> >
> > BOb
> >
> Hmmm...  if I do the command line specifying --username <ssh user> --
> password <password> I'll get a response like "Authentication realm:
> <svn://<server>:3690> some sort of key is presented and then I'm asked for
> a username.  If I give it the username specified in the passwd db, then
> the incorrect password I'm told the password is incorrect.  If I give it
> the correct password, I get an Authentication failed.
> 
> I'm beginning to wonder if the directory permissions are at issue?

Well, the SSH password has nothing to do with it... since you aren't using SSH or tunneling through SSH. you should be providing a username/password pair that is in your passwd file that your config points to. 

BOb

Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
Hmmm...  if I do the command line specifying --username <ssh user> --password <password> I'll get a response like "Authentication realm: <svn://<server>:3690> some sort of key is presented and then I'm asked for a username.  If I give it the username specified in the passwd db, then the incorrect password I'm told the password is incorrect.  If I give it the correct password, I get an Authentication failed.

I'm beginning to wonder if the directory permissions are at issue?
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 11:59 AM, Bob Archer wrote:

>> On May 13, 2010, at 11:36 AM, Bob Archer wrote:
>> 
>>>> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
>>>> 
>>>>>> No, I'm using ssh to a. create the repository, then b. launch
>> svnserve
>>>>>> 
>>>>>> I'm trying to connect using either svnX or TortoiseSVN (I like
>> working
>>>> on
>>>>>> multiple OS at the same time :) )
>>>>>> 
>>>>>> So, after I SSH'd in:
>>>>>> 
>>>>>> I did svnadmin create svn  - created the directory <server>/svn with
>>>> all
>>>>>> of the appropriate directories, from the looks of it.  The
>> permissions
>>>> on
>>>>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin
>> and
>>>>>> svnserve have both been launched from the same account (the owner of
>>>> the
>>>>>> svn directory).
>>>>>> 
>>>>>> svnserve.conf was modified to uncomment the following lines:
>>>>>> 
>>>>>> anon-access = read (actually I currently have this set to write to
>> see
>>>> if
>>>>>> it helped, but it didn't)
>>>>>> auth-access = write
>>>>>> password-db = passwd
>>>>>> authz-db = authz
>>>>>> 
>>>>>> nothing else was modified/uncommented and the like.
>>>>>> 
>>>>>> passwd was edited to add a line of the sort:
>>>>>> 
>>>>>> <username> = <password>
>>>>>> 
>>>>>> authz was modified to create a group including <username> and the
>>>>>> following line was added, as well:
>>>>>> 
>>>>>> [repository: /svn]
>>>>>> 
>>>>>> @<groupdefined earlier> = rw
>>>>>> 
>>>>>> Then I launch svnserve -d
>>>>>> 
>>>>>> Attempt to connect with svnX and get an Authentication Failed.
>>>>> 
>>>>> how? Are you using svn+ssh://bla.servername.com/reponame
>>>>> 
>>>>> I think if you do that svnserve is spawned for you.
>>>>> 
>>>>> ???
>>>>> 
>>>>> Have you read this part of the svn book http://svnbook.red-
>>>> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
>>>>> 
>>>>> BOb
>>>>> 
>>> 
>>>> I'm just using svn://  I was hoping to not have to ssh in as I will
>> have
>>>> occasion to have to connect from behind a firewall that does not permit
>>>> ssh.
>>> 
>>> I see. So, you are running the daemon then closing your ssh connection.
>> Are you sure that keeps the deamon running. I'm not much of a Linux guy.
>>> 
>>> That said... are you sure your hoster has the port that svn needs open.
>> Is this a shared server or a dedicated server or what? I'm not sure why
>> you would get an auth failure. It is prompting for the username and
>> password? Or are you just passing them.
>>> 
>>> If you use svn.exe while you are in the ssh session does that work?
>>> 
>>> BOb
>>> 
>> Very much a shared server.
>> 
>> I tried the following (from within ssh):
>> 
>> /usr/local/bin/svn info svn://<server>/svn
>> 
>> Result:
>> 
>> Authorization failed
> 
> Hmm... are you sure you have the config set up correctly and pointing to an auth file that is correctly set up? Do you have anon access enabled? Have you tried passing the svn username / password on your command line like:
> 
> /usr/local/bin/svn info svn://<server>/svn --username User --password Password
> 
> I'm wondering since you are on a shared server if someone else is running svnserve on the default port. ALthough I expect that would give you an error. 
> 
> BOb
> 

RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> On May 13, 2010, at 11:36 AM, Bob Archer wrote:
> 
> >> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
> >>
> >>>> No, I'm using ssh to a. create the repository, then b. launch
> svnserve
> >>>>
> >>>> I'm trying to connect using either svnX or TortoiseSVN (I like
> working
> >> on
> >>>> multiple OS at the same time :) )
> >>>>
> >>>> So, after I SSH'd in:
> >>>>
> >>>> I did svnadmin create svn  - created the directory <server>/svn with
> >> all
> >>>> of the appropriate directories, from the looks of it.  The
> permissions
> >> on
> >>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin
> and
> >>>> svnserve have both been launched from the same account (the owner of
> >> the
> >>>> svn directory).
> >>>>
> >>>> svnserve.conf was modified to uncomment the following lines:
> >>>>
> >>>> anon-access = read (actually I currently have this set to write to
> see
> >> if
> >>>> it helped, but it didn't)
> >>>> auth-access = write
> >>>> password-db = passwd
> >>>> authz-db = authz
> >>>>
> >>>> nothing else was modified/uncommented and the like.
> >>>>
> >>>> passwd was edited to add a line of the sort:
> >>>>
> >>>> <username> = <password>
> >>>>
> >>>> authz was modified to create a group including <username> and the
> >>>> following line was added, as well:
> >>>>
> >>>> [repository: /svn]
> >>>>
> >>>> @<groupdefined earlier> = rw
> >>>>
> >>>> Then I launch svnserve -d
> >>>>
> >>>> Attempt to connect with svnX and get an Authentication Failed.
> >>>
> >>> how? Are you using svn+ssh://bla.servername.com/reponame
> >>>
> >>> I think if you do that svnserve is spawned for you.
> >>>
> >>> ???
> >>>
> >>> Have you read this part of the svn book http://svnbook.red-
> >> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
> >>>
> >>> BOb
> >>>
> >
> >> I'm just using svn://  I was hoping to not have to ssh in as I will
> have
> >> occasion to have to connect from behind a firewall that does not permit
> >> ssh.
> >
> > I see. So, you are running the daemon then closing your ssh connection.
> Are you sure that keeps the deamon running. I'm not much of a Linux guy.
> >
> > That said... are you sure your hoster has the port that svn needs open.
> Is this a shared server or a dedicated server or what? I'm not sure why
> you would get an auth failure. It is prompting for the username and
> password? Or are you just passing them.
> >
> > If you use svn.exe while you are in the ssh session does that work?
> >
> > BOb
> >
> Very much a shared server.
> 
> I tried the following (from within ssh):
> 
> /usr/local/bin/svn info svn://<server>/svn
> 
> Result:
> 
> Authorization failed

Hmm... are you sure you have the config set up correctly and pointing to an auth file that is correctly set up? Do you have anon access enabled? Have you tried passing the svn username / password on your command line like:

/usr/local/bin/svn info svn://<server>/svn --username User --password Password

I'm wondering since you are on a shared server if someone else is running svnserve on the default port. ALthough I expect that would give you an error. 

BOb

Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
Very much a shared server.

I tried the following (from within ssh):

/usr/local/bin/svn info svn://<server>/svn

Result:

Authorization failed
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 11:36 AM, Bob Archer wrote:

>> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
>> 
>>>> No, I'm using ssh to a. create the repository, then b. launch svnserve
>>>> 
>>>> I'm trying to connect using either svnX or TortoiseSVN (I like working
>> on
>>>> multiple OS at the same time :) )
>>>> 
>>>> So, after I SSH'd in:
>>>> 
>>>> I did svnadmin create svn  - created the directory <server>/svn with
>> all
>>>> of the appropriate directories, from the looks of it.  The permissions
>> on
>>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
>>>> svnserve have both been launched from the same account (the owner of
>> the
>>>> svn directory).
>>>> 
>>>> svnserve.conf was modified to uncomment the following lines:
>>>> 
>>>> anon-access = read (actually I currently have this set to write to see
>> if
>>>> it helped, but it didn't)
>>>> auth-access = write
>>>> password-db = passwd
>>>> authz-db = authz
>>>> 
>>>> nothing else was modified/uncommented and the like.
>>>> 
>>>> passwd was edited to add a line of the sort:
>>>> 
>>>> <username> = <password>
>>>> 
>>>> authz was modified to create a group including <username> and the
>>>> following line was added, as well:
>>>> 
>>>> [repository: /svn]
>>>> 
>>>> @<groupdefined earlier> = rw
>>>> 
>>>> Then I launch svnserve -d
>>>> 
>>>> Attempt to connect with svnX and get an Authentication Failed.
>>> 
>>> how? Are you using svn+ssh://bla.servername.com/reponame
>>> 
>>> I think if you do that svnserve is spawned for you.
>>> 
>>> ???
>>> 
>>> Have you read this part of the svn book http://svnbook.red-
>> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
>>> 
>>> BOb
>>> 
> 
>> I'm just using svn://  I was hoping to not have to ssh in as I will have
>> occasion to have to connect from behind a firewall that does not permit
>> ssh.
> 
> I see. So, you are running the daemon then closing your ssh connection. Are you sure that keeps the deamon running. I'm not much of a Linux guy. 
> 
> That said... are you sure your hoster has the port that svn needs open. Is this a shared server or a dedicated server or what? I'm not sure why you would get an auth failure. It is prompting for the username and password? Or are you just passing them. 
> 
> If you use svn.exe while you are in the ssh session does that work?
> 
> BOb
> 

RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
> 
> >> No, I'm using ssh to a. create the repository, then b. launch svnserve
> >>
> >> I'm trying to connect using either svnX or TortoiseSVN (I like working
> on
> >> multiple OS at the same time :) )
> >>
> >> So, after I SSH'd in:
> >>
> >> I did svnadmin create svn  - created the directory <server>/svn with
> all
> >> of the appropriate directories, from the looks of it.  The permissions
> on
> >> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
> >> svnserve have both been launched from the same account (the owner of
> the
> >> svn directory).
> >>
> >> svnserve.conf was modified to uncomment the following lines:
> >>
> >> anon-access = read (actually I currently have this set to write to see
> if
> >> it helped, but it didn't)
> >> auth-access = write
> >> password-db = passwd
> >> authz-db = authz
> >>
> >> nothing else was modified/uncommented and the like.
> >>
> >> passwd was edited to add a line of the sort:
> >>
> >> <username> = <password>
> >>
> >> authz was modified to create a group including <username> and the
> >> following line was added, as well:
> >>
> >> [repository: /svn]
> >>
> >> @<groupdefined earlier> = rw
> >>
> >> Then I launch svnserve -d
> >>
> >> Attempt to connect with svnX and get an Authentication Failed.
> >
> > how? Are you using svn+ssh://bla.servername.com/reponame
> >
> > I think if you do that svnserve is spawned for you.
> >
> > ???
> >
> > Have you read this part of the svn book http://svnbook.red-
> bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
> >
> > BOb
> >

> I'm just using svn://  I was hoping to not have to ssh in as I will have
> occasion to have to connect from behind a firewall that does not permit
> ssh.

I see. So, you are running the daemon then closing your ssh connection. Are you sure that keeps the deamon running. I'm not much of a Linux guy. 

That said... are you sure your hoster has the port that svn needs open. Is this a shared server or a dedicated server or what? I'm not sure why you would get an auth failure. It is prompting for the username and password? Or are you just passing them. 

If you use svn.exe while you are in the ssh session does that work?

BOb

Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
Thanks.  No joy, however.

I have a feeling there may be something odd with the way things are configured on the server, as my provider doesn't really have any svn experience.  I'm tempted to just switch to assembla.com as its a small project.
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 11:10 AM, David Brodbeck wrote:

> 
> On May 13, 2010, at 10:50 AM, Jeffrey Lee wrote:
>> 
>> 
>> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
>> 
>>>> No, I'm using ssh to a. create the repository, then b. launch svnserve
>>>> 
>>>> I'm trying to connect using either svnX or TortoiseSVN (I like working on
>>>> multiple OS at the same time :) )
>>>> 
>>>> So, after I SSH'd in:
>>>> 
>>>> I did svnadmin create svn  - created the directory <server>/svn with all
>>>> of the appropriate directories, from the looks of it.  The permissions on
>>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
>>>> svnserve have both been launched from the same account (the owner of the
>>>> svn directory).
>>>> 
>>>> svnserve.conf was modified to uncomment the following lines:
>>>> 
>>>> anon-access = read (actually I currently have this set to write to see if
>>>> it helped, but it didn't)
>>>> auth-access = write
>>>> password-db = passwd
>>>> authz-db = authz
>>>> 
>>>> nothing else was modified/uncommented and the like.
>>>> 
>>>> passwd was edited to add a line of the sort:
>>>> 
>>>> <username> = <password>
>>>> 
>>>> authz was modified to create a group including <username> and the
>>>> following line was added, as well:
>>>> 
>>>> [repository: /svn]
>>>> 
>>>> @<groupdefined earlier> = rw
>>>> 
>>>> Then I launch svnserve -d
>>>> 
>>>> Attempt to connect with svnX and get an Authentication Failed.
>>> 
>>> how? Are you using svn+ssh://bla.servername.com/reponame
>>> 
>>> I think if you do that svnserve is spawned for you.
>>> 
>>> ???
>>> 
>>> Have you read this part of the svn book http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
>>> 
>>> BOb
>>> 
> 
> 
>> I'm just using svn://  I was hoping to not have to ssh in as I will have occasion to have to connect from behind a firewall that does not permit ssh.
>> ----------------------------------
>> Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa
>> 
>> Jeffrey Lee
>> jeff@lee-burgin.com
> 
> Try turning off anon-access.  My experience is that mixing anonymous and authenticated access confuses the client and causes strange behavior.
> 
> 
> -- 
> 
> David Brodbeck
> System Administrator, Linguistics
> University of Washington
> 
> 
> 
> 


Re: SVN Authentication fail

Posted by David Brodbeck <br...@u.washington.edu>.
On May 13, 2010, at 10:50 AM, Jeffrey Lee wrote:
> 
> 
> On May 13, 2010, at 10:40 AM, Bob Archer wrote:
> 
>>> No, I'm using ssh to a. create the repository, then b. launch svnserve
>>> 
>>> I'm trying to connect using either svnX or TortoiseSVN (I like working on
>>> multiple OS at the same time :) )
>>> 
>>> So, after I SSH'd in:
>>> 
>>> I did svnadmin create svn  - created the directory <server>/svn with all
>>> of the appropriate directories, from the looks of it.  The permissions on
>>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
>>> svnserve have both been launched from the same account (the owner of the
>>> svn directory).
>>> 
>>> svnserve.conf was modified to uncomment the following lines:
>>> 
>>> anon-access = read (actually I currently have this set to write to see if
>>> it helped, but it didn't)
>>> auth-access = write
>>> password-db = passwd
>>> authz-db = authz
>>> 
>>> nothing else was modified/uncommented and the like.
>>> 
>>> passwd was edited to add a line of the sort:
>>> 
>>> <username> = <password>
>>> 
>>> authz was modified to create a group including <username> and the
>>> following line was added, as well:
>>> 
>>> [repository: /svn]
>>> 
>>> @<groupdefined earlier> = rw
>>> 
>>> Then I launch svnserve -d
>>> 
>>> Attempt to connect with svnX and get an Authentication Failed.
>> 
>> how? Are you using svn+ssh://bla.servername.com/reponame
>> 
>> I think if you do that svnserve is spawned for you.
>> 
>> ???
>> 
>> Have you read this part of the svn book http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
>> 
>> BOb
>> 


> I'm just using svn://  I was hoping to not have to ssh in as I will have occasion to have to connect from behind a firewall that does not permit ssh.
> ----------------------------------
> Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa
> 
> Jeffrey Lee
> jeff@lee-burgin.com

Try turning off anon-access.  My experience is that mixing anonymous and authenticated access confuses the client and causes strange behavior.


-- 

David Brodbeck
System Administrator, Linguistics
University of Washington





Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
I'm just using svn://  I was hoping to not have to ssh in as I will have occasion to have to connect from behind a firewall that does not permit ssh.
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 10:40 AM, Bob Archer wrote:

>> No, I'm using ssh to a. create the repository, then b. launch svnserve
>> 
>> I'm trying to connect using either svnX or TortoiseSVN (I like working on
>> multiple OS at the same time :) )
>> 
>> So, after I SSH'd in:
>> 
>> I did svnadmin create svn  - created the directory <server>/svn with all
>> of the appropriate directories, from the looks of it.  The permissions on
>> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
>> svnserve have both been launched from the same account (the owner of the
>> svn directory).
>> 
>> svnserve.conf was modified to uncomment the following lines:
>> 
>> anon-access = read (actually I currently have this set to write to see if
>> it helped, but it didn't)
>> auth-access = write
>> password-db = passwd
>> authz-db = authz
>> 
>> nothing else was modified/uncommented and the like.
>> 
>> passwd was edited to add a line of the sort:
>> 
>> <username> = <password>
>> 
>> authz was modified to create a group including <username> and the
>> following line was added, as well:
>> 
>> [repository: /svn]
>> 
>> @<groupdefined earlier> = rw
>> 
>> Then I launch svnserve -d
>> 
>> Attempt to connect with svnX and get an Authentication Failed.
> 
> how? Are you using svn+ssh://bla.servername.com/reponame
> 
> I think if you do that svnserve is spawned for you.
> 
> ???
> 
> Have you read this part of the svn book http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??
> 
> BOb
> 

RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> No, I'm using ssh to a. create the repository, then b. launch svnserve
> 
> I'm trying to connect using either svnX or TortoiseSVN (I like working on
> multiple OS at the same time :) )
> 
> So, after I SSH'd in:
> 
> I did svnadmin create svn  - created the directory <server>/svn with all
> of the appropriate directories, from the looks of it.  The permissions on
> the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and
> svnserve have both been launched from the same account (the owner of the
> svn directory).
> 
> svnserve.conf was modified to uncomment the following lines:
> 
> anon-access = read (actually I currently have this set to write to see if
> it helped, but it didn't)
> auth-access = write
> password-db = passwd
> authz-db = authz
> 
> nothing else was modified/uncommented and the like.
> 
> passwd was edited to add a line of the sort:
> 
> <username> = <password>
> 
> authz was modified to create a group including <username> and the
> following line was added, as well:
> 
> [repository: /svn]
> 
> @<groupdefined earlier> = rw
> 
> Then I launch svnserve -d
> 
> Attempt to connect with svnX and get an Authentication Failed.

how? Are you using svn+ssh://bla.servername.com/reponame

I think if you do that svnserve is spawned for you.

???

Have you read this part of the svn book http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.svnserve.sshauth ??

BOb

RE: SVN Authentication fail

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> authz was modified to create a group including <username> and
> the following line was added, as well:
>
> [repository: /svn]
>
> @<groupdefined earlier> = rw
>

I don't use svnserve but Apache instead. However, I believe the authorizations files have the same format (if that's not the case, please ignore the rest of the message).

That [repository: /svn] looks wrong to me. Since you have started svnserve with the path to the repository I believe that that line should just be [/], because the daemon knows already where the repository is.

[groups]
devel = user1, user2

[/]
@devel = rw

Could you post the entire authz file?

Giulio



Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851    VAT Reg No 778499447




Re: SVN Authentication fail

Posted by Jeffrey Lee <jl...@gmail.com>.
No, I'm using ssh to a. create the repository, then b. launch svnserve

I'm trying to connect using either svnX or TortoiseSVN (I like working on multiple OS at the same time :) )

So, after I SSH'd in:

I did svnadmin create svn  - created the directory <server>/svn with all of the appropriate directories, from the looks of it.  The permissions on the svn directory are rwxr-xr-x, which may be a problem?  svnadmin and svnserve have both been launched from the same account (the owner of the svn directory).

svnserve.conf was modified to uncomment the following lines:

anon-access = read (actually I currently have this set to write to see if it helped, but it didn't)
auth-access = write
password-db = passwd
authz-db = authz

nothing else was modified/uncommented and the like.

passwd was edited to add a line of the sort:

<username> = <password>

authz was modified to create a group including <username> and the following line was added, as well:

[repository: /svn]

@<groupdefined earlier> = rw

Then I launch svnserve -d

Attempt to connect with svnX and get an Authentication Failed.


I think that's all of the pertinent details.
----------------------------------
Concepts create idols; only wonder grasps anything.      - St. Gregory of Nyssa

Jeffrey Lee
jeff@lee-burgin.com


On May 13, 2010, at 10:15 AM, Bob Archer wrote:

>> My webhosting service installed SVN on my account (for my domain).  They
>> won't enable the Apache module, so have to fire off svnserve -d, which is
>> fine for my purposes.  At any rate, I've created a repository, and believe
>> I've configured all of the passwd authz and svnserve.conf files
>> appropriately (according to the instructions), but I still get an
>> authorization fail when I connect.  I did try to define an additional user
>> in the passwd file that is the account (username and password) I use to
>> ssh into the server, but that didn't help.
>> 
>> Googling hasn't yielded any fruit for me yet, so I'd appreciate any ideas
>> on where to go next.
> 
> I don't understand what you are doing. 
> 
> Are you SSHing into your server. Then starting the svnserve deamon then in that ssh terminal trying to use the svn command?
> 
> Or, are you running the svn command locally? Using what protocol?
> 
> So example commands... steps you are performing would really help us help you with guessing and going back and forth with questions.
> 
> BOb
> 

RE: SVN Authentication fail

Posted by Bob Archer <Bo...@amsi.com>.
> My webhosting service installed SVN on my account (for my domain).  They
> won't enable the Apache module, so have to fire off svnserve -d, which is
> fine for my purposes.  At any rate, I've created a repository, and believe
> I've configured all of the passwd authz and svnserve.conf files
> appropriately (according to the instructions), but I still get an
> authorization fail when I connect.  I did try to define an additional user
> in the passwd file that is the account (username and password) I use to
> ssh into the server, but that didn't help.
> 
> Googling hasn't yielded any fruit for me yet, so I'd appreciate any ideas
> on where to go next.

I don't understand what you are doing. 

Are you SSHing into your server. Then starting the svnserve deamon then in that ssh terminal trying to use the svn command?

Or, are you running the svn command locally? Using what protocol?

So example commands... steps you are performing would really help us help you with guessing and going back and forth with questions.

BOb