[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnserve+ssh

From: Adrian Robert <arobert_at_cogsci.ucsd.edu>
Date: 2004-02-23 18:12:13 CET

OK, wrapping svnserve with somthing like the following works:

----------
#!/bin/sh
# wrap in order to put root in by default

exec /usr/local/bin/svnserve.bin -r /path/to/repository/root "$@"
----------

On Feb 23, 2004, at 11:58 AM, Adrian Robert wrote:

>> But I don't know how to restrict it to a required directory.
>> My repo lies in /home/svn, so my URI looks like this:
>> svn co svn+ssh://repo.vernet.pl/home/svn/bip/trunk
>>
>> How can I restrict (like running svnserve -r) svn through ssh?
>
> Has anyone found a way to do this? It is not only a pain to have to
> do:
>
> svn+ssh://machine.foo.com/a/path/to/somewhere/
>
> instead of:
>
> svn://machine.foo.com/
>
> but it can be construed as a security risk to be exposing absolute
> paths like this.
>
> Either a global config (/etc/svnserve.conf) or configs in every user's
> .subversion directory would be needed.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 23 18:21:15 2004

This is an archived mail posted to the Subversion Users mailing list.