bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How connect Translator /hurd/ftpfs with a non anonimous ftp account


From: Samuel Thibault
Subject: Re: How connect Translator /hurd/ftpfs with a non anonimous ftp account with user and passwd
Date: Sun, 17 Mar 2024 20:21:36 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Jose Luis Alarcon Sanchez, le dim. 17 mars 2024 20:13:13 +0100, a ecrit:
> On Sun, Mar 17, 2024 at 06:48:17PM +0100, Samuel Thibault wrote:
> > Hello,
> >
> > Jose Luis Alarcon Sanchez, le dim. 17 mars 2024 18:34:29 +0100, a ecrit:
> > > The 'test' work exactly as the text say, and i did ls on the GNU FTP, but 
> > > i want to introduce here my
> > > question: Can this be done also with a ftp server that requires an user 
> > > name
> > > and password?. I have my account with user name and password and do well
> > > "traditional ftp". Can i get too have this Transparent FTP that the
> > > marvelous concept of the Translator allows?.
> >
> > See /hurd/ftpfs --help:
> >
> > SERVER can be a hostname, in which case anonymous ftp is used, or may
> > include a user and password like `USER:PASSWORD@HOST' (the `:PASSWORD'
> > part is optional).
> >
> > So in theory you can pass user+password. But that will then show up in
> > ls, so you don't actually want this. Something would need to be added to
> > hostmux and/or ftpfs to support this in a safe way.
> >
> 
> My sequence of commands:
> 
>  $ settrans -c ftp: /hurd/hostmux /hurd/ftpfs /
>  $ ls ftp://myuser:mypasswd@servername.net/
> ls: cannot access 'ftp://myuser:mypasswd@servername.net/': Translator died

This does work for me:

$ settrans -c ftp: /hurd/hostmux /hurd/ftpfs /
$ ls ftp://anonymous:anonymous@ftp.gnu.org/
CRYPTO.README                  find.txt.gz        non-gnu      tmp
MISSING-FILES                  gnu                old-gnu      tree.json.gz
MISSING-FILES.README           gnu+linux-distros  pub          video
README                         ls-lrRt.txt.gz     savannah     welcome.msg
before-2003-08-01.md5sums.asc  mirrors            third-party

>  $ ftp servername.net
> 
> The part 'ftp://' is not needed. Can this be important?

calling ftp already tells you're using the ftp protocol. Above, "ftp://";
is merely to use the ftp:/ directory that you have set up.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]