You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adam Stroud <ad...@gmail.com> on 2004/11/23 16:10:11 UTC

ssh+svn root

I posted a messaged a few months ago asking how to change the root
using ssh+svn so that my svnserve urls look like
"svn+ssh://user@host/repo_name" instead of
"svn+ssh://user@host/path/to/repo.  I did not get any reponses and it
seemed like other people were having the same problem.  I have figured
out a solution that works for me.

The reason that I could not use the -r option with ssh+svn is because
in tunnel mode the svnserve process gets started by the individual
user that prepends the url.  This means that each user needs to launch
the svnserve with the -r option.  I was having svnserve get launched
via inetd with the -r option which really has not effect when using
ssh (in fact I no longer start svnserver in a system wide manner
because the ssh+svn takes care of this).  What I did was to set the
alias: svnserve 'svnserve -r /path/to/repos' in a system wide file
(/etc/csh.cshrc on FreeBSD) and now everything works for every user
using csh.

I dont know if there is a better way to accomplish the like with
environment vars to set the flags or soemthing of that nature.

Hope this helps anyone that was having the same problem I was.

A

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: ssh+svn root

Posted by Marcus Rohrmoser <mr...@gmx-gmbh.de>.
Hi Adam,
this topic has been here several times.

Another solution than setting an alias is to create a wrapper shell 
script - this way you can also set the umask accordingly.

Greetings,
	M

Adam Stroud wrote:
> I posted a messaged a few months ago asking how to change the root
> using ssh+svn so that my svnserve urls look like
> "svn+ssh://user@host/repo_name" instead of
> "svn+ssh://user@host/path/to/repo.  I did not get any reponses and it
> seemed like other people were having the same problem.  I have figured
> out a solution that works for me.
> 
> The reason that I could not use the -r option with ssh+svn is because
> in tunnel mode the svnserve process gets started by the individual
> user that prepends the url.  This means that each user needs to launch
> the svnserve with the -r option.  I was having svnserve get launched
> via inetd with the -r option which really has not effect when using
> ssh (in fact I no longer start svnserver in a system wide manner
> because the ssh+svn takes care of this).  What I did was to set the
> alias: svnserve 'svnserve -r /path/to/repos' in a system wide file
> (/etc/csh.cshrc on FreeBSD) and now everything works for every user
> using csh.
> 
> I dont know if there is a better way to accomplish the like with
> environment vars to set the flags or soemthing of that nature.
> 
> Hope this helps anyone that was having the same problem I was.
> 
> A
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 


-- 
Marcus Rohrmoser
Software Entwickler
GMX GmbH, Riesstr. 17, 80992 München
Telefon +49 89 14339-539
----
Infos über EMail Sicherheit: http://www.gnupp.de