wu-ftpd 'ls' fails only for anonymous

wu-ftpd 'ls' fails only for anonymous

Post by Terry Glie » Thu, 11 Jan 1996 04:00:00



I'm running Slackware 3.0 on a 1.2.13 kernel.  I've had wu-ftpd
working just fine with earlier Slackware versions (non-Elf), but
with Slackware 3.0 I see the following:

"ls" in a.out format as anonymous works fine.
"ls" in ELF format as anonymous fails - nothing comes out.
"ls" in a.out format as a non-anonymous user works fine.
"ls" in ELF format as a non-anonymous user works fine.

So this tells me (I think) that there is some sort of permissions
problem for some library when "ls" is invoked under
the anonymous FTP user. I can see no library with non-world
readable permissions.  So can anyone tell me:

(1) Anyone know what needs to be changed for this to work?

(2) What is the COMPLETE list of programs that get called
when you invoke the command "ls"

(3) How can I figure out the answer to (2) ?

Thanks in advance.
--
===================================================================

CANS Webmeister: http://www.cfa.org/           http://cans.com/~tpg

 
 
 

wu-ftpd 'ls' fails only for anonymous

Post by CCRid » Fri, 12 Jan 1996 04:00:00


: I'm running Slackware 3.0 on a 1.2.13 kernel.  I've had wu-ftpd
: working just fine with earlier Slackware versions (non-Elf), but
: with Slackware 3.0 I see the following:

: "ls" in a.out format as anonymous works fine.
: "ls" in ELF format as anonymous fails - nothing comes out.
: "ls" in a.out format as a non-anonymous user works fine.
: "ls" in ELF format as a non-anonymous user works fine.

Ummmm, is the ELF version of ls compiled statically? In other words
when an anonymous user logs in a chroot() takes place and the copy of ls cannot
read the libraries needed to execute. so it dies.Just use the old version of ls.
if it werks that is.

 
 
 

wu-ftpd 'ls' fails only for anonymous

Post by Terry Glied » Sun, 14 Jan 1996 04:00:00




8> [...]
> >ELF binaries need /dev/zero. (-f ~ftp/dev/zero) ? works : not;
> >could it be that simple?

> argh. that's what i get for posting at 3 a.m. with insufficient coffee
> in my *stream; logic errors in the pseudocode.

> (-c ~ftp/dev/zero) ? works : not; # blast me for that oversight.

