Subject: dir command

From: [email-masked] (Bill Townsley)
Date: Wed, 17 Jan 1996 08:55:05 -0500

I have wu-ftpd 2.4 on a Sun SPARC running Solaris 2.4.  I am 
unable to get the "dir" command to work under the anonymous login.
Logins by specific users works fine, but the anonymous login is 
unable to do a dir.  For example, when logging in as anonymous, the 
"ls" command outputs:

ftp>ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bin
incoming
dev
etc
pub
226 Transfer complete.
30 bytes received in 0.0036 seconds (8.2 Kbytes/s)
ftp> 

but the "dir" command yields:

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
ftp> 

Does anyone have any idea why this happens or how I can fix it?

+------------------------------------+
| Bill Townsley, Computer Specialist |
|  USGS Center for Coastal Geology   |
| email: [email-masked] |
|   phone: 813-893-3100 ext. 3019    |
|        fax: 813-893-3333           |   
+------------------------------------+
|  One World, One Operating System   |
+------------------------------------+

---

From: "David A. Smith" <[email-masked]>
Date: Wed, 17 Jan 1996 08:25:14 -0600 (CST)

> unable to do a dir.  For example, when logging in as anonymous, the 

To use dir, or any switches on ls, either all the libaries that ls uses 
must be in ~ftp/ or it must be compiled staticly.  The second option is 
easier.  This applies to any command you want to be executated from anon 
ftp (ie tar, compress...)

The source can be gotten from any gnu archive site at I belive fileutil.tar.

To compile staticly I recommend using the -static option and compiling 
under gcc.

The reason that just ls works is that the server itself has a really dumb 
return directory command that is used if no switches are sent.

-----------------------------------------------------------------------
David A. Smith                          | Baylor College of Medicine
Systems Services                        | Enterprise Services, MEDT1103
(713) 798-8469                          | One Baylor Plaza
Internet:  [email-masked]            | Houston, TX  77030

---

From: Nathan Sowatskey x4758 <[email-masked]>
Date: Wed, 17 Jan 1996 16:35:25 -0200

> Does anyone have any idea why this happens or how I can fix it?

Hi Bill

There must exist a ~ftp/usr/lib directory which must contain:

ld.so.1       libc.so.1     libdl.so.1    libintl.so.1  libw.so.1

Regards

Nathan

-- 
---------------------------------------------------------------------

Nathan Sowatskey - Software Systems - [email-masked] 
(27)(21)-414-4758
ATE Building, Jetty Street, Roggebaai, Cape Town 8001, RSA

	SAIX - The South African Internet Exchange from Telkom 
			http://www.saix.net

---

From: Frank Neumann <[email-masked]>
Date: Wed, 17 Jan 1996 18:14:40 +0100 (MET)

I just try to install ftpd in a linux system. 
Before compiling, I made all the things mentioned in the file 'INSTALL' 
and now I started 'build lnx' to compile ftpd.
After that I got some error messages and I don't know why and how to 
correct it.
I tried to change compiler directives, I changed the makefile. But this 
doesn't help and it doesn't help to ignore the warnings ;-).

Here are some messages after starting build:

   opus:/usr/src/wu-ftpd-2.4# ./build lnx 
   make args are : 
   make opts are : 

   Linking Makefiles.
   ln: Makefile: File exists
   ln: config.h: File exists
   ln: Makefile: File exists

   Making support library.
   gcc  -O -DDEBUG -I.. -I../support -I/usr/include/bsd -L../support -c 
      getusershell.c
   In file included from getusershell.c:25:
   ../src/config.h:25: syntax error before `typedef'
   ../src/config.h:25: parse error before `typedef'
   In file included from getusershell.c:29:
   /usr/include/sys/stat.h:28: syntax error before `struct'
   /usr/include/sys/stat.h:28: parse error before `struct'
   make: *** [getusershell.o] Error 1

   Making ftpd.
   gcc -O -DDEBUG -I.. -I../support -I/usr/include/bsd -L../support   -c 
   ftpd.c -o ftpd.o
   In file included from ftpd.c:68:
   /usr/include/bsd/signal.h:20: warning: `SIGBUS' redefined
   /usr/include/linux/signal.h:16: warning: this is the location of the 
      previous definition
   In file included from ftpd.c:42:
   config.h:25: syntax error before `typedef'
   config.h:25: parse error before `typedef'
   In file included from ftpd.c:46:
   /usr/include/sys/stat.h:28: syntax error before `struct'
   /usr/include/sys/stat.h:28: parse error before `struct'
   ftpd.c:227: parse error before `lostconn'
   ftpd.c:227: warning: data definition has no type or storage class
   ftpd.c:228: parse error before `randomsig'
   ftpd.c:228: warning: data definition has no type or storage class
   ftpd.c:229: parse error before `myoob'
   ftpd.c:229: warning: data definition has no type or storage class
   ftpd.c: In function `main':
   ftpd.c:301: too few arguments to function `openlog'

Can someone help me or tell me where I can get help?

Frank Neumann

orgaplus Software GmbH  * Stedingerstr. 11  * 74080 Heilbronn  *  Germany
Tel:+49-7131-38830  *  Fax:+49-7131-388329  *  E-Mail:[email-masked]
                        Homepage: www.orgaplus.de