> Good point : when I used the ftp protocol, I saw the correct
> permissions of the directory : 700. When I try do read/cd it, of
> course, I encounter an error 403 permission denied. All right.
>
> What surprises me is that when using the default protocol (ie hftp,
> isn't it?), I read those permissions : 755, and I encountered error
> 404 not found when trying to cd in it.
> Is that due to the server (unlikely), to lftp (v 2.3.8 running) or
> hftp (I think so)?
>
> Thanks,
> Regards,
> -- Dan
If I'm not too wrong, the hftp protocol is used when you go through a
proxy. It's not the default protocol. lftp use the environnement variable
'ftp_proxy' to set-up himself with the correct host to use. When you're
talking to a proxy (http or ftp), you have to talk http to it. For example
a common request is:
GET ftp://ftp.somehost.com/pub/file/somefile HTTP/1.0
Here you have my suggestions:
- If you aren't obliged to use an ftp proxy, disable it from lftp by
unsetting the variable ftp:proxy, so lftp will be able to talk the ftp
protocol directly with the server.
- If you are obliged to use your ftp proxy, try to have a look of what's
happening by dumping a trace with the command 'debug 9' or so. Maybe it
could help.
In all cases, hftp is like http browsing. When doing a listing request,
the proxy will format it into a beautiful html, and I'm not sure that lftp
will parse "templates" proxy response to find the correct rights of each
file and directory.
Cheers,
-- Nicolas Noble