> (and no, i still don't know for certain if this is the problem here.)
> --
> " ... this is the first day of my last days ... "       -- nin

Here is a working ~ftp that seems to behave as I want -- I can use both
compress and tar.  This, of course, assumes you have /etc/ftpaccess set
up correctly.

total 5
-r--------   1 root     wheel           0 Jan 14  1995 .forward
-r--------   1 root     wheel           0 Jan 14  1995 .rhosts
dr-xr-xr-x   2 root     wheel        1024 Jan 13 10:13 bin/
drwxr-xr-x   2 root     wheel        1024 Jan 13 09:22 dev/
dr-xr-xr-x   2 root     wheel        1024 Jan 13 10:17 etc/
dr-xr-xr-x   2 root     wheel        1024 Jan 13 10:10 lib/
drwxr-xr-x   5 root     wheel        1024 Oct 25 09:17 pub/

bin:
total 188
-rwxr-xr-x   1 root     bin         10976 Oct 16 14:13 compress*
-rwxr-xr-x   1 root     bin         45309 Aug 14 16:33 gzip*
-rwxr-xr-x   1 root     bin         26976 Oct 16 14:13 ls*
-rwxr-xr-x   1 root     bin        104085 Aug  6 20:55 tar*

dev:
total 0
crw-rw-rw-   1 root     sys        1,   3 Jan 13 09:17 null
crw-rw-rw-   1 root     sys        1,   5 Jan 13 09:17 zero

etc:
total 2
-r--r--r--   1 root     wheel         258 Dec  3  1993 group
-r--r--r--   1 root     wheel         532 Dec  3  1993 passwd

lib:
total 598
lrwxrwxrwx   1 root     users          22 Jan 11 14:15 ld-linux.so.1 ->
/lib/ld-linux.so.1.7.3*
-rwxr-xr-x   1 root     root        20722 Aug 15 01:56
ld-linux.so.1.7.3*
lrwxrwxrwx   1 root     users          18 Jan 11 14:13 libc.so.5 ->
/lib/libc.so.5.0.9*
-rwxr-xr-x   1 root     root       562683 May 18  1995 libc.so.5.0.9*

pub:
        [  listing  deleted  ]
--
===================================================================

CANS Webmeister: http://www.veryComputer.com/;         http://www.veryComputer.com/~tpg

 
 
 

wu-ftpd 'ls' fails only for anonymous

Post by M.Buchenried » Tue, 16 Jan 1996 04:00:00



>I'm running Slackware 3.0 on a 1.2.13 kernel.  I've had wu-ftpd
>working just fine with earlier Slackware versions (non-Elf), but
>with Slackware 3.0 I see the following:
>"ls" in a.out format as anonymous works fine.
>"ls" in ELF format as anonymous fails - nothing comes out.
>"ls" in a.out format as a non-anonymous user works fine.
>"ls" in ELF format as a non-anonymous user works fine.

If you used the dynamically linked ELF version of 'ls' ,
did you copy the needed libraries in ~ftp/lib ?
Otherwise it will only work for non-anonymous users.

Michael
--

**************************************************************************
* "Real programmers don't play tennis, or any other sport that requires  *
*  you to change clothes. Mountain climbing is OK, and real programmers  *

 
 
 

wu-ftpd 'ls' fails only for anonymous

Post by Ian Camer » Wed, 17 Jan 1996 04:00:00



Quote:

>I'm running Slackware 3.0 on a 1.2.13 kernel.  I've had wu-ftpd
>working just fine with earlier Slackware versions (non-Elf), but
>with Slackware 3.0 I see the following:

>"ls" in a.out format as anonymous works fine.
>"ls" in ELF format as anonymous fails - nothing comes out.
>"ls" in a.out format as a non-anonymous user works fine.
>"ls" in ELF format as a non-anonymous user works fine.

>So this tells me (I think) that there is some sort of permissions
>problem for some library when "ls" is invoked under
>the anonymous FTP user. I can see no library with non-world
>readable permissions.  So can anyone tell me:

>(1) Anyone know what needs to be changed for this to work?

>(2) What is the COMPLETE list of programs that get called
>when you invoke the command "ls"

>(3) How can I figure out the answer to (2) ?

Hummm, well the only thing I can think of, is whether or not you
are using a statically compiled version of ls ?  I think you can
use a dynamically compiled binary if you copy libc and ld.so into
the lib directory in your ftp root.

Hope this helps.

Cheers, Ian.

 
 
 

1. wu-ftpd problem -- *some* anonymous users can't ls

I'm having a problem supporting anonymous ftp on my linux box; *some*
anonymous users (it appears to depend on which ftp client they are
using; the one on my linux box produces the problem, the windows 95 one
and the sunos 4.1.3 one don't) can't do directory listings.  If they
specify filenames correctly, they can download the files.  Oh, and the
ftp clients in Netscape and Mosaic also exhibit the problem, sigh.

The wu-ftpd mailing list seems to have dissappeared, or I'd have asked
there first.  Meanwhile, anybody have any ideas here?  I do have an ls
in ~ftp/bin, with permissions set as instructed in the ftpd doc.

This is obviously some setup problem of mine, but I haven't been able to
crack it yet.

2. How to add startup commands

3. wu-ftpd "ls" doesn't work with anonymous?

4. kernel panic in RH 6.1 rescue disk

5. Infamous 'ls' problem in WU-FTPD chrooted jail

6. Non-widget verses widget

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

8. HELP ! XVision 6.01 and WfWg : aixterm does not appear

9. Virtual wu-ftpd, BSDI, and anonymous ls

10. wu-ftpd-13 and 'ls'

11. 'ls' fails in anonymous FTP session

12. Slackware 3.0 and wu-ftpd anonymous login fails to list directories or files

13. wu-ftpd 2.4, Solaris, failed PASV connect from anonymous