Anonymous FTP, ls don't work!

Anonymous FTP, ls don't work!

Post by Paolo MAR » Tue, 19 Jan 1999 04:00:00



I don't know if i'm enough stupid...
Anyway i followed CORRECTLY all the steps in 'man ftpd', to allow an anounymous user to log in my Sparc5 2.6 .
I'm able to move in the directory (~ftp/bin/ ,  ~ftp/usr/bin/ , ecc. ecc.)
I'm also able to make an mput from a client.

BUT I'M NOT ABLE TO SEE ANYTHING FROM THE 'ls' COMMAND!!!!

Please if someone knows the trick...

Thanks.

 
 
 

Anonymous FTP, ls don't work!

Post by Karsten Faerbe » Wed, 20 Jan 1999 04:00:00



> I don't know if i'm enough stupid...
> Anyway i followed CORRECTLY all the steps in 'man ftpd', to allow an anounymous user to log in my Sparc5 2.6 .
> I'm able to move in the directory (~ftp/bin/ ,  ~ftp/usr/bin/ , ecc. ecc.)
> I'm also able to make an mput from a client.

> BUT I'M NOT ABLE TO SEE ANYTHING FROM THE 'ls' COMMAND!!!!

> Please if someone knows the trick...

> Thanks.

Hm, maybe there's some problem with the shared libraries or file
permissions. On the ftp client you won't see the error messages produced
by the ftpd.
Try the following on the Sun: 'chroot <your ftp root-dir> /bin/ls'
This command changes the root-dir for the 'ls' command to your ftp-home
and you will be able to see any error messages.

Hope this helps,

Karsten

---
Karsten Faerber
Inquire Inc.


 
 
 

Anonymous FTP, ls don't work!

Post by Paolo MAR » Wed, 20 Jan 1999 04:00:00



>> I don't know if i'm enough stupid...
>> Anyway i followed CORRECTLY all the steps in 'man ftpd', to allow an anounymous user to log in my Sparc5 2.6 .
>> I'm able to move in the directory (~ftp/bin/ ,  ~ftp/usr/bin/ , ecc. ecc.)
>> I'm also able to make an mput from a client.

>> BUT I'M NOT ABLE TO SEE ANYTHING FROM THE 'ls' COMMAND!!!!

>> Please if someone knows the trick...

>> Thanks.

>"ls" will run the /usr/bin/ls command on the FTP server.  Try using
>the "dir" command which is a builtin for the ftp protocol.  If dir
>works, then your problem is that you don't have a copy of the ls
>executable and any required dynamically linked libraries in their
>respective directories in ~ftp.
> -- richard

Also dir not work.
 
 
 

Anonymous FTP, ls don't work!

Post by David S » Wed, 20 Jan 1999 04:00:00



> I don't know if i'm enough stupid...
> Anyway i followed CORRECTLY all the steps in 'man ftpd', to allow an anounymous user to log in my Sparc5 2.6 .
> I'm able to move in the directory (~ftp/bin/ ,  ~ftp/usr/bin/ , ecc. ecc.)
> I'm also able to make an mput from a client.

> BUT I'M NOT ABLE TO SEE ANYTHING FROM THE 'ls' COMMAND!!!!

> Please if someone knows the trick...

blowfly 101% ldd /usr/bin/ls
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1

Make sure that 'libc.so.1' and 'libdl.so.1' are in '~ftp/usr/lib'.

David S.

...     bdgp.org

Quote:> Thanks.

 
 
 

1. ls don't work with anonymous ftp.

I have configured my Sun server running on Solaris 2.6 to be an anonymous
ftp server. now I can use anonymous to log on correctly. "pwd" and "cd" can
work well. I can get sth back if I know the file name.

But I can't get anything back using "ls", it always says
"PORT command successful
150 ASCII data connection for /bin/ls (192.10.1.1,4689) (0 bytes)
226 ASCII transfer  complete."

I have make directories like this:
/user/ftp is ftp home direcotry
/user/ftp/usr/bin/ls, pwd
/user/ftp/etc/passwd,shadow
/user/ftp/bin->/user/ftp/usr/bin
/user/ftp/dev/ some device file
/user/ftp/lib/ some lib

It seems that "mget" also doesn't work. the return is always "Type set to
I".
what's wrong with that? what else I need to do?

2. Is this really possible?

3. ls don't work in anonymous ftp.

4. non buffered i/o input with C

5. how to get ftpd 'ls' to work with anonymous ftp

6. Mitsumi *AND* ne2000 clone

7. Anonymous ftp - ls doesn't work

8. how to partition my hard drives?

9. ls won't work for anonymous ftp !?

10. anonymous ftp ls doesn't work

11. anonymous ftp won't 'ls' in Solaris 2.6

12. 'ls' fails in anonymous FTP session

13. Is 'ls' broken with anonymous ftp in 2.5.1?