You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Krishna Mohan Gundu <gk...@gmail.com> on 2006/05/17 09:11:25 UTC

Re: subversion tunnels and userv

> 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


Re: subversion tunnels and userv

Posted by Krishna Mohan Gundu <gk...@gmail.com>.
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 <gk...@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