You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by su...@dream.big.or.jp on 2003/08/19 07:08:18 UTC

--username option does not work?

I started using Subversion on Debian woody.
The package is subversion_0.26.0-0.woody.1_i386.deb, 
downloadable from http://people.debian.org/~cjwatson/subversion-woody/ .

When I login with name `foo', 
  % svn ls --username bar svn+ssh://anotherhost/home/bar/svn/repos/
  foo@anotherhost's password: 
password for `foo' is required.
(The user `foo' does not exist on `anotherhost')

I tried
  % svn ls svn+ssh://bar@anotherhost/home/bar/svn/repos/
but this also failed.

How can I specify the username?

Thanks,
Kouhei Yanagita

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

Re: --username option does not work?

Posted by su...@dream.big.or.jp.
Ben Collins-Sussman <su...@collab.net> wrote:

> You could set SVN_SSH (or the equivalent variable in
> ~/.subversion/servers) to be "ssh -l username'.  That should work.

Thank you very much.
I set SVN_SSH and could change username.

Kouhei Yanagita

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

Re: --username option does not work?

Posted by Ben Collins-Sussman <su...@collab.net>.
Michael Wood <mw...@its.uct.ac.za> writes:

> Tunnel mode is used with svn+ssh://blah/
> 
> In tunnel mode, as far as I know, svnserve just uses the current user as
> the svn:author.  It completely ignores the --username switch (or the
> user in svn+ssh://user@host/)  So, since you logged in to the SSH server
> as user "foo", that's what svnserve puts in the repository.

You could set SVN_SSH (or the equivalent variable in
~/.subversion/servers) to be "ssh -l username'.  That should work.


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

Re: --username option does not work?

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Tue, Aug 19, 2003 at 04:08:18PM +0900, sugi@dream.big.or.jp wrote:
[snip]
> When I login with name `foo', 
>   % svn ls --username bar svn+ssh://anotherhost/home/bar/svn/repos/
>   foo@anotherhost's password: 
> password for `foo' is required.
> (The user `foo' does not exist on `anotherhost')
[snip]

svnserve currently has two modes of operation.  The first mode is
unauthenticated.  The second is tunnel mode.

Tunnel mode is used with svn+ssh://blah/

In tunnel mode, as far as I know, svnserve just uses the current user as
the svn:author.  It completely ignores the --username switch (or the
user in svn+ssh://user@host/)  So, since you logged in to the SSH server
as user "foo", that's what svnserve puts in the repository.

The idea was for svnserve to support SASL at some point for more
authentication options, but this has not been implemented yet, and I
think there might have been some licensing concerns with some of the
available SASL libraries.  The archives of the dev@subversion list
should have more details.

If you want different users to have access to the repository via SSH,
you could set up a group with all the users in it.  Make sure the
repository is writable by the group and then make a wrapper for svnserve
that sets the umask appropriately before calling the real svnserve.

-- 
Michael Wood <mw...@its.uct.ac.za>

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