Re: sftp + ls not working properly

From: Richard Whalen (WhalenR@process.com)
Date: 03/27/02


From: "Richard Whalen" <WhalenR@process.com>
Date: Wed, 27 Mar 2002 11:19:47 -0500


"Simon Tatham" <anakin@pobox.com> wrote in message
news:Pyr*JOhkp@news.chiark.greenend.org.uk...
> > "Piotr Wolak" <piotr_wolak@yahoo.com> wrote:
> >> Do you know why the ls command does not convert UID and GID into real
> >> user name and group name ? Which is the default ls binary use by sftp
> >> ?
>
> Nico Kadel-Garcia <nkadel@bellatlantic.net> wrote:
> > It seems to be built into sftp-server. It also doesn't allow wildcard
> > expansion or recursive listings. This is why I recommend against sftp so
> > violently and suggest people use graphical SSH tools like WinSCP2 when
> > available.
>
> I disagree with almost all of that.
>
> Real user and group names are a small blind spot in the SFTP
> protocol in general, but that can be fixed - it's just a matter of
> getting round to it. But `ls' output like that is the one
> circumstance in which SFTP (the protocol) _can_ deal with real user
> and group names, so it's more likely that Piotr's server software is
> either broken or misconfigured. I've certainly seen most SFTP
> servers produce user and group names in that context.
>

The only way the SFTP protocol can present the user and group names of the
remote system is to include the translated values in the "longname" string
parameter, which is in danger of going away with the current discussion
going on.



Relevant Pages

  • Re: Good sftp server?
    ... The original SFTP draft specification only specified binary file access. ... (The protocol is actually a file access protocol, which is more than a file ... Process Software felt that it was necessary ...
    (comp.os.vms)
  • Re: sftp + ls not working properly
    ... clients are printing the longname, which AIUI most of them do. ... in that case we'll need a protocol extension to allow ... But SFTP is carefully designed to allow protocol ...
    (comp.security.ssh)
  • Re: Improved sftp client?
    ... > *nothing* except a poor pretense at the FTP interface. ... SFTP is a file transfer protocol running over SSH, ... more features than SCP, ...
    (comp.security.ssh)
  • Re: Does sftp or scp gaurentee delivery?
    ... >> Does anyone know if scp or sftp ensures that a transfer is complete. ... which uses the rsync protocol to duplicate the files instead of the ... option to rsync. ...
    (comp.security.ssh)
  • Re: Does OpenSSH use RCP?
    ... > Why is SFTP a poor excuse of a protocol? ... If protocols are compared to animals, FTP is the slime-warts toad. ... what's wrong with SFTP. ... Leidenschaft fehlt, das wirklich Wichtige lernt man dabei nicht, und die ...
    (comp.security.unix)