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

Re: subversion tunnels and userv

From: Krishna Mohan Gundu <gkmohan_at_gmail.com>
Date: 2006-05-18 05:54:27 CEST

I was half asleep when I sent the previous message. I might not have
done what I meant. The solution 2) works just fine. (You dont need the
echo command, ofcourse). One should use --tunnel-user option to keep
track of who is modifying the repository. Otherwise it would look as
if the owner of the repos is doing all the modifications. One can even
force this through sudoers.

But does anyone know why solution 1) does not work?
> [tunnel]
> sudossh = ssh sudo -u joe
effectively launches "ssh -u ... svnserver -t" not "ssh sudo -u joe
svnserver -t"

Is that how it is supposed to work? If so why?

regards,
Krishna.

On 5/17/06, Krishna Mohan Gundu <gkmohan@gmail.com> wrote:
> > I tried it out with sudo now and it works like a charme. All I had to
> > do was write a little wrapper-script with the following content:
> >
> > sudo -u user /usr/local/bin/svnserve -t
> >
> > This works great, but there is still one problem. I have to place the
>
> Can you please detail? I could not get this to work. I set up sudoers
> and everything. But I cant get svn to run sudo.
>
> repository
> ========
> /home/joe/repos/testmodule
>
> /etc/sudoers
> ==========
> john localhost@localdomain = (joe) NOPASSWD:/usr/bin/svnserve
>
> then i tried
> 1)
> /home/john/.subversion
> ===================
> [tunnel]
> sudossh = ssh sudo -u joe
>
> ran
> svn checkout svn+sudossh://localhost.localdomain/home/joe/repos/testmodule
>
> gives the follow error:
> ssh: illegal option -- u
>
> I dont know if this is a bug. Why the ssh command is being parsed?
> Instead of just running sudo -u joe svnserve -t?
>
> 2)
> .bashrc
> ======
> export PATH = ./:$PATH
>
> /home/john/svnserve
> =================
> #!/bin/bash
> echo "hello"
> sudo -u joe /usr/bin/svnserve -t
>
> then ran
> svn checkout svn+ssh://localhost.localdomain/home/joe/repos/testmodule
>
> got the error
> svn: No repository found in
> 'svn+ssh://localhost.localdomain/home/joe/repos/testmodule'
>
> How did you do it? I dont seem to understand what svn is doing when I
> run "svn+..."
>
> thanks,
> Krishna
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 18 05:55:20 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.