> 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