sftp bugs
Jan Hudec
bulb at ucw.cz
Fri Dec 2 08:42:53 GMT 2005
On Thu, Dec 01, 2005 at 22:42:56 -0600, John A Meinel wrote:
> Robert Collins wrote:
> > That makes sense to me. So the question is:
> >
> > is sftp://host//absolute/path
> > or
> > is sftp://host/absolute/path
> >
> > more useful?
> >
> > For HTTP, FTP, and File:// urls the latter syntax is used: the
> > presumption is that all resources on the filesystem have the same
> > location *regardless* of user credentials.
> >
> > I think that this is easier to debug and easier to understand than URL's
> > where the resource location randomly changes if the credentials change.
>
> Well, how does the supermirror handle it? I could have sworn that it
> gave you a different path depending on you username. So if you connected
> as sftp://arch%ive-foo/cat--b--v@sourcecontrol.net/ it would put you at
> the root of your project.
> Which means that even with absolute paths, you still have a floating
> root directory depending on username.
Note, that HTTP and FTP both have a root distinct from the filesystem
root. Similarly the user's home could be considered the root of sftp,
with the actual root being linked via the names starting with %2f.
As for the supermirror, a different mechanism has to be used there,
because Arch used sftp://host/absolute/path. The supermirror probably
uses modified shell that restricts the access by chrooting or similar
means. rssh or scponly or something like that.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051202/c4630133/attachment.pgp
More information about the bazaar
mailing list