From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 08:13:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA26322;
	Sat, 1 Nov 1997 08:05:39 -0600 (CST)
Received: from pizza.hvu.nl (Pizza.hvu.nl [145.89.234.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA24407
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 08:02:59 -0600 (CST)
Received: (from koos@localhost) by pizza.hvu.nl (8.8.6/KH19970721 (dbm++)) id PAA07218 for wu-ftpd@wugate.wustl.edu; Sat, 1 Nov 1997 15:03:00 +0100 (MET)
Message-Id: <199711011403.PAA07218@pizza.hvu.nl>
Date: Sat, 1 Nov 1997 15:03:00 +0100 (MET)
Reply-To: koos@pizza.hvu.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Koos van den Hout _U nix and we all_ <koos@pizza.hvu.nl>
To: wu-ftpd@wugate.wustl.edu
Subject: Contents of wu-ftpd FAQ
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

* Contents of the FAQ file for wu-ftpd. The complete file can be found at
http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
Or, send mail to wu-ftpd-faq@pizza.hvu.nl with as subject "send faq"
(without the quotes, body ignored).

THE_URL:file://localhost/home/staff/koos/wu-ftpd-faq/wu-ftpd-faq.contents.html
    1. Contents of this FAQ
         1. Contents of this FAQ
         2. What is this document
         3. What is wu-ftpd itself and this mailing list in particular ?
              1. How do I subscribe/unsubscribe ?
              2. Is this list archived anywhere ?
              3. What are related documents ?
         4. Where do I get the wu-ftpd ?
              1. Where do I get the updated version ?
         5. Compiling the wu-ftpd
              1. cc complains about strunames, typenames, modenames, ..
                 being undeclared.
              2. wu-ftpd doesn't 'see' that users are in multiple groups.
              3. wu-ftpd doesn't use the shadow passwords on my Linux
                 machine.
              4. It doesn't compile at all on newer Linux installs. The
                 error is :
              5. I need to use S/KEY authorisation
              6. I need to authenticate real users via AFS
              7. The timezone in the xferlog is wrong
              8. The timezone in the ls output is wrong
              9. Digital Unix doesn't log commands after an anonymous
                 user logs in
             10. install fails with 'install: ..'
             11. Digital Unix (The Unix Formerly Known As OSF/1) and
                 Enhanced C2 security,
             12. It doesn't compile at all on Digital Unix, errors about
                 struct timeval
             13. What should I do to be able to use wu-ftpd in a HP-UX
                 10.01
             14. What should I do for 10.10.
         6. Installing the wu-ftpd
              1. Command-line options for wu-ftpd
              2. Testing on a different port number then ftp
              3. Not all command line parameters seem to be used by
                 wu-ftpd
         7. The ftpaccess file
              1. Some files (banners, etc) don't get shown to anonymous
                 users.
              2. What is the exact format of the <times> parameter in the
                 "limit"
              3. What tools are there to check the configuration
         8. Programs (ls, gzip, tar) work for real users, not for
            anonymous users, giving errors like 425 Can't create data
            socket (0.0.0.0,20): Bad file number or simply no output.
              1. Solaris
              2. Building a statically linked ls for Solaris fails
              3. Linux
              4. Dec OSF
              5. SunOS4.1.x
              6. AIX
              7. IRIX (6.2)
              8. SCO Unix
              9. BSD vs SVR4 ls
             10. It worked, until I upgraded the operating system.
         9. Running wu-ftpd
              1. ftpd allways says "221 Server shutting down. Goodbye."
              2. Anonymous ftp works fine, but real users are denied
                 access
              3. ftpconversions doesn't work
              4. On-the-fly compression works, on-the-fly tarring, but
                 not both.
              5. I want to use zip compression (InfoZip)
              6. I want a real user to be able to access the host only
                 via ftp, not via telnet
              7. Somebody uploaded a file with a weird name
              8. I want anonymous users to be able to upload files, but
                 in the most secure manner possible
              9. The default umask used when a real user uploads a file
                 is wrong
             10. I heard something about 'SITE EXEC' having a security
                 hole
             11. How do I make reports more readable ?
             12. Incoming file transfers fail with SunOS and an NFS
                 mounted incoming
             13. Normal ftp clients work, Netscape ftp's fail. So,
                 passive mode doesn't work.
             14. I want to redirect anonymous users to another machine
        10. Other things
              1. Where is the FTP protocol documented ?
              2. How can I make my ftp-archive accessible by E-mail
                 (ftpmail) ?
        11. Credits

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


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 10:52:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA00511;
	Sat, 1 Nov 1997 10:44:37 -0600 (CST)
Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA07196
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 10:42:44 -0600 (CST)
Received: from mover.cvzoom.net ([208.226.154.16])
	by ns.cvzoom.net (8.8.7/8.8.7) with SMTP id LAA12560
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 11:41:34 -0500 (EST)
Message-Id: <01bce6e5$91d843e0$109ae2d0@mover.cvzoom.net>
Date: Sat, 1 Nov 1997 11:45:32 -0500
Reply-To: mfarina@cvzoom.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "michael J Farina" <mfarina@cvzoom.net>
To: <wu-ftpd@wugate.wustl.edu>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_003C_01BCE6BB.A9023BE0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

This is a multi-part message in MIME format.

------=_NextPart_000_003C_01BCE6BB.A9023BE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

UNSUBSCRIBE WU-ftpd mfarina@cvzoom.net

------=_NextPart_000_003C_01BCE6BB.A9023BE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#b8b8b8>
<DIV><FONT color=3D#000000 size=3D2>UNSUBSCRIBE WU-ftpd <A=20
href=3D"mailto:mfarina@cvzoom.net">mfarina@cvzoom.net</A></FONT></DIV></B=
ODY></HTML>

------=_NextPart_000_003C_01BCE6BB.A9023BE0--


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 12:29:33 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA25696;
	Sat, 1 Nov 1997 12:16:40 -0600 (CST)
Received: from Guard.PolyNet.Lviv.UA (Guard.PolyNet.Lviv.UA [194.44.138.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA16887
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 12:12:05 -0600 (CST)
Received: (qmail 17209 invoked from network); 1 Nov 1997 18:11:55 -0000
Received: from polynet.lviv.ua (HELO NetSurfer.lp.lviv.ua) (192.168.0.1)
  by guard.lp.lviv.ua with SMTP; 1 Nov 1997 18:11:55 -0000
Received: (from smap@localhost) by NetSurfer.lp.lviv.ua (8.8.5/8.6.12) id UAA09861; Sat, 1 Nov 1997 20:11:54 +0200 (EET)
Received: from kub.lp.lviv.ua(192.168.0.7) by NetSurfer.lp.lviv.ua via smap (V2.0beta)
	id xma009859; Sat, 1 Nov 97 20:11:53 +0200
Message-Id: <199711011811.UAA09861@NetSurfer.lp.lviv.ua>
Date: Sat, 1 Nov 1997 20:11:35 +0200
Reply-To: yd@polynet.lviv.ua
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Yaroslav Doobovyk" <yd@polynet.lviv.ua>
To: wu-ftpd@wugate.wustl.edu
Cc: yd@polynet.lviv.ua
Subject: I can't install wu-ftpd version 2-15 
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
X-pmrqc: 1
X-mailer: Pegasus Mail for Win32 (v2.54)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I install wu-ftpd on DIGITAL UNIX 3.2.

cc -O -I.. -I../support -Olimit 1000 -DUSE_LOCAL_ETC -DUSE_VAR
-DVAR_RUN -DUSE_LOG -L../support -s -x -o ftpd ftpd.o ftpcmd.o glob.o
logwtmp.o popen.o vers.o access.o  extensions.o  realpath.o acl.o
private.o authenticate.o conversions.o hostacc.o  sigfix.o -lsupport
ld: 
Unresolved: 
setluid 
set_auth_parameters 
getprpwnam 
endprpwent
bigcrypt 
*** Exit 1 Stop.

Making ftpcount.
cc -O -I.. -I../support -Olimit 1000 -DUSE_LOCAL_ETC -DUSE_VAR
-DVAR_RUN -DUSE_LOG -L../support -s -x -o ftpcount ftpcount.c vers.o
-lsupport

What that errors mean and how I can solve that
Appreciating your help and hope to hear from you soon

From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 12:34:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA13707;
	Sat, 1 Nov 1997 12:27:13 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA00931
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 12:15:09 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id NAA22626; Sat, 1 Nov 1997 13:17:41 -0500
Message-Id: <Pine.GSO.3.96.971101125456.22106A-100000@dinosaur>
Date: Sat, 1 Nov 1997 13:17:41 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: wu-ftpd@wugate.wustl.edu
Subject: guestonly is not working
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi all gurus:

I am trying to set up guestonly accounts based on the FAQ and guest-howto,
but so far anonymous account works great, but not guestonly account.

The anonymous ftp server is under /home/ftp, with all of files neccessary
for solaris2.5.1...
The guestonly accounts is under /home/web, say /home/web/guest1 and I
linked all of neccessary files to /home/ftp so I don't have copy all of
these file for every guest user:

drwxr-xr-x   3 root     other        512 Nov  1 03:59 ..
-rw-r--r--   1 root     other          0 Nov  1 04:30 .forward
-rw-r--r--   1 root     other          0 Nov  1 04:30 .rhosts
lrwxrwxrwx   1 root     other         13 Nov  1 20:47 bin -> ../../ftp/bin
lrwxrwxrwx   1 root     other         13 Nov  1 20:48 dev -> ../../ftp/dev
dr--r--r--   2 root     other        512 Nov  1 04:21 etc
lrwxrwxrwx   1 root     other         13 Nov  1 20:48 usr -> ../../ftp/usr

BUT IT DOESN'T WORK, I still have the same problem:

Name (200.156.50.10:mlu): testuser
331 Password required for testuser.
Password:
230 User testuser logged in.  Access restrictions apply.
ftp> ls -al
200 PORT command successful.
425 Can't create data socket (0.0.0.0,20): No such file or directory.
ftp> 

Any ideas?

Thanks in advance.

_ming




From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 14:48:28 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA13820;
	Sat, 1 Nov 1997 14:41:17 -0600 (CST)
Received: from josephus.furph.com (josephus.furph.com [38.154.194.160])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA20135
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 14:35:49 -0600 (CST)
Received: from localhost (beckers@localhost) by josephus.furph.com (8.8.0/8.8.0) with SMTP id PAA21029; Sat, 1 Nov 1997 15:36:39 -0500 (EST)
Message-Id: <Pine.OSF.3.95.971101153411.20904A-100000@josephus.furph.com>
Date: Sat, 1 Nov 1997 15:36:39 -0500 (EST)
Reply-To: beckers@josephus.furph.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Becki Kain <beckers@josephus.furph.com>
To: Yaroslav Doobovyk <yd@polynet.lviv.ua>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: I can't install wu-ftpd version 2-15
In-Reply-To: <199711011811.UAA09861@NetSurfer.lp.lviv.ua>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

undef SECUREOSF in config.h.  can this be added into the code?

becki

On Sat, 1 Nov 1997, Yaroslav Doobovyk wrote:

> I install wu-ftpd on DIGITAL UNIX 3.2.
> 
> cc -O -I.. -I../support -Olimit 1000 -DUSE_LOCAL_ETC -DUSE_VAR
> -DVAR_RUN -DUSE_LOG -L../support -s -x -o ftpd ftpd.o ftpcmd.o glob.o
> logwtmp.o popen.o vers.o access.o  extensions.o  realpath.o acl.o
> private.o authenticate.o conversions.o hostacc.o  sigfix.o -lsupport
> ld: 
> Unresolved: 
> setluid 
> set_auth_parameters 
> getprpwnam 
> endprpwent
> bigcrypt 
> *** Exit 1 Stop.
> 
> Making ftpcount.
> cc -O -I.. -I../support -Olimit 1000 -DUSE_LOCAL_ETC -DUSE_VAR
> -DVAR_RUN -DUSE_LOG -L../support -s -x -o ftpcount ftpcount.c vers.o
> -lsupport
> 
> What that errors mean and how I can solve that
> Appreciating your help and hope to hear from you soon
> 


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 17:28:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA14008;
	Sat, 1 Nov 1997 17:18:14 -0600 (CST)
Received: from josephus.furph.com (josephus.furph.com [38.154.194.160])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id RAA14664
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 17:13:00 -0600 (CST)
Received: from localhost (beckers@localhost) by josephus.furph.com (8.8.0/8.8.0) with SMTP id SAA26120 for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 18:14:05 -0500 (EST)
Message-Id: <Pine.OSF.3.95.971101181139.25905A-100000@josephus.furph.com>
Date: Sat, 1 Nov 1997 18:14:05 -0500 (EST)
Reply-To: beckers@josephus.furph.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Becki Kain <beckers@josephus.furph.com>
To: wu-ftpd@wugate.wustl.edu
Subject: softlinks and webpages
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'm running 15 on digial unix 4.0.  What I was hoping to do was run
virtual ftp for a bunch of different customers, and link in (soft) their
/usr/ns-home/docs directories so they can upload their own web pages.
This breaks the chrooted environment, though, right?  besides hard links,
anyone else have any ideas how to do this?

also, can virtual anonymous be done - ie:  anonymous ftp to foo.com goes
to a different directory that boo.com?

thanks

becki


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 17:50:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA02642;
	Sat, 1 Nov 1997 17:43:10 -0600 (CST)
Received: from vislab.ucr.edu (vislab.ucr.edu [138.23.170.170])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id RAA30756
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 17:40:15 -0600 (CST)
Received: from vislab (vislab [138.23.170.170])
	by vislab.ucr.edu (8.8.7/8.8.7) with SMTP id PAA19816;
	Sat, 1 Nov 1997 15:41:17 -0800 (PST)
Message-Id: <Pine.SOL.3.96.971101153549.19782A-100000@vislab>
Date: Sat, 1 Nov 1997 15:41:17 -0800 (PST)
Reply-To: mav@vislab.ucr.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Thomas Fou <mav@vislab.ucr.edu>
To: Ming Lu <mlu@privsys.gip.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: guestonly is not working
In-Reply-To: <Pine.GSO.3.96.971101125456.22106A-100000@dinosaur>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mav@vislab
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


On Sat, 1 Nov 1997, Ming Lu wrote:

> I am trying to set up guestonly accounts based on the FAQ and guest-howto,
> but so far anonymous account works great, but not guestonly account.
> 
> BUT IT DOESN'T WORK, I still have the same problem:
> 
> Name (200.156.50.10:mlu): testuser
> 331 Password required for testuser.
> Password:
> 230 User testuser logged in.  Access restrictions apply.
> ftp> ls -al
> 200 PORT command successful.
> 425 Can't create data socket (0.0.0.0,20): No such file or directory.
> ftp> 

Hello Ming,

That doesn't sound like a problem with your guest configuration.  It
sounds like a problem with the dynamically-linked ls you have in ~ftp/bin

You might want to check for the existences of the devices in ~ftp/dev/zero
and ~ftp/dev/zero.  If they are not there, use mknod to make them.  Also,
make sure you have all the correct libraries in your ~ftp/lib or
~ftp/usr/lib directory.

I hope that helps.

Regards,

_________________________________________________________________
Thomas Fou (mav@vislab.ucr.edu)
System Administrator			UC Riverside
Office: (909) 787-3954			Vis. & Intel. Systems Lab
Fax:    (909) 787-3188			Bourns Hall, B232




From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  1 21:38:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA30410;
	Sat, 1 Nov 1997 21:31:06 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA02389
	for <wu-ftpd@wugate.wustl.edu>; Sat, 1 Nov 1997 21:28:32 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id WAA02716; Sat, 1 Nov 1997 22:30:59 -0500
Message-Id: <Pine.GSO.3.96.971101222128.2487A-100000@dinosaur>
Date: Sat, 1 Nov 1997 22:30:59 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Thomas Fou <mav@vislab.ucr.edu>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: guestonly is not working
In-Reply-To: <Pine.SOL.3.96.971101153549.19782A-100000@vislab>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Thanks Thomas. Here is the contents in /home/ftp/dev:

# ls -al
total 4
dr-xr-xr-x   2 root     other        512 Oct 30 02:52 .
drwxrwxrwx   7 root     other        512 Oct 30 04:19 ..
crw-rw-rw-   1 root     other     11, 42 Oct 30 02:52 tcp
crw-rw-rw-   1 root     other    105,  1 Oct 30 02:52 ticotsord
crw-rw-rw-   1 root     other     11, 41 Oct 30 02:52 udp
crw-rw-rw-   1 root     other     13, 12 Oct 30 02:52 zero

Here is from /home/ftp/usr/lib:

# ls -al
total 3266
dr-xr-xr-x   2 root     other       1024 Oct 30 02:52 .
dr-xr-xr-x   5 root     other        512 Nov  1 18:30 ..
-r-xr-xr-x   1 root     other      24576 Oct 30 02:52 ld.so
-r-xr-xr-x   1 root     other     137160 Oct 30 02:52 ld.so.1
lrwxrwxrwx   1 root     other         11 Oct 30 02:52 libc.so ->
./libc.so.1
-r-xr-xr-x   1 root     other     664760 Oct 30 02:52 libc.so.1
lrwxrwxrwx   1 root     other         12 Oct 30 02:52 libdl.so ->
./libdl.so.1
-r-xr-xr-x   1 root     other       2564 Oct 30 02:52 libdl.so.1
lrwxrwxrwx   1 root     other         14 Oct 30 02:52 libintl.so ->
./libintl.so.1
-r-xr-xr-x   1 root     other      15720 Oct 30 02:52 libintl.so.1
lrwxrwxrwx   1 root     other         13 Oct 30 02:52 libnsl.so ->
./libnsl.so.1
-r-xr-xr-x   1 root     other     571472 Oct 30 02:52 libnsl.so.1
lrwxrwxrwx   1 root     other         16 Oct 30 02:52 libsocket.so ->
./libsocket.so.1
-r-xr-xr-x   1 root     other      68780 Oct 30 02:52 libsocket.so.1
lrwxrwxrwx   1 root     other         11 Oct 30 02:52 libw.so ->
./libw.so.1
-r-xr-xr-x   1 root     other      39932 Oct 30 02:52 libw.so.1
lrwxrwxrwx   1 root     other         14 Oct 30 02:52 nss_dns.so ->
./nss_dns.so.1
-r-xr-xr-x   1 root     other       9324 Oct 30 02:52 nss_dns.so.1
lrwxrwxrwx   1 root     other         16 Oct 30 02:52 nss_files.so ->
./nss_files.so.1
-r-xr-xr-x   1 root     other      21144 Oct 30 02:52 nss_files.so.1
lrwxrwxrwx   1 root     other         14 Oct 30 02:52 nss_nis.so ->
./nss_nis.so.1
-r-xr-xr-x   1 root     other      24404 Oct 30 02:52 nss_nis.so.1
lrwxrwxrwx   1 root     other         18 Oct 30 02:52 nss_nisplus.so ->
./nss_nisplus.so.1
-r-xr-xr-x   1 root     other      28844 Oct 30 02:52 nss_nisplus.so.1
lrwxrwxrwx   1 root     other         14 Oct 30 02:52 straddr.so ->
./straddr.so.2
-r-xr-xr-x   1 root     other       9312 Oct 30 02:52 straddr.so.2

I just linked /home/web/testuser/dev to /home/ftp/dev,
/home/web/testuser/usr/lib to /home/ftp/usr/lib.

I read through the man page of ftpd (solaris 2.5.1), and did not see
I did anything wrong...Did I miss something?

Best Regards

_ming

On Sat, 1 Nov 1997, Thomas Fou wrote:

->
->On Sat, 1 Nov 1997, Ming Lu wrote:
->
->> I am trying to set up guestonly accounts based on the FAQ and guest-howto,
->> but so far anonymous account works great, but not guestonly account.
->> 
->> BUT IT DOESN'T WORK, I still have the same problem:
->> 
->> Name (200.156.50.10:mlu): testuser
->> 331 Password required for testuser.
->> Password:
->> 230 User testuser logged in.  Access restrictions apply.
->> ftp> ls -al
->> 200 PORT command successful.
->> 425 Can't create data socket (0.0.0.0,20): No such file or directory.
->> ftp> 
->
->Hello Ming,
->
->That doesn't sound like a problem with your guest configuration.  It
->sounds like a problem with the dynamically-linked ls you have in ~ftp/bin
->
->You might want to check for the existences of the devices in ~ftp/dev/zero
->and ~ftp/dev/zero.  If they are not there, use mknod to make them.  Also,
->make sure you have all the correct libraries in your ~ftp/lib or
->~ftp/usr/lib directory.
->
->I hope that helps.
->
->Regards,
->
->_________________________________________________________________
->Thomas Fou (mav@vislab.ucr.edu)
->System Administrator			UC Riverside
->Office: (909) 787-3954			Vis. & Intel. Systems Lab
->Fax:    (909) 787-3188			Bourns Hall, B232
->




From owner-wu-ftpd@wugate.wustl.edu  Sun Nov  2 10:33:48 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA15030;
	Sun, 2 Nov 1997 10:26:25 -0600 (CST)
Received: from gemini.yars.free.net (gemini.yars.free.net [193.233.192.17])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA02614
	for <wu-ftpd@wugate.wustl.edu>; Sun, 2 Nov 1997 10:23:39 -0600 (CST)
Received: (from gray@localhost)
          by gemini.yars.free.net (8.8.6/8.8.4)
	  id TAA01443; Sun, 2 Nov 1997 19:21:47 +0300 (MSK)
Message-Id: <199711021621.TAA01443@gemini.yars.free.net>
Date: Sun, 2 Nov 1997 19:21:47 +0300 (MSK)
Reply-To: gray@yars.free.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Serge Bezzubov <gray@yars.free.net>
To: mlu@privsys.gip.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: guestonly is not working
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-MD5: boqcai+yjWBxFyPxuBSKCg==
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

A guest user is chrooted as anonymous, so you just can't link all that stuff from outside
of chrooted environment.
In order to make sure, copy ~ftp/bin dev etc usr/lib to your test dir, login via ftp and type pwd.
 
> ->> I am trying to set up guestonly accounts based on the FAQ and guest-howto,
> ->> but so far anonymous account works great, but not guestonly account.
> ->> 
> ->> BUT IT DOESN'T WORK, I still have the same problem:
> ->> 
> ->> Name (200.156.50.10:mlu): testuser
> ->> 331 Password required for testuser.
> ->> Password:
> ->> 230 User testuser logged in.  Access restrictions apply.
> ->> ftp> ls -al
> ->> 200 PORT command successful.
> ->> 425 Can't create data socket (0.0.0.0,20): No such file or directory.
> ->> ftp> 
> ->
> ->Hello Ming,
> ->
> ->That doesn't sound like a problem with your guest configuration.  It
> ->sounds like a problem with the dynamically-linked ls you have in ~ftp/bin
> ->
> ->You might want to check for the existences of the devices in ~ftp/dev/zero
> ->and ~ftp/dev/zero.  If they are not there, use mknod to make them.  Also,
> ->make sure you have all the correct libraries in your ~ftp/lib or
> ->~ftp/usr/lib directory.
> ->
> ->I hope that helps.
> ->
> ->Regards,
> ->
> ->_________________________________________________________________
> ->Thomas Fou (mav@vislab.ucr.edu)
> ->System Administrator			UC Riverside
> ->Office: (909) 787-3954			Vis. & Intel. Systems Lab
> ->Fax:    (909) 787-3188			Bourns Hall, B232
> ->
> 
> 
> 

From owner-wu-ftpd@wugate.wustl.edu  Sun Nov  2 17:27:12 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA15262;
	Sun, 2 Nov 1997 17:19:48 -0600 (CST)
Received: from optima.cs.arizona.edu (optima.CS.Arizona.EDU [192.12.69.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id RAA12192
	for <wu-ftpd@wugate.wustl.edu>; Sun, 2 Nov 1997 17:15:13 -0600 (CST)
Received: from lectura.CS.Arizona.EDU (lectura.CS.Arizona.EDU [192.12.69.186])
	by optima.cs.arizona.edu (8.8.7/8.8.7) with ESMTP id QAA15929;
	Sun, 2 Nov 1997 16:15:11 -0700 (MST)
Received: from localhost (localhost [127.0.0.1])
	by lectura.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA09344;
	Sun, 2 Nov 1997 16:15:06 -0700 (MST)
Message-Id: <Pine.SOL.3.95.971102160939.6447B-100000@lectura.CS.Arizona.EDU>
Date: Sun, 2 Nov 1997 16:15:05 -0700 (MST)
Reply-To: Jim Davis <jdavis@CS.Arizona.EDU>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jim Davis <jdavis@CS.Arizona.EDU>
To: Mark Rogov <Mark@glass.i3tele.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Virtual Ftp under Solaris and posibly SunOS
In-Reply-To: <A19422794B10D111AE0F44A26A000000014E64@glass.i3tele.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, 31 Oct 1997, Mark Rogov wrote:

> Lets consider Solaris 2.5.2. I have ftpaccess file and passwd configured
                        2.5.1 ?
> so user directory would be chrooted after login. Works fine.

> 
> I'd like to move /bin, /dev, /usr/lib to a permanent location (one place
> instead of every ftp acct dir), so everyone would be able to use them,
> yet /pub (or in this case /..) would get chrooted.
> 
> Is that possible? If yes, how?

Look into loopback mounts (man lofs).  You can then just mount the library
stuff, etc.  under each chrooted directory, with only one copy of libc.so
and friends on disk

You can make the loopback mounts read-only, which adds a little extra
security too. 


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 00:02:53 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA28020;
	Sun, 2 Nov 1997 23:55:31 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA02825
	for <wu-ftpd@wugate.wustl.edu>; Sun, 2 Nov 1997 23:48:01 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id AAA05678; Mon, 3 Nov 1997 00:48:36 -0500
Message-Id: <Pine.GSO.3.96.971103004005.5494A-100000@dinosaur>
Date: Mon, 3 Nov 1997 00:48:36 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Serge Bezzubov <gray@yars.free.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: guestonly is not working
In-Reply-To: <199711021621.TAA01443@gemini.yars.free.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Thanks Serge:

IT WORKED!!! It helped me to understand chroot more...

This raise another question:
if I have a thousand guestonly users, does that mean I have to make a
thousand copies of files in dev/* and usr/lib/*?

Best Regards

_ming

On Sun, 2 Nov 1997, Serge Bezzubov wrote:

->A guest user is chrooted as anonymous, so you just can't link all that stuff from outside
->of chrooted environment.
->In order to make sure, copy ~ftp/bin dev etc usr/lib to your test dir, login via ftp and type pwd.
-> 
->> ->> I am trying to set up guestonly accounts based on the FAQ and guest-howto,
->> ->> but so far anonymous account works great, but not guestonly account.
->> ->> 
->> ->> BUT IT DOESN'T WORK, I still have the same problem:
->> ->> 
->> ->> Name (200.156.50.10:mlu): testuser
->> ->> 331 Password required for testuser.
->> ->> Password:
->> ->> 230 User testuser logged in.  Access restrictions apply.
->> ->> ftp> ls -al
->> ->> 200 PORT command successful.
->> ->> 425 Can't create data socket (0.0.0.0,20): No such file or directory.
->> ->> ftp> 
->> ->
->> ->Hello Ming,
->> ->
->> ->That doesn't sound like a problem with your guest configuration.  It
->> ->sounds like a problem with the dynamically-linked ls you have in ~ftp/bin
->> ->
->> ->You might want to check for the existences of the devices in ~ftp/dev/zero
->> ->and ~ftp/dev/zero.  If they are not there, use mknod to make them.  Also,
->> ->make sure you have all the correct libraries in your ~ftp/lib or
->> ->~ftp/usr/lib directory.
->> ->
->> ->I hope that helps.
->> ->
->> ->Regards,
->> ->
->> ->_________________________________________________________________
->> ->Thomas Fou (mav@vislab.ucr.edu)
->> ->System Administrator			UC Riverside
->> ->Office: (909) 787-3954			Vis. & Intel. Systems Lab
->> ->Fax:    (909) 787-3188			Bourns Hall, B232
->> ->



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 04:04:02 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id DAA09309;
	Mon, 3 Nov 1997 03:56:21 -0600 (CST)
Received: from volans.senbvs43.uni-bremen.de (inter.senbvs43.uni-bremen.de [134.102.148.129])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id DAA16692
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 03:48:58 -0600 (CST)
Received: from camelopardalis.hb.dlm (muewi@camelopardalis.hb.dlm [194.59.46.129])
	by volans.senbvs43.uni-bremen.de (8.8.5/8.8.5) with ESMTP id KAA28787;
	Mon, 3 Nov 1997 10:41:21 +0100 (MET)
Received: (from muewi@localhost)
	by camelopardalis.hb.dlm (8.8.5/8.8.5) id KAA22725;
	Mon, 3 Nov 1997 10:51:45 +0100 (MET)
Message-Id: <199711030951.KAA22725@camelopardalis.hb.dlm>
Date: Mon, 3 Nov 1997 10:51:45 +0100 (MET)
Reply-To: muewi@hb.senbvs43.uni-bremen.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Wilhelm Mueller <muewi@hb.senbvs43.uni-bremen.de>
To: spoier@swiss.direct.ca
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Solaris crashing...
In-Reply-To: <19971029131004.65033@swiss.direct.ca>
References: <19971029131004.65033@swiss.direct.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: VM 6.33 under 19.15 XEmacs Lucid
X-Face: $|X&9#GV6Mxco.=Ka^Rk#tNk?uN"Fu+n:4l6:$kgF3HmaKO@Rvg0TOyzB3Zu:utcgmGH<2]
 {o>(KO4M'.>Wz*+>FoeL3Y8-
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 1997-10-29 13:10:04 -0800, <spoier@swiss.direct.ca>
Skye Merlin Poier felt compelled to utter:

 > Hello!
 > 
 > Having a bizarre problem with wu-ftpd under Solaris 2.5.1 - I modified the
 > pathnames.h to suit my needs and did a 'build sol' and copied the binaries

 > [...]

 > I can connect fine, transfer files, but as soon as I close the session the
 > server reboots!  Testing with the exact same configuration, binaries, inetd
 > config on a Solaris 2.6 box, works fine, no crash.


There is a known problem with the Solaris kernel up to 2.5.1 if you
use file locking on an NFS mounted file system in a chroot()ed
environment and some network devices are missing in the .../dev of the
chroot()ed file tree.  (Solaris Bug Id 1248041--quite a lot of
preconditions for the bug to show up, but it does show up quite
often because of the wide-spread use of wu-ftpd)

It has been solved in 2.6 (probably because they did a complete
rewrite of their networking code, anyhow).


To circumvent the problem you just need to include this device in the
dev subdirectory of the chroot() destination:

crw-rw-rw-   1 root     root     105,  2 Feb 21  1997 ticlts

(Protection and major/minor numbers copied from system's /dev, check
them on your system.)


 -- Wilhelm

Maybe that should be added to the guest setup FAQ



--

  ***************************************************
   Der Senator für Bau, Verkehr und Stadtentwicklung
   Referat 43            (Dienststelle Schlachte 32)
   Wilhelm Müller             Tel: +49-421-361-10629
   Ansgaritorstraße 2         Fax: +49-421-361-2295
   D-28195 Bremen, Germany

   Bits KeyID    Fingerprint
   2048 C2F0A2D1 B1452644 DEBB647F 94AA3DA9 01608E0A
   1024 9548B531 AE9AD94C 978ABC3F 4B25B52B 1E752137
    512 48B324ED 885C3131 DDF53740 DB7F9421 2A5431EE

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 09:03:55 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA30858;
	Mon, 3 Nov 1997 08:54:02 -0600 (CST)
Received: from optima.cs.arizona.edu (optima.CS.Arizona.EDU [192.12.69.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA03557
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 08:48:26 -0600 (CST)
Received: from lectura.CS.Arizona.EDU (lectura.CS.Arizona.EDU [192.12.69.186])
	by optima.cs.arizona.edu (8.8.7/8.8.7) with ESMTP id HAA03577;
	Mon, 3 Nov 1997 07:48:24 -0700 (MST)
Received: from localhost (localhost [127.0.0.1])
	by lectura.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id HAA22389;
	Mon, 3 Nov 1997 07:48:24 -0700 (MST)
Message-Id: <Pine.SOL.3.95.971103074526.22082A-100000@lectura.CS.Arizona.EDU>
Date: Mon, 3 Nov 1997 07:48:23 -0700 (MST)
Reply-To: jdavis@CS.Arizona.EDU
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jim Davis <jdavis@CS.Arizona.EDU>
To: Ming Lu <mlu@privsys.gip.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: guestonly is not working
In-Reply-To: <Pine.GSO.3.96.971103004005.5494A-100000@dinosaur>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, 3 Nov 1997, Ming Lu wrote:

> if I have a thousand guestonly users, does that mean I have to make a
> thousand copies of files in dev/* and usr/lib/*?

No.  Isn't this in the FAQ by now?  Use hard links (if everything is on
the same filesystem) or since you're on Solaris, use loopback mounts.  See
the lofs man page for details.


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 09:27:06 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25152;
	Mon, 3 Nov 1997 09:18:45 -0600 (CST)
Received: from dustas.aswell.com (dustas.aswell.com [206.31.12.38])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA31948
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 09:18:22 -0600 (CST)
Received: from pmwill4-9.csrlink.net by dustas.aswell.com id aa03775;
          3 Nov 97 10:18 EST
Message-Id: <9711031018.aa03775@dustas.aswell.com>
Date: Mon, 3 Nov 1997 10:16:34 -0500
Reply-To: msmith@sgii.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Matthew Smith <msmith@sgii.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Broken pipe's
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello.
We have been running a slightly modified wu-ftpd 2.4 for about a year on a
Sun Ultra-2 running Solaris 2.5.1.  Our clients are all Win95 or NT. 
Within the last month or so, I have noticed an increasing number of the
following error messages in the system log:

Nov  3 10:07:59 bebub ftpd[5240]: setsockopt (SO_OOBINLINE): Broken pipe
Nov  3 10:07:59 bebub ftpd[5240]: fcntl F_SETOWN: Broken pipe

I don't remember ever seeing these messages before then.  The number of
clients accessing the server has been increasing over the past year as
well.  Can someone tell me what could be causing this?

Thanks.

Matthew Smith


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 10:13:12 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA30028;
	Mon, 3 Nov 1997 10:03:57 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA27489
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 10:01:52 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id RAA08704
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 17:01:39 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Mon, 3 Nov 1997 18:11:57 +0200
Message-Id: <01bce872$537084d0$03c27ac2@pcos.cinetic.de>
Date: Mon, 3 Nov 1997 17:05:38 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <msmith@sgii.com>, "wu-ftpd" <wu-ftpd@wugate.wustl.edu>
Subject: Re: Broken pipe's
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


I'm not a wu-ftpd expert, but broken pipes are usually being received by
programs
when a socket connection is being abnormally closed (the other side breaks away
by cutting off the connection). With an increasing number of users which
usually behave
in many different ways that might well be the cause of the increasing number of
log
entries.

Oliver


-----Ursprüngliche Nachricht-----
Von: Matthew Smith <msmith@sgii.com>
An: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Datum: Montag, 3. November 1997 16:34
Betreff: Broken pipe's


>Hello.
>We have been running a slightly modified wu-ftpd 2.4 for about a year on a
>Sun Ultra-2 running Solaris 2.5.1.  Our clients are all Win95 or NT.
>Within the last month or so, I have noticed an increasing number of the
>following error messages in the system log:
>
>Nov  3 10:07:59 bebub ftpd[5240]: setsockopt (SO_OOBINLINE): Broken pipe
>Nov  3 10:07:59 bebub ftpd[5240]: fcntl F_SETOWN: Broken pipe
>
>I don't remember ever seeing these messages before then.  The number of
>clients accessing the server has been increasing over the past year as
>well.  Can someone tell me what could be causing this?
>
>Thanks.
>
>Matthew Smith
>


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 11:09:01 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA14100;
	Mon, 3 Nov 1997 11:01:12 -0600 (CST)
Received: from thunderbird.crystal.core.hu (thunderbird.crystal.core.hu [193.224.138.66])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA08317
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 10:55:12 -0600 (CST)
Received: (from zsolt@localhost)
	by thunderbird.crystal.core.hu (8.8.7/8.8.7) id SAA04633;
	Mon, 3 Nov 1997 18:31:56 +0100 (MET)
Message-Id: <Pine.OSF.3.91.971103182235.4363F-100000@thunderbird.crystal.core.hu>
Date: Mon, 3 Nov 1997 18:31:55 +0100 (MET)
Reply-To: zsolt@thunderbird.crystal.core.hu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kis Zsolt <zsolt@thunderbird.crystal.core.hu>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Makefile error in wu-ftpd-2.4.2-beta-15 for OSF/1 ?
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I downloaded wu-ftpd-2.4.2-beta-15 source code, and tried to build it.
I obtained the following messages:

make args are : 
make opts are : 

Linking Makefiles.

Making support library.
cc -O   -c getusershell.c
cc -O   -c fnmatch.c
cc -O   -c strcasestr.c
cc -O   -c strerror.c
cc -O   -c strsep.c
cc -O   -c authuser.c
cc -O   -c snprintf.c
rm -f libsupport.a
ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strerror.o  
strsep.o authuser.o snprintf.o
ranlib libsupport.a
s - creating symbol hash table. Wait...

Making ftpd.
Make: Makefile: Must be a separator on line 44.  Stop.

Making ftpcount.
Make: Makefile: Must be a separator on line 44.  Stop.

Making ftpshut.
Make: Makefile: Must be a separator on line 44.  Stop.

Making ckconfig.
Make: Makefile: Must be a separator on line 44.  Stop.

Links to executables are in bin directory:
size: cannot open bin/ftpd
size: cannot open bin/ftpcount
size: cannot open bin/ftpshut
size: cannot open bin/ftpwho
size: cannot open bin/ckconfig
Done

What can be the problem? I have OSF/1 v2.0
Zsolt Kis


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 11:23:43 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA06642;
	Mon, 3 Nov 1997 11:15:05 -0600 (CST)
Received: from att.com (cagw1.att.com [192.128.52.89])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA12079
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 11:08:12 -0600 (CST)
Received: by cagw1.att.com; Mon Nov  3 12:02 EST 1997
Received: from lynxhub.lz.att.com ([135.25.204.10])
	by caig1.att.att.com (AT&T/GW-1.0) with SMTP id LAA23736
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 11:59:16 -0500 (EST)
Received: from ROGERH ([135.25.200.159]) by lynxhub.lz.att.com (5.x/EMS-1.2 sol2)
	id AA22177; Mon, 3 Nov 1997 12:05:25 -0500
Received: by ROGERH with Microsoft Mail
	id <01BCE851.7C72E1F0@ROGERH>; Mon, 3 Nov 1997 12:10:33 -0500
Message-Id: <01BCE851.7C72E1F0@ROGERH>
Date: Mon, 3 Nov 1997 12:10:32 -0500
Reply-To: rah@lynxhub.lz.att.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Roger A. Hanke" <rah@lynxhub.lz.att.com>
To: "'Chris Brown'" <chrisb@siggy.iceonline.com>
Cc: "'WUFTPD List'" <wu-ftpd@wugate.wustl.edu>
Subject: RE: wuftpd file locks
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Chris,
 Wanted to ask a couple more questions on this file locking issue since
I am now running enough of a load that the fcntl syslog error is being 
seen routinely.

 Reading into your response below it almost sounds like the fcntl being
done is a write lock just because the pid file needs to be written. But all
other files only require a read lock as far as I know. Wouldnt just putting
a write lock on the pid file, and using read locks on any other configuration
files being read, minimize this contention window at least?

 Did you ever come up with a better approach for this whole process?
	Thanx,
	Roger Hanke  

----------
From: 	Chris Brown[SMTP:chrisb@siggy.iceonline.com]
Sent: 	Thursday, May 01, 1997 6:17 PM
To: 	Roger A. Hanke
Subject: 	Re: wuftpd falling over

> 
> Chris,
>  A little confused by this. Since WUFTPD startup only requires read
> access to its configuration files, why would it be locking them?

It does lock them since it also needs to read/write the .pid files in a safe
way.

> And even more concerned after seeing Alain's response. What is the max 
> number you have been able to support, hopefully more than a 100?

This _really_ depends.  If your ftp server is serving up many small files to
MSIE users, 100 is about max.  On my server, people download large files (1+
megs) so I can support more.  Even so, there is a limit, and it's not
terribly large.

Chris...

> ----------
> From:  Chris Brown[SMTP:chrisb@siggy.iceonline.com]
> Sent:  Tuesday, April 29, 1997 1:04 PM
> To:  wu-ftpd@wugate.wustl.edu
> Subject:  Re: wuftpd falling over
> 
> > I have heard rumours that wu-ftpd falls over when you have about 3000
> > people using it. Is this true. If so what can I use.
> > 
> > Or can I fix it
> 
> This is probably true 'cause wuftpd depends on locking a file in order to
> get its access information.  With thousands of users I would expect wuftpd
> to effectively deadlock.  I had been putting some work into a more reliable
> method of doing this but I'm not on the developement team so anything I do
> isn't likely to be incorperated into any release.
> 
> Chris...
> 
> 





From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 11:30:54 1997
Received: from relay6.UU.NET by relay6.UU.NET with ESMTP 
	(peer crosschecked as: root@localhost)
	id QQdocc23603; Mon, 3 Nov 1997 12:30:13 -0500 (EST)
Received: from wugate.wustl.edu by relay6.UU.NET with ESMTP 
	(peer crosschecked as: wugate.wustl.edu [128.252.120.1])
	id QQdocc23581; Mon, 3 Nov 1997 12:30:08 -0500 (EST)
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA24286;
	Mon, 3 Nov 1997 11:21:27 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA26332
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 11:12:04 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id SAA15844
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 18:12:02 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Mon, 3 Nov 1997 19:22:21 +0200
Message-Id: <01bce87c$28b04280$03c27ac2@pcos.cinetic.de>
Date: Mon, 3 Nov 1997 18:16:01 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <zsolt@thunderbird.crystal.core.hu>, "wu-ftpd" <wu-ftpd@wugate.wustl.edu>
Subject: Re: Makefile error in wu-ftpd-2.4.2-beta-15 for OSF/1 ?
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Those errors are usually caused by spaces instead of tabs as first
characters in the rules of a makefile. Replace the spaces in the first columns
of line 44 with a tab character and it should compile fine.


Oliver


-----Ursprüngliche Nachricht-----
Von: Kis Zsolt <zsolt@thunderbird.crystal.core.hu>
An: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Datum: Montag, 3. November 1997 18:17
Betreff: Makefile error in wu-ftpd-2.4.2-beta-15 for OSF/1 ?


>I downloaded wu-ftpd-2.4.2-beta-15 source code, and tried to build it.
>I obtained the following messages:
>
>make args are :
>make opts are :
>
>Linking Makefiles.
>
>Making support library.
>cc -O   -c getusershell.c
>cc -O   -c fnmatch.c
>cc -O   -c strcasestr.c
>cc -O   -c strerror.c
>cc -O   -c strsep.c
>cc -O   -c authuser.c
>cc -O   -c snprintf.c
>rm -f libsupport.a
>ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strerror.o
>strsep.o authuser.o snprintf.o
>ranlib libsupport.a
>s - creating symbol hash table. Wait...
>
>Making ftpd.
>Make: Makefile: Must be a separator on line 44.  Stop.
>
>Making ftpcount.
>Make: Makefile: Must be a separator on line 44.  Stop.
>
>Making ftpshut.
>Make: Makefile: Must be a separator on line 44.  Stop.
>
>Making ckconfig.
>Make: Makefile: Must be a separator on line 44.  Stop.
>
>Links to executables are in bin directory:
>size: cannot open bin/ftpd
>size: cannot open bin/ftpcount
>size: cannot open bin/ftpshut
>size: cannot open bin/ftpwho
>size: cannot open bin/ckconfig
>Done
>
>What can be the problem? I have OSF/1 v2.0
>Zsolt Kis
>


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 11:49:21 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA14409;
	Mon, 3 Nov 1997 11:40:03 -0600 (CST)
Received: from thunderbird.crystal.core.hu (thunderbird.crystal.core.hu [193.224.138.66])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA02832
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 11:30:04 -0600 (CST)
Received: (from zsolt@localhost)
	by thunderbird.crystal.core.hu (8.8.7/8.8.7) id TAA04761;
	Mon, 3 Nov 1997 19:29:36 +0100 (MET)
Message-Id: <Pine.OSF.3.91.971103192707.4363J-100000@thunderbird.crystal.core.hu>
Date: Mon, 3 Nov 1997 19:29:35 +0100 (MET)
Reply-To: zsolt@thunderbird.crystal.core.hu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kis Zsolt <zsolt@thunderbird.crystal.core.hu>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Re: Makefile error in wu-ftpd-2.4.2-beta-15 for OSF/1 ?
In-Reply-To: <01bce87c$28b04280$03c27ac2@pcos.cinetic.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by wugate.wustl.edu id LAA21117
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I put \t but nothing happened, the scatch from the Makefile is:
44  vers.o:         vers.c
45                  ${CC} ${CFLAGS} -c vers.c
46
 What is the problem, with these lines?
Zsolt Kis


On Mon, 3 Nov 1997, Oliver Stoll wrote:

> 
> Those errors are usually caused by spaces instead of tabs as first
> characters in the rules of a makefile. Replace the spaces in the first columns
> of line 44 with a tab character and it should compile fine.
> 
> 
> Oliver
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Kis Zsolt <zsolt@thunderbird.crystal.core.hu>
> An: wu-ftpd <wu-ftpd@wugate.wustl.edu>
> Datum: Montag, 3. November 1997 18:17
> Betreff: Makefile error in wu-ftpd-2.4.2-beta-15 for OSF/1 ?
> 
> 
> >I downloaded wu-ftpd-2.4.2-beta-15 source code, and tried to build it.
> >I obtained the following messages:
> >
> >make args are :
> >make opts are :
> >
> >Linking Makefiles.
> >
> >Making support library.
> >cc -O   -c getusershell.c
> >cc -O   -c fnmatch.c
> >cc -O   -c strcasestr.c
> >cc -O   -c strerror.c
> >cc -O   -c strsep.c
> >cc -O   -c authuser.c
> >cc -O   -c snprintf.c
> >rm -f libsupport.a
> >ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strerror.o
> >strsep.o authuser.o snprintf.o
> >ranlib libsupport.a
> >s - creating symbol hash table. Wait...
> >
> >Making ftpd.
> >Make: Makefile: Must be a separator on line 44.  Stop.
> >
> >Making ftpcount.
> >Make: Makefile: Must be a separator on line 44.  Stop.
> >
> >Making ftpshut.
> >Make: Makefile: Must be a separator on line 44.  Stop.
> >
> >Making ckconfig.
> >Make: Makefile: Must be a separator on line 44.  Stop.
> >
> >Links to executables are in bin directory:
> >size: cannot open bin/ftpd
> >size: cannot open bin/ftpcount
> >size: cannot open bin/ftpshut
> >size: cannot open bin/ftpwho
> >size: cannot open bin/ckconfig
> >Done
> >
> >What can be the problem? I have OSF/1 v2.0
> >Zsolt Kis
> >
> 

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 11:53:34 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA18916;
	Mon, 3 Nov 1997 11:46:20 -0600 (CST)
Received: from head-cfa (head-cfa.harvard.edu [131.142.41.8])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA20781
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 11:40:46 -0600 (CST)
Received: from paris by head-cfa (SMI-8.6/SMI-SVR4)
	id MAA16054; Mon, 3 Nov 1997 12:40:35 -0500
Received: from localhost by paris (SMI-8.6/SMI-SVR4)
	id MAA06272; Mon, 3 Nov 1997 12:40:34 -0500
Message-Id: <Pine.SOL.3.96.971103102241.6142F-100000@paris>
Date: Mon, 3 Nov 1997 12:40:33 -0500 (EST)
Reply-To: Padmanabhan Ramadurai <durai@head-cfa.harvard.edu>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Padmanabhan Ramadurai <durai@head-cfa.harvard.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: Anonymous FTP Service / Time Stamp problem
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: durai@paris
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Hi 

I'm finding an interesting problem with wu-ftp anonymous ftp server
software. The following is the version information.

OS:              Solaris 2.5.1
wu-ftpd version: wu-2.4 (Version wu-2.4(3) Wed Sep 17 12:55:01 EDT 1997)

When I copy/move files into the anonymous-ftp area and look at the
files thru ftpd ( by logging in as anonymous user and ls -l ), I see the
file's time stamp shows incorrect information. The file is timestamped
current time (copied/moved time) + 5 hrs. Incidentally, my local timetime
is EST (GMT-5hrs). The problem is not exhibited if I look at the files
thru ftpd by logging in as valid local user. Ofcourse, this problem
with time is not there for unix. Reboot did not fix this problem.

I'm 99.99% sure that this problem was not there all the time. But...
No configuration change was done to the wu-ftpd server software recently.
Has it got something to do with recent change from/to Daylight saving
period (just a wild guess)?

Any help/pointers will be greatly appreciated.
thanks in advance.
P.Ramadurai



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 13:13:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA22601;
	Mon, 3 Nov 1997 13:02:52 -0600 (CST)
Received: from info.usaid.gov (gaia.info.usaid.gov [198.76.84.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA24509
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 12:55:51 -0600 (CST)
Received: from bugs (bugs [198.76.84.2])
          by info.usaid.gov (8.8.4/8.8.4) with SMTP
	  id NAA20943; Mon, 3 Nov 1997 13:55:41 -0500 (EST)
Message-Id: <3.0.3.32.19971103135401.02e5c980@gaia.info.usaid.gov>
Date: Mon, 03 Nov 1997 13:54:01 -0500
Reply-To: dhenry@info.usaid.gov
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Daniel Henry <dhenry@info.usaid.gov>
To: wu-ftpd@wugate.wustl.edu
Cc: Padmanabhan Ramadurai <durai@head-cfa.harvard.edu>
Subject: Re: Anonymous FTP Service / Time Stamp problem
In-Reply-To: <Pine.SOL.3.96.971103102241.6142F-100000@paris>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: dhenry@gaia.info.usaid.gov
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Try the WU-FTPD FAQ,  it's at the WU-FTPD Web page:
  http://www.landfield.com/wu-ftpd/

>From the FAQ (I think your question is in #8,  
but it refers to #7,  so I include both here):
===================================================
7.The timezone in the xferlog is wrong 

Either, you compiled with support for setting the process title (SPT_TYPE)
on a
machine that doesn't support this, where changing the process title
clobbers the environment and therefore zaps the TZ variable. Recompile with
SPT_TYPE set
to SPT_NONE. 

Systems which don't support SPT_TYPE : Aix, SGI Irix 

Or, you need to copy the zoneinfo files to the ~ftp tree too. These are : 

        /etc/TIMEZONE
        /etc/default/init
        /usr/share/lib/zoneinfo/..

The name of the correct file in /usr/share/lib/zoneinfo depends on
your current timezone. Exact filenames depend on your operating system too.
See
the manpages for timezone(4) and zic(1M). 

8.The timezone in the ls output is wrong 

See above, but also check if your system needs /etc/default/init (Solaris
2.5 for example) for setting the correct TZ variable. This file has to be
in chrooted
environments too then. 

Noted by Francois Belanger (francois@goltier.com). 
===================================================


At 12:40 PM 11/3/97 -0500, you wrote:
>
>Hi 
>
>I'm finding an interesting problem with wu-ftp anonymous ftp server
>software. The following is the version information.
>
>OS:              Solaris 2.5.1
>wu-ftpd version: wu-2.4 (Version wu-2.4(3) Wed Sep 17 12:55:01 EDT 1997)
>
>When I copy/move files into the anonymous-ftp area and look at the
>files thru ftpd ( by logging in as anonymous user and ls -l ), I see the
>file's time stamp shows incorrect information. The file is timestamped
>current time (copied/moved time) + 5 hrs. Incidentally, my local timetime
>is EST (GMT-5hrs). The problem is not exhibited if I look at the files
>thru ftpd by logging in as valid local user. Ofcourse, this problem
>with time is not there for unix. Reboot did not fix this problem.
>
>I'm 99.99% sure that this problem was not there all the time. But...
>No configuration change was done to the wu-ftpd server software recently.
>Has it got something to do with recent change from/to Daylight saving
>period (just a wild guess)?
>
>Any help/pointers will be greatly appreciated.
>thanks in advance.
>P.Ramadurai
>
>
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Daniel Henry       U.S. Agency for International Development
Ph: 703.875.1207   Internet Data Services
Fx: 703.875.1718   <dhenry@info.usaid.gov>

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 14:39:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA29299;
	Mon, 3 Nov 1997 14:29:50 -0600 (CST)
Received: from dragon.photronics.com (dragon.photronics.com [207.77.140.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA15813
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 14:25:33 -0600 (CST)
Received: by dragon.photronics.com; (5.65v3.2/1.3/10May95) id AA02629; Mon, 3 Nov 1997 12:25:32 -0800
Received: from st-peter.dallas.photronics.com by m4300.photronics.com with SMTP;
          Mon, 3 Nov 1997 12:24:32 -0800 (PST)
Received: from pmvax5.dallas.photronics.com by st-peter.dallas.photronics.com with SMTP;
          Mon, 3 Nov 1997 14:23:02 -0600 (CST)
Received: from dallas.photronics.com ([172.16.32.16]) by pmvax5.dallas.photronics.com with SMTP;
          Mon, 3 Nov 1997 14:22:59 -0600 (CST)
Message-Id: <345E3289.DAE3507D@dallas.photronics.com>
Date: Mon, 03 Nov 1997 14:22:33 -0600
Reply-To: kpatton@dallas.photronics.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Keith Patton <kpatton@dallas.photronics.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Question concerning realpath.c
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: kpatton@photronics.com
X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 5.5.1 sun4u)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi all,

    While doing a few modifications for additional security
in the ftpd.c code,   I found that the routine 'realpath'
may have a problem.

It seems that if  you pass it a  '..' it doesn't return the
path of the parent directory but the current directory with
 '/..'  appended to it.

  Is this correct or should it return the path of the parent
directory?

thanks,

  Keith




From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 15:28:05 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA17916;
	Mon, 3 Nov 1997 15:20:38 -0600 (CST)
Received: from msri.org (msri.org [198.129.64.224])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id PAA24853
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 15:17:10 -0600 (CST)
Received: (from smap@localhost) by msri.org (8.8.2/8.7.2) id NAA02420 for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 13:17:06 -0800 (PST)
Received: from chern.msri.org(198.129.65.52) by msri.org via smap (V1.3)
	id sma002405; Mon Nov  3 13:16:46 1997
Received: by chern.msri.org (8.8.2/HUB)
	id NAA01674; Mon, 3 Nov 1997 13:16:45 -0800 (PST)
Message-Id: <199711032116.NAA01674@chern.msri.org>
Date: Mon, 3 Nov 1997 13:16:45 -0800 (PST)
Reply-To: dave@msri.org
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Dave Wright <dave@msri.org>
To: wu-ftpd@wugate.wustl.edu
Subject: unsubscribe
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Authentication-Warning: msri.org: smap set sender to <dave@msri.org> using -f
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I hate to do this but I have send MANY MANY messages to the
list manager to unsubscribe in MANY different ways following
all the instructions and even sending several emails to
the list owner. PLEASE take me off now!

	thanks


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 16:18:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA01361;
	Mon, 3 Nov 1997 16:04:39 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA20332
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 16:01:17 -0600 (CST)
Message-Id: <199711032202.QAA23208@landfield.com>
Date: Mon, 3 Nov 1997 16:02:03 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: dave@msri.org
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: unsubscribe
In-Reply-To: <199711032116.NAA01674@chern.msri.org> from "Dave Wright" at Nov 3, 97 01:16:45 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# I hate to do this but I have send MANY MANY messages to the
# list manager to unsubscribe in MANY different ways following
# all the instructions and even sending several emails to
# the list owner. PLEASE take me off now!

Interesting. I didn't see any of them.  I have unsubscribed you 
from the list.  

Folks, if you have problems after trying the automated way 
(listproc@wugate.wustl.edu) of getting off the list, send me 
a message and I'll make it so.

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Please send comp.sources.misc related mail to kent@uunet.uu.net.
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 18:14:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA12811;
	Mon, 3 Nov 1997 18:06:53 -0600 (CST)
Received: from SEADP.COM (c643954-a.htfdw1.ct.home.com [24.2.138.83])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA02014
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 18:04:32 -0600 (CST)
Received: from DOPEY (Dopey.seadp.com [192.168.48.88])
          by SEADP.COM (8.8.4/8.8.4) with SMTP
	  id TAA01368 for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 19:58:59 -0500
Message-Id: <345E6645.66E7@seadp.com>
Date: Mon, 03 Nov 1997 19:03:17 -0500
Reply-To: patrick@seadp.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Patrick Cooney <patrick@seadp.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Guest FTP Setup
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.03Gold (WinNT; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I've been tring to set up a guest FTP system for one account.  I want to 
keep that user(s) to thier 'root' directory.  I've gotten the 'how-to'
however, i follow the directions end end up /w user unable to log on.

I think it might have to deal /w the '/etc/ftponly' as this does not
appear in the shells file.  
btw, i'm running linux 2.0.30 

I can FTP to the box as my self. I've set up an account, how ever its
not 'locked' to thier root directory.

Thanks..

Patrick @ Seadp . Com

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 20:13:47 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA16426;
	Mon, 3 Nov 1997 20:06:22 -0600 (CST)
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA22075
	for <wu-ftpd@mail.wustl.edu>; Mon, 3 Nov 1997 20:04:41 -0600 (CST)
Received: from Ebay.Sun.COM ([129.150.111.20]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id SAA09206 for <wu-ftpd@mail.wustl.edu>; Mon, 3 Nov 1997 18:04:14 -0800
Received: from hang-10.EBay.Sun.COM by Ebay.Sun.COM (SMI-8.6/SMI-5.3)
	id SAA02571; Mon, 3 Nov 1997 18:04:06 -0800
Received: from hang-10 by hang-10.EBay.Sun.COM (SMI-8.6/SMI-SVR4)
	id SAA00709; Mon, 3 Nov 1997 18:07:09 -0800
Message-Id: <libSDtMail.9711031807.28870.lowtide@hang-10>
Date: Mon, 3 Nov 1997 18:07:09 -0800 (PST)
Reply-To: "B.DiMambro" <Brianl.Dimambro@Ebay.Sun.COM>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "B.DiMambro" <Brianl.Dimambro@Ebay.Sun.COM>
To: wu-ftpd@wugate.wustl.edu
Subject: Setting up guest account Solaris 2.5.1 & wu-ftpd 2.4
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: T/XcM35CMX8iwi9Av4pRlg==
X-Mailer: dtmail 1.1.0 CDE Version 1.1_55 SunOS 5.5.1 sun4m sparc 
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi all, I am presently setting up an anonymous and restricted user ftp server. I 
am running Solaris 2.5.1 on a SS5 and have installed the pre-compiled version of 
2.4 that is available on the Sun Free Software site. The pkgadd worked without a 
hitch and I modified the entry in /etc/inetd.conf as follows:

ftp  stream  tcp  nowait  root /opt/WUftpd/etc/ftpd	ftpd -d

This is how it was suggested in the FAQ in the Sun Site. It appears that this 
version has the ftpaccess file enabled without using the -a. I also rebooted the 
system.

I built an anonymous ftp dir tree and user using the procedure and script from 
the in.ftpd man page. 

I then created a user (guest user, I want to restrice access) called bubba, and 
it entries are like so:

bubba:x:1001:15:Bubba:/export/bubba/./:/etc/ftp_only

group looks like this:

ftpguest::15:bubba

/etc/shells looks like this:

/usr/bin/rksh
/usr/bin/sh
/etc/ftp-only
/etc/ftponly
/etc/ftp_only

/opt/WUftpd/etc/ftpaccess looks like this:

class   all     real,guest,anonymous    *
guestgroup      ftpguest

I wanted to keep it simple to get it working 1st, then add all the bells and 
whistles.

The /etc/shadow file has a valid password.

I built the restricted dir tree for bubba (the guest account) using the same 
script I used for the anonymous user but had it build from the bubba user 
instead of the ftp user. The tree was built under /export/bubba and has the 
following permissions:


# ls -l /export

drwxrwxrwx	6	bubba	other	512	Nov  3	14:04 bubba

# ls -l /export/bubba

total 10
lrwxrwxrwx   1 root     other          7 Nov  3 14:03 bin -> usr/bin
dr-xr-xr-x   2 root     other        512 Nov  3 14:04 dev
dr-xr-xr-x   2 root     other        512 Nov  3 14:04 etc
drwxrwxrwx   2 bubba    other        512 Nov  3 14:04 pub
drwxr-xr-x   5 root     other        512 Nov  3 14:04 usr

Here is what happens:
If I ftp into the system as user anonymous, all works great!!!!

If I try and ftp in as a real user, any real user, I get permission denied 
errors when I enter the user ID and get no access.

If I ftp in as bubba, I get permission denied as well.


Any suggestions would be greately appreciated.

Thanks
Brian D.



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov  3 20:26:09 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA01847;
	Mon, 3 Nov 1997 20:18:56 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA26139
	for <wu-ftpd@wugate.wustl.edu>; Mon, 3 Nov 1997 20:17:09 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.7/8.8.7) with SMTP id UAA18099;
	Mon, 3 Nov 1997 20:17:16 -0600
Message-Id: <Pine.LNX.3.95.971103201531.12120N-100000@ns1.fni.com>
Date: Mon, 3 Nov 1997 20:17:16 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: "B.DiMambro" <Brianl.Dimambro@Ebay.Sun.COM>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Setting up guest account Solaris 2.5.1 & wu-ftpd 2.4
In-Reply-To: <libSDtMail.9711031807.28870.lowtide@hang-10>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


You should strongly consider upgrading to beta 15 version for bug and
security fixes.  The guest howto and faq will help answer problems.

   -- Michael

On Mon, 3 Nov 1997, B.DiMambro wrote:

> Hi all, I am presently setting up an anonymous and restricted user ftp server. I 
> am running Solaris 2.5.1 on a SS5 and have installed the pre-compiled version of 
> 2.4 that is available on the Sun Free Software site. The pkgadd worked without a 
> hitch and I modified the entry in /etc/inetd.conf as follows:


This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

There are additional security references in the above docs.


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov  4 02:15:17 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id CAA32704;
	Tue, 4 Nov 1997 02:07:44 -0600 (CST)
Received: from ns.tpesp.com (root@ns.tpesp.com [195.99.192.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id CAA16705
	for <wu-ftpd@wugate.wustl.edu>; Tue, 4 Nov 1997 02:05:33 -0600 (CST)
Received: from instalacion (juanen.tpesp.com [195.99.192.11]) by ns.tpesp.com (8.8.7/8.7.3) with SMTP id JAA28820; Tue, 4 Nov 1997 09:11:42 +0100
Message-Id: <3.0.3.32.19971104085613.0093a920@pop3.tpesp.com>
Date: Tue, 04 Nov 1997 08:56:13 +0100
Reply-To: juanen@tpesp.es
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Juan Enrique Gomez <juanen@tpesp.es>
To: patrick@seadp.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Guest FTP Setup
In-Reply-To: <345E6645.66E7@seadp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Sender: juanen@pop3.tpesp.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id CAA28066
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

>however, i follow the directions end end up /w user unable to log on.
>I think it might have to deal /w the '/etc/ftponly' as this does not
>appear in the shells file.  
>btw, i'm running linux 2.0.30 
Yes you must include in the /etc/shells files the ftponly script, and
remember to put an empty line after if not it will not work. Till you don't
fix this the ftp will not loging, cause it really makes a login.

>I can FTP to the box as my self. I've set up an account, how ever its
>not 'locked' to thier root directory.
Remember to include the user in the groups assigned to the guest class.

yours.

-----------------------------------------------
Juan Enrique Gómez
Departamento de Informática
Tecnipublicaciones España - http://www.tpesp.es
juanen@tpesp.es
-----------------------------------------------


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov  5 10:27:48 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA08831;
	Wed, 5 Nov 1997 10:20:18 -0600 (CST)
Received: from gate.site.gmu.edu (site.gmu.edu [129.174.40.83])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA18292
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 10:00:20 -0600 (CST)
Received: from localhost (hmorcos@localhost)
	by gate.site.gmu.edu (8.8.5/8.8.5) with SMTP id LAA19659
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 11:00:18 -0500 (EST)
Message-Id: <Pine.GSO.3.96.971105105816.19591B-100000@gate>
Date: Wed, 5 Nov 1997 11:00:18 -0500 (EST)
Reply-To: hmorcos@site.gmu.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Hany Morcos (CS)" <hmorcos@site.gmu.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: specific port
In-Reply-To: <345E3289.DAE3507D@dallas.photronics.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: hmorcos@gate
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



   Hey guys,

     I want to run wu-ftpd on a specific port and to have to worry about
changing inted.conf and other files. How can I force wu-ftpd to run a
user allowed port >1024 something like that? 


    I just want to be able to telnet to it. 

    telnet  osf1.gmu.edu 21 

Thanks in advance 
Hany



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov  5 17:41:34 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA11551;
	Wed, 5 Nov 1997 17:33:56 -0600 (CST)
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA20643
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 17:29:18 -0600 (CST)
Received: from LOCAL (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 28141
          on Wed, 5 Nov 1997 23:29:14 GMT; id XAA28141
          efrom: news@Garfield.IAEhv.nl; eto: wu-ftpd@wugate.wustl.edu
Received: (from news@localhost)
	by Garfield.IAEhv.nl (8.8.5/8.8.5) id UAA01248;
	Wed, 5 Nov 1997 20:43:30 +0100
Message-Id: <63qi92$dt$2@Garfield.IAEhv.nl>
Date: 5 Nov 1997 19:43:30 GMT
Reply-To: Perry.Rovers@IAE.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Perry.Rovers@IAE.nl
To: wu-ftpd@wugate.wustl.edu
Subject: Re: specific port
References: <Pine.GSO.3.96.971105105816.19591B-100000@gate>
X-no-archive: yes
X-bofh-archive: yes
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970324; i586 Linux 2.0.28]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pink elephants with an attitude inspired "Hany Morcos (CS)" <hmorcos@site.gmu.edu> to tell garfield.mail.wu-ftpd:

:      I want to run wu-ftpd on a specific port and to have to worry about
: changing inted.conf and other files. How can I force wu-ftpd to run a
: user allowed port >1024 something like that? 

Why does this sound to me like you're building a warez site by running an
ftpserver on a non-priviledged port? Any particular reason for running it on
a non-standard port apart from 'worry about changing inetd.conf'?

:     I just want to be able to telnet to it. 

:     telnet  osf1.gmu.edu 21 

Why would you want to telnet to an ftp server.. ftping to it makes much more
sense :)

-- 
Perry Rovers (Perry.Rovers@IAE.nl)

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov  5 18:06:15 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA26822;
	Wed, 5 Nov 1997 17:59:17 -0600 (CST)
Received: from mailout02.btx.dtag.de (mailout02.btx.dtag.de [194.25.2.150])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA13760
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 17:54:42 -0600 (CST)
Received: from fwd02.btx.dtag.de [194.25.2.162] 
	by mailout02.btx.dtag.de with smtp 
	id 0xTFGT-0007WY-00; Thu, 6 Nov 1997 00:53:38 +0100
Received:  (0957172051-0001(btxid)@[193.159.46.197]) 
	by fwd02.btx.dtag.de with (S3.1.29.1) 
	id <m0xTFGR-0003LxC>; Thu, 6 Nov 1997 00:53:35 +0200
Message-Id: <m0xTFGR-0003LxC@fwd02.btx.dtag.de>
Date: Thu, 6 Nov 1997 00:53:35 +0200
Reply-To: Annette.Scherer@t-online.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Annette.Scherer@t-online.de (as37as37)
To: wu-ftpd@wugate.wustl.edu
Subject: information
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Mailer: T-Online eMail 2.0
X-Sender: 0957172051-0001@t-online.de (Annette Scherer)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Dear Ladies and Gentlemen,

could someone tell me where I can find information about wu-ftpd 
authentication-, access control- and logging-possibilities? Something like an 
Administrator´s Guide.  I also need to read about SSL-features. 

Does wu-ftpd come along with any online-documentation. If yes, from which URL 
can I download it?  

Thank you very much
Annette Scherer
Fernuniversitaet Hagen

annette.scherer@t-online.de



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov  5 18:31:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA24527;
	Wed, 5 Nov 1997 18:24:09 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA30961
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 18:23:52 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.7/8.8.7) with SMTP id SAA13037;
	Wed, 5 Nov 1997 18:23:53 -0600
Message-Id: <Pine.LNX.3.96.971105182338.11335B-100000@ns1.fni.com>
Date: Wed, 5 Nov 1997 18:23:53 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: as37as37 <Annette.Scherer@t-online.de>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: information
In-Reply-To: <m0xTFGR-0003LxC@fwd02.btx.dtag.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by wugate.wustl.edu id SAA28753
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, 6 Nov 1997, as37as37 wrote:

> could someone tell me where I can find information about wu-ftpd 
> authentication-, access control- and logging-possibilities? Something like an 
> Administrator´s Guide.  I also need to read about SSL-features. 
> 
> Does wu-ftpd come along with any online-documentation. If yes, from which URL 
> can I download it?  


This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

There are additional security references in the above docs.


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov  5 19:28:05 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA00125;
	Wed, 5 Nov 1997 19:21:32 -0600 (CST)
Received: from basil.acr.net.au (basil.acr.net.au [203.22.236.98])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id TAA30709
	for <wu-ftpd@wugate.wustl.edu>; Wed, 5 Nov 1997 19:16:10 -0600 (CST)
Received: from geoffdev.acr.net.au (geoffdev.acr.net.au [203.22.236.69]) by basil.acr.net.au (8.7.3/8.7.3) with SMTP id MAA10223 for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 12:16:08 +1100 (EST)
Received: by geoffdev.acr.net.au with Microsoft Mail
	id <01BCEAAD.B157E2E0@geoffdev.acr.net.au>; Thu, 6 Nov 1997 12:15:38 +1100
Message-Id: <01BCEAAD.B157E2E0@geoffdev.acr.net.au>
Date: Thu, 6 Nov 1997 12:19:07 +1100
Reply-To: geoff@acr.net.au
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Geoff Terry <geoff@acr.net.au>
To: "'Perry.Rovers@IAE.nl'" <Perry.Rovers@IAE.nl>,
        "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: RE: specific port
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id TAA30563
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Ther's something wrong here!
Try editing ftp entries in /etc/services and putting entries similar to the existing ftp entries but using the ports you want.
inetd.conf will not need to be edited (inetd will look for an entry in /etc/services matching ftp at startup and listen on corresponding port). Of course this ignores the fact that no one will actually ever ftp to this 'unknown port'.

Telneting to the ftp daemon, regardless of whether you would want to or not, is independant of which port the daemon runs on or configuration of the daemon or inetd.conf. However, firewalls may prevent you from telneting to port x (where x is the unused port you have selected).

PS dont forget to SIGHUP inetd after the edits.

Regards Geofft
-----Original Message-----
From:	Perry.Rovers@IAE.nl [SMTP:Perry.Rovers@IAE.nl]
Sent:	Thursday, 6 November 1997 10:44
To:	wu-ftpd@wugate.wustl.edu
Subject:	Re: specific port

Pink elephants with an attitude inspired "Hany Morcos (CS)" <hmorcos@site.gmu.edu> to tell garfield.mail.wu-ftpd:

:      I want to run wu-ftpd on a specific port and to have to worry about
: changing inted.conf and other files. How can I force wu-ftpd to run a
: user allowed port >1024 something like that? 

Why does this sound to me like you're building a warez site by running an
ftpserver on a non-priviledged port? Any particular reason for running it on
a non-standard port apart from 'worry about changing inetd.conf'?

:     I just want to be able to telnet to it. 

:     telnet  osf1.gmu.edu 21 

Why would you want to telnet to an ftp server.. ftping to it makes much more
sense :)

-- 
Perry Rovers (Perry.Rovers@IAE.nl)



From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 09:04:59 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA09718;
	Thu, 6 Nov 1997 08:55:34 -0600 (CST)
Received: from gate.site.gmu.edu (site.gmu.edu [129.174.40.83])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA09178
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 08:49:27 -0600 (CST)
Received: from localhost (hmorcos@localhost)
	by gate.site.gmu.edu (8.8.5/8.8.5) with SMTP id JAA00930;
	Thu, 6 Nov 1997 09:49:11 -0500 (EST)
Message-Id: <Pine.GSO.3.96.971106094049.764B-100000@gate>
Date: Thu, 6 Nov 1997 09:49:11 -0500 (EST)
Reply-To: hmorcos@site.gmu.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Hany Morcos (CS)" <hmorcos@site.gmu.edu>
To: Perry.Rovers@IAE.nl
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: specific port
In-Reply-To: <63qi92$dt$2@Garfield.IAEhv.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: hmorcos@gate
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



  First what is a warez site? 

  Second, The only reason I want to run wu-ftpd on a specific is to fully
  tested.  To read and modify every piece of code and see how will it
  function under any kind of attacks.  I will even disaple some of the
  build in commands for security reasons. 

  I don't want to rush and install it fully and next day I will find
  a trojan hourse, or my system hacked in to.  I think you took my
  question the wrong way.  Dude I think you took my e-mail totally
  the wrong way. I do not how you do it pink elephants !!!


Thanks for you help !!!!! 
Hany  (system Admin)



On 5 Nov 1997 Perry.Rovers@IAE.nl wrote:

> Pink elephants with an attitude inspired "Hany Morcos (CS)" <hmorcos@site.gmu.edu> to tell garfield.mail.wu-ftpd:
> 
> :      I want to run wu-ftpd on a specific port and to have to worry about
> : changing inted.conf and other files. How can I force wu-ftpd to run a
> : user allowed port >1024 something like that? 
> 
> Why does this sound to me like you're building a warez site by running an
> ftpserver on a non-priviledged port? Any particular reason for running it on
> a non-standard port apart from 'worry about changing inetd.conf'?
> 
> :     I just want to be able to telnet to it. 
> 
> :     telnet  osf1.gmu.edu 21 
> 
> Why would you want to telnet to an ftp server.. ftping to it makes much more
> sense :)
> 
> -- 
> Perry Rovers (Perry.Rovers@IAE.nl)
> 


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 09:17:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA11205;
	Thu, 6 Nov 1997 09:09:16 -0600 (CST)
Received: from gate.site.gmu.edu (site.gmu.edu [129.174.40.83])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA09680
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 08:55:08 -0600 (CST)
Received: from localhost (hmorcos@localhost)
	by gate.site.gmu.edu (8.8.5/8.8.5) with SMTP id JAA00956;
	Thu, 6 Nov 1997 09:54:44 -0500 (EST)
Message-Id: <Pine.GSO.3.96.971106095002.764D-100000@gate>
Date: Thu, 6 Nov 1997 09:54:43 -0500 (EST)
Reply-To: hmorcos@site.gmu.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Hany Morcos (CS)" <hmorcos@site.gmu.edu>
To: Geoff Terry <geoff@acr.net.au>
Cc: "'Perry.Rovers@IAE.nl'" <Perry.Rovers@IAE.nl>,
        "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: RE: specific port
In-Reply-To: <01BCEAAD.B157E2E0@geoffdev.acr.net.au>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: hmorcos@gate
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


   I want leave the old version of the ftp running. 
   And test the new version wu-ftp .

    I want run the old version ftp on the same port. 
    and install USER wu-ftp server with NO system special
     priviliges on a different port.
    I will eventually install wu-ftp, but I need to test and
    disable some of the features. 

    Why does this sound crazy to you guys?
    Have not you tried to run a software on a different port to test it
    first?

Thanks 
Hany

On Thu, 6 Nov 1997, Geoff Terry wrote:

> Ther's something wrong here!
> Try editing ftp entries in /etc/services and putting entries similar to the existing ftp entries but using the ports you want.
> inetd.conf will not need to be edited (inetd will look for an entry in /etc/services matching ftp at startup and listen on corresponding port). Of course this ignores the fact that no one will actually ever ftp to this 'unknown port'.
> 
> Telneting to the ftp daemon, regardless of whether you would want to or not, is independant of which port the daemon runs on or configuration of the daemon or inetd.conf. However, firewalls may prevent you from telneting to port x (where x is the unused port you have selected).
> 
> PS dont forget to SIGHUP inetd after the edits.
> 
> Regards Geofft
> -----Original Message-----
> From:	Perry.Rovers@IAE.nl [SMTP:Perry.Rovers@IAE.nl]
> Sent:	Thursday, 6 November 1997 10:44
> To:	wu-ftpd@wugate.wustl.edu
> Subject:	Re: specific port
> 
> Pink elephants with an attitude inspired "Hany Morcos (CS)" <hmorcos@site.gmu.edu> to tell garfield.mail.wu-ftpd:
> 
> :      I want to run wu-ftpd on a specific port and to have to worry about
> : changing inted.conf and other files. How can I force wu-ftpd to run a
> : user allowed port >1024 something like that? 
> 
> Why does this sound to me like you're building a warez site by running an
> ftpserver on a non-priviledged port? Any particular reason for running it on
> a non-standard port apart from 'worry about changing inetd.conf'?
> 
> :     I just want to be able to telnet to it. 
> 
> :     telnet  osf1.gmu.edu 21 
> 
> Why would you want to telnet to an ftp server.. ftping to it makes much more
> sense :)
> 
> -- 
> Perry Rovers (Perry.Rovers@IAE.nl)
> 
> 
> 


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 09:59:55 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA15088;
	Thu, 6 Nov 1997 09:47:41 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA14778
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 09:44:41 -0600 (CST)
Message-Id: <199711061545.JAA06434@landfield.com>
Date: Thu, 6 Nov 1997 09:45:24 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: hmorcos@site.gmu.edu
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: specific port
In-Reply-To: <Pine.GSO.3.96.971106095002.764D-100000@gate> from "Hany Morcos" at Nov 6, 97 09:54:43 am
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hany,

#    I want leave the old version of the ftp running. 
#    And test the new version wu-ftp .
# 
#     I want run the old version ftp on the same port. 
#     and install USER wu-ftp server with NO system special
#      priviliges on a different port.
#     I will eventually install wu-ftp, but I need to test and
#     disable some of the features. 
# 
#     Why does this sound crazy to you guys?
#     Have not you tried to run a software on a different port to test it
#     first?

If you really know the insides of the FTP protocol then you should be able
to do it.  Most people put the server on a separate system from a production
system to do the testing.  By putting it on the same system as a production
system you can still be vunerable to certain attack attempts if port scanners
detect the new service.

In order to properly test it you should use the same port numbering as 
will be used in a production environment.  By setting it up to run on a 
non-priviledged port you could be potentially masking the very problems 
you are trying to discover.

That aside, there has been a great deal of security checking of wu-ftpd but
even with that, things have occurred in the past.  We are working to make sure 
it is the most secure version of an ftp server.  As such, I thank you for your 
serious examination in an effort to protect your site.  *Please* give us a 
summary of your finding and anything you did to make it more secure (besides 
compiling #ifdef PARANOID).  We all can benefit from your efforts.

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 17:01:49 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA13308;
	Thu, 6 Nov 1997 16:51:51 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA20204
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 16:50:00 -0600 (CST)
Message-Id: <199711062250.QAA08356@landfield.com>
Date: Thu, 6 Nov 1997 16:50:48 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd-bugs@academ.com
Subject: If you use Virtual support in ftpd READ THIS NOW!
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

If you are using Virtual Server support in newvirt or beta-15 
READ THIS NOW!

There seems to be a "logic problem" ;) in the virtual code in 
beta15.  It also appears in my version newvirt version of virtual 
server support.  The problem is this...

If someone tries to login with a valid guestuser account and uses 
a bogus password, then they enter a 'user anonymous' and type in 
a random password, the user will be authorized to access the system 
but in the wrong ftp area...  Not nice.

In otherwords the sequence is:

         login: some-valid-guestuser
      Password: bogus invalid passwd entered
           ftp> user anonymous
      Password: valid junk passwd entered
    
    wrong directory (ftp account's directory)

To correct this,

In the function user() in ftpd.c just after the 

    if (logged_in) {                    /* Now a no-op.  _H*/
        if (anonymous || guest) {
            reply(530, "Can't change user from guest login.");
            return;
        }
        end_login();
    }

on line 1089, add

    guest = 0;

and recompile it.

----------- Should end up looking like ----------------
    if (logged_in) {                    /* Now a no-op.  _H*/
        if (anonymous || guest) {
            reply(530, "Can't change user from guest login.");
            return;
        }
        end_login();
    }

    guest = 0;
    anonymous = 0;
    acl_remove();
-------------------------------------------------------

The guest flag is getting set the first time through the user() 
function and then it is not getting reset if the person fails and 
then switches to an anonymous account.  Then in the pass() function, 
with guest still set, it skips the virtual_mode check since guest 
was set and falls through to a place it should not be...
 
A new version of newvirt will be put up tonight that fixes this.  
For those that can't take the time to mess with installing new server, 
make the changes above on you current copy and reinstall.

I've Cc:'ed wu-ftpd-bugs@academ.com so it's queued to be fixed in the 
next release.

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 19:14:54 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA00151;
	Thu, 6 Nov 1997 19:04:48 -0600 (CST)
Received: from mail.intercon.com (mail.intercon.com [149.52.1.88])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id TAA00034
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 19:02:56 -0600 (CST)
Received: from saloon.eng.intercon.com (saloon.eng.intercon.com [149.52.12.108])
	by mail.intercon.com (8.8.5/8.8.5) with SMTP id UAA20151;
	Thu, 6 Nov 1997 20:02:45 -0500 (EST)
Message-Id: <9711061959.AA57298@saloon.eng.intercon.com>
Date: Thu,  6 Nov 1997 19:59:57 -0500
Reply-To: philip@intercon.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Philip Kearney III" <philip@intercon.com>
To: wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd-bugs@academ.com
Subject: 530 Response Code instead of 421 when limits are reached
MIME-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
Content-Disposition: Inline
X-Mailer: Ascend tcpCONNECT4 1.0d4 (Macintosh)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

As an experiment, I put the following in my ftpaccess file:

# Classes of users

class   local   real,guest *.domain 0.0.0.0
class   remote  real,guest *
class   anon    anonymous *

# Limits on classes of users

limit   local   60  Any                 /etc/msgs/toomany.msg
limit   remote  60  SaSu|Any1800-0600   /etc/msgs/toomany.msg
limit   remote  20  Any                 /etc/msgs/toomany.msg
limit   anon    1   Any                 /etc/msgs/toomanyanon.msg


Now, when the second anonymous user tries to log in, the response code I get 
back from the server is:

530 User anonymous access denied.

Now if I look in STD 9, the FTP specification, I see the following sequence of 
commands and reponses for the USER command:

USER
   230
   530
   500, 501, 421
   331, 332

In this case, shouldn't the server be returning a 421 (service not available) 
and not a 530 (access denied) because that user is not being flatly denied 
access in all situations, rather the FTP service is unavailable because there 
are already too many users logged in under that username?

Most other servers I deal with will return a 421 in this situation and I think 
that previous versions of wu-ftpd used to do the same and return a 421 in this 
situation.

This is occurring on a Sparc running SunOS 4.1.4 using Version wu-2.4.2-
academ[BETA-15].

-pk

----------------------------------------------------------------------------
Philip Kearney III                mailto:philip@ascend.com
Sr. Software Engineer             mailto:philip@intercon.com
System Administrator              finger philip@avernus.com for my PGP key
Ascend Communications, Inc.       
Client Software Engineering Group             
----------------------------------------------------------------------------


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 19:43:16 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA01866;
	Thu, 6 Nov 1997 19:36:07 -0600 (CST)
Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id TAA02014
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 19:35:34 -0600 (CST)
Received: from dadd.ti.com. ([156.117.179.59]) by gatekeep.ti.com (8.8.7) with ESMTP id TAA04937; Thu, 6 Nov 1997 19:36:51 -0600 (CST)
Received: from pavis.dadd.ti.com by dadd.ti.com. (8.8.4/)
	  id TAA01281; Thu, 6 Nov 1997 19:35:01 -0600 (CST)
Received: by pavis.dadd.ti.com id <AA238196501@pavis.dadd.ti.com>; Thu, 6 Nov 1997 19:35:01 -0600
Message-Id: <199711070135.AA238196501@pavis.dadd.ti.com>
Date: Thu, 6 Nov 97 19:35:01 CST
Reply-To: bobl@ti.com (Bob Luckin)
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bob Luckin <bobl@dadd.ti.com>
To: wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd-bugs@academ.com
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <9711061959.AA57298@saloon.eng.intercon.com>; from "Philip Kearney III" at Nov 6, 97 7:59 pm
X-Mimi-Options: HEADERS TI2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Philip Kearney said :-
> As an experiment, I put the following in my ftpaccess file:
...
> class   anon    anonymous *
> 
> # Limits on classes of users
> 
...
> limit   anon    1   Any                 /etc/msgs/toomanyanon.msg
> 
> 
> Now, when the second anonymous user tries to log in, the response code I get 
> back from the server is:
> 
> 530 User anonymous access denied.
...
> In this case, shouldn't the server be returning a 421 (service not available) 
> and not a 530 (access denied) because that user is not being flatly denied 
> access in all situations, rather the FTP service is unavailable because there 
> are already too many users logged in under that username?

My interpretation of this situation is that the service is still available -
just not to any more anon users, who are being denied while the limit is
reached.  The other classes of users can still access it, assuming their
limits have not been reached.

So I think that the 530 you are seeing is correct, and a 421 would be
incorrect in this case.

I may of course be shouted down...  :-)

Cheers, Bob
-- 
Bob Luckin  bobl@ti.com  "On data, coder, adapt - FTP Ada, redo C a tad, no ?"
                         [http://www.dhc.net/~luckin/paliindromes.html]

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 19:58:38 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA03022;
	Thu, 6 Nov 1997 19:48:40 -0600 (CST)
Received: from hen.nca.or.kr (hen.nca.or.kr [202.30.65.7])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA02730
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 19:44:29 -0600 (CST)
Received: from ns.nca.or.kr ([202.30.67.182]) by hen.nca.or.kr (8.6.12h2/8.6.9) with ESMTP id KAA24981 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 10:44:01 +0900
Message-Id: <199711070144.KAA24981@hen.nca.or.kr>
Date: Fri, 7 Nov 1997 10:43:21 +0900
Reply-To: esong@nca.or.kr
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "=?EUC-KR?B?vNvAxw==?=" <esong@nca.or.kr>
To: <wu-ftpd@wugate.wustl.edu>
Subject: ftp user is access denied
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-2022-kr
Content-Transfer-Encoding: 7bit
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I download wu-ftpd from the site which you infom me, ftp.academ.com
and install wu-ftpd in Solaris 2.5 system
but i think something is wrong.
when i access ftp server, error occure below

[clinet] # ftp server
          Connected to server.
          220 patrol FTP server (Version wu-2.4(1) ready.
          Name (server:test):ftp
         530 User ftp access denied.
         Login failed.
ftp>
I tried to login by real user and anonymouse ftp user
but both is not denied.

there is accounts in /etc/ftpusers file below
root
sys


what is wrong?


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 20:14:53 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA04337;
	Thu, 6 Nov 1997 20:07:47 -0600 (CST)
Received: from basil.acr.net.au (basil.acr.net.au [203.22.236.98])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA04126
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 20:04:35 -0600 (CST)
Received: from geoffdev.acr.net.au (geoffdev.acr.net.au [203.22.236.69]) by basil.acr.net.au (8.7.3/8.7.3) with SMTP id NAA19260 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 13:05:07 +1100 (EST)
Received: by geoffdev.acr.net.au with Microsoft Mail
	id <01BCEB7D.AEEC6AA0@geoffdev.acr.net.au>; Fri, 7 Nov 1997 13:04:29 +1100
Message-Id: <01BCEB7D.AEEC6AA0@geoffdev.acr.net.au>
Date: Fri, 7 Nov 1997 13:08:03 +1100
Reply-To: geoff@acr.net.au
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Geoff Terry <geoff@acr.net.au>
To: "'esong@nca.or.kr'" <esong@nca.or.kr>
Cc: "'wu-ftpd@wugate.wustl.edu'" <wu-ftpd@wugate.wustl.edu>
Subject: RE: ftp user is access denied
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id UAA03832
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

What about the /etc/ftpaccess file that shipped with the distribution.
The default generally needs to be edited before access will be granted (at least it did so in earlier releases).

Geofft

-----Original Message-----
From:	1/4ÛÀÇ [SMTP:esong@nca.or.kr]
Sent:	Friday, 7 November 1997 12:58
To:	wu-ftpd@wugate.wustl.edu
Subject:	ftp user is access denied

 << File: ATT00000.txt; charset = iso-2022-kr >> 


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 20:27:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA05495;
	Thu, 6 Nov 1997 20:20:20 -0600 (CST)
Received: from mail.intercon.com (mail.intercon.com [149.52.1.88])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA05172
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 20:16:32 -0600 (CST)
Received: from saloon.eng.intercon.com (saloon.eng.intercon.com [149.52.12.108])
	by mail.intercon.com (8.8.5/8.8.5) with SMTP id VAA20757;
	Thu, 6 Nov 1997 21:16:25 -0500 (EST)
Message-Id: <9711062113.AA35493@saloon.eng.intercon.com>
Date: Thu,  6 Nov 1997 21:13:35 -0500
Reply-To: philip@intercon.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Philip Kearney III" <philip@intercon.com>
To: bobl@ti.com (Bob Luckin), wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd-bugs@academ.com
Subject: Re: 530 Response Code instead of 421 when limits are reached
References: <199711070135.AA238196501@pavis.dadd.ti.com>
MIME-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
Content-Disposition: Inline
X-Mailer: Ascend tcpCONNECT4 1.0d4 (Macintosh)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, Nov 6, 1997 at 8:35:01 PM, Bob Luckin <bobl@dadd.ti.com> wrote:

> My interpretation of this situation is that the service is still 
> available - just not to any more anon users, who are being denied while 
> the limit is reached.  The other classes of users can still access it, 
> assuming their limits have not been reached. 
>  
> So I think that the 530 you are seeing is correct, and a 421 would be 
> incorrect in this case. 
>  
> I may of course be shouted down...  :-) 
>  
> Cheers, Bob 


See but, according to STD 9, a 421 is defined as:

421 Service not available, closing control connection.
    This may be a reply to any command if the service knows it
    must shut down.

And the wu-ftpd service does, I'm almost positive, close the control 
connection in this situation.  If it issues a 530 and then closes the control 
connection, then to me this seems wrong.  If it knows it is going to close the 
control connection, then it should be issuing a 421 not a 530 because this is 
an entirely different situation from when access is denied for a specific 
username and the server sends a 530.  In that case, it allows the user the 
ability to try another username.

In one case you have:

USER foo
331 Password required for foo.
PASS ********
530 Login incorrect.

And the client can try another username and/or password. 


In my original scenario (with one anonymous user already logged in) you get:

USER anonymous
530 User anonymous access denied.

*boom* the control connection is shut down by the server.


This is contrary to the first behavior and makes the 530 response code 
ambiguous.  In one case it shuts down the control connection and in the other 
it doesn't, even though the client receives the same response code.  If one is 
trying to write a graphical FTP client <hint, hint>, there is no way 
programatically to determine which case the client has encountered.  
Therefore, in the latter case, the server should issue a 421 and not a 530 
since it shuts down the control connection.

-pk

----------------------------------------------------------------------------
Philip Kearney III                mailto:philip@ascend.com
Sr. Software Engineer             mailto:philip@intercon.com
System Administrator              finger philip@avernus.com for my PGP key
Ascend Communications, Inc.       
Client Software Engineering Group             
----------------------------------------------------------------------------


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 21:20:37 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA08626;
	Thu, 6 Nov 1997 21:10:55 -0600 (CST)
Received: from cc.nsysu.edu.tw (root@cc.nsysu.edu.tw [140.117.11.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA05908
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 21:05:08 -0600 (CST)
Received: from galaxy.cie.nsysu.edu.tw (galaxy.cie.nsysu.edu.tw [140.117.168.1])
	by cc.nsysu.edu.tw (8.8.7/8.8.7) with SMTP id LAA12116
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:13:12 +0800 (CST)
Received: from mars.cie.nsysu.edu.tw. by cie.nsysu.edu.tw (4.1/SMI-4.1-SysuNet)
	id AA25804; Fri, 7 Nov 97 10:57:44 CST
Received: by mars.cie.nsysu.edu.tw. (4.1/SMI-4.1)
	id AA03458; Fri, 7 Nov 97 11:04:19 CST
Message-Id: <Pine.SUN.3.91.971107110152.3454A-100000@mars.cie.nsysu.edu.tw>
Date: Fri, 7 Nov 1997 11:04:19 +0800 (CST)
Reply-To: jack@mars.cie.nsysu.edu.tw
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jack Hu <jack@mars.cie.nsysu.edu.tw>
To: wu-ftpd@wugate.wustl.edu
Subject: where to replace yacc to bison
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

hi adm:
I dont have the yacc in hpux 10.20.
I do install the bison.
And someone tell me use 'bison -y' to replace yacc.
But I can't find out the place of defining the yacc.
so,till now,I still can't replace yacc with bison.
Maybe U can give me a good suggestion of this problem.
thanks.
				Jack


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov  6 21:36:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA10687;
	Thu, 6 Nov 1997 21:29:34 -0600 (CST)
Received: from mail.twistercom.com (mail.twistercom.com [208.21.180.6])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA10338
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 21:27:15 -0600 (CST)
Received: from haveacigar.twistercom.com ([207.235.39.1])
          by mail.twistercom.com (Netscape Messaging Server 3.01)
           with SMTP id AAA22340; Thu, 6 Nov 1997 21:27:23 -0600
Message-Id: <01bceb2c$eb1d8500$0127ebcf@haveacigar.twistercom.com>
Date: Thu, 6 Nov 1997 21:26:21 -0600
Reply-To: marius@twistercom.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Marius Strom" <marius@twistercom.com>
To: <wu-ftpd@wugate.wustl.edu>
Cc: <wu-ftpd-bugs@academ.com>
Subject: Re: If you use Virtual support in ftpd READ THIS NOW!
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Kent & Mailing List...

I just tried to reproduce the problem on my copy of WU-FTPD 2.4.2-B15.  I am
not running virtual server support, but I made some interesting findings.  I
followed your steps, (guestuser, bad passwd, anonymous, passwd) and logged
in.  I have my ftpaccess file setup for max anon connections = 50 and max
guest connections = -1.  When I did this anonymous login, I was user 1 out
of -1, signifying that it still pulled the maxusers from the first login
attempt.  I am running Solaris 2.5.1, on a Sun Ultra 3000.  Have not yet
made the patches to the ftpd.c files, but these are my findings..  Your
mileage may vary.. =)

Marius Strom - marius@twistercom.com
Network Administrator, Twister Communications
http://www.twistercom.com/~marius
-----Original Message-----
From: Kent Landfield <kent@landfield.com>
To: wu-ftpd@wugate.wustl.edu <wu-ftpd@wugate.wustl.edu>
Cc: wu-ftpd-bugs@academ.com <wu-ftpd-bugs@academ.com>
Date: Thursday, November 06, 1997 4:54 PM
Subject: If you use Virtual support in ftpd READ THIS NOW!


>If you are using Virtual Server support in newvirt or beta-15
>READ THIS NOW!
>
>There seems to be a "logic problem" ;) in the virtual code in
>beta15.  It also appears in my version newvirt version of virtual
>server support.  The problem is this...
>
>If someone tries to login with a valid guestuser account and uses
>a bogus password, then they enter a 'user anonymous' and type in
>a random password, the user will be authorized to access the system
>but in the wrong ftp area...  Not nice.
>
>In otherwords the sequence is:
>
>         login: some-valid-guestuser
>      Password: bogus invalid passwd entered
>           ftp> user anonymous
>      Password: valid junk passwd entered
>
>    wrong directory (ftp account's directory)
>
>To correct this,
>
>In the function user() in ftpd.c just after the
>
>    if (logged_in) {                    /* Now a no-op.  _H*/
>        if (anonymous || guest) {
>            reply(530, "Can't change user from guest login.");
>            return;
>        }
>        end_login();
>    }
>
>on line 1089, add
>
>    guest = 0;
>
>and recompile it.
>
>----------- Should end up looking like ----------------
>    if (logged_in) {                    /* Now a no-op.  _H*/
>        if (anonymous || guest) {
>            reply(530, "Can't change user from guest login.");
>            return;
>        }
>        end_login();
>    }
>
>    guest = 0;
>    anonymous = 0;
>    acl_remove();
>-------------------------------------------------------
>
>The guest flag is getting set the first time through the user()
>function and then it is not getting reset if the person fails and
>then switches to an anonymous account.  Then in the pass() function,
>with guest still set, it skips the virtual_mode check since guest
>was set and falls through to a place it should not be...
>
>A new version of newvirt will be put up tonight that fixes this.
>For those that can't take the time to mess with installing new server,
>make the changes above on you current copy and reinstall.
>
>I've Cc:'ed wu-ftpd-bugs@academ.com so it's queued to be fixed in the
>next release.
>
>--
>Kent Landfield                        Phone: 1-817-545-2502
>Email: kent@landfield.com             http://www.landfield.com/
>Email: kent@nfr.net                   http://www.nfr.net/
>Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/
>


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 00:03:44 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA18428;
	Thu, 6 Nov 1997 23:55:14 -0600 (CST)
Received: from academ.com (sob@academ.com [198.137.249.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA18623
	for <wu-ftpd@wugate.wustl.edu>; Thu, 6 Nov 1997 23:54:21 -0600 (CST)
Received: (from sob@localhost)
	by academ.com (8.8.5/8.8.5) id XAA11341
	for wu-ftpd@wugate.wustl.edu; Thu, 6 Nov 1997 23:54:19 -0600 (CST)
Message-Id: <199711070554.XAA11341@academ.com>
Date: Thu, 6 Nov 1997 23:54:19 CST
Reply-To: sob@academ.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: sob@academ.com (Stan Barber)
To: wu-ftpd@wugate.wustl.edu
Subject: Concerning the virtual server support problem in beta-15
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

This will be fixed in beta-16. I was hopeful there would not be a beta-16,
but there will be since there are a number of things (including this) that
have come up.

I am glad to say, the list is getting smaller with each release, though.

More on when beta-16 will be available soon.


-- 
Stan   | Academ Consulting Services        |internet: sob@academ.com
Olan   | For more info on academ, see this |uucp: {mcsun|amdahl}!academ!sob
Barber | URL- http://www.academ.com/academ |Opinions expressed are only mine.

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 00:28:08 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id AAA26464;
	Fri, 7 Nov 1997 00:20:15 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id AAA24766
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 00:13:46 -0600 (CST)
Message-Id: <199711070614.AAA10875@landfield.com>
Date: Fri, 7 Nov 1997 00:14:33 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Guestuser bug fix && newvirt-040 now available.
In-Reply-To: <01bceb2c$eb1d8500$0127ebcf@haveacigar.twistercom.com> from "Marius Strom" at Nov 6, 97 09:26:21 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# I just tried to reproduce the problem on my copy of WU-FTPD 2.4.2-B15.  I am
# not running virtual server support, but I made some interesting findings.  I
# followed your steps, (guestuser, bad passwd, anonymous, passwd) and logged
# in.  I have my ftpaccess file setup for max anon connections = 50 and max
# guest connections = -1.  When I did this anonymous login, I was user 1 out
# of -1, signifying that it still pulled the maxusers from the first login
# attempt.  I am running Solaris 2.5.1, on a Sun Ultra 3000.  Have not yet
# made the patches to the ftpd.c files, but these are my findings..  Your
# mileage may vary.. =)

Marius, thanks for the heads up. Looks like there is some effect on all 
sites with guestusers.  What's happening is the guest flag is getting set 
the first time through the user() function and then it is not getting reset 
if the person fails and then switches to an anonymous account.  Then in the 
pass() function, with guest still set, it falls through to a place it should 
not be thus confusing things nicely.

I have uploaded a new copy of newvirt (newvirt-040) onto the Resource
Center.  Sites that are running the newvirt-030 or earlier versions might 
want to upgrade to this.  It is Beta-15 with the newvirt code, the recently 
discovered bug fixed, a tweaked ftpck and new manual pages for ftpshut and 
ftprestart. It has been run on Solaris 2.5* and BSDI 3.0. (Perry sent me 
FreeBSD patches and I misplaced them... (Perry, a new copy would be nice. 
(...sorry...)) (The ftpck included has been expanded to support the new 
method of virtual support. Please note: There is no reason to grab 
newvirt-040 just to get a tweaked ftpck unless you need virtual support.)

This is something that we need to get fixed folks.  The instructions on
how to correct this are included below.

---------------------------------------------------------
To correct the guestuser access problem in beta-15...

In the function user() in ftpd.c just after the 

    if (logged_in) {                    /* Now a no-op.  _H*/
        if (anonymous || guest) {
            reply(530, "Can't change user from guest login.");
            return;
        }
        end_login();
    }

on line 1089, add

    guest = 0;

and recompile it.

----------- Should end up looking like ----------------
    if (logged_in) {                    /* Now a no-op.  _H*/
        if (anonymous || guest) {
            reply(530, "Can't change user from guest login.");
            return;
        }
        end_login();
    }

    guest = 0;
    anonymous = 0;
    acl_remove();
-------------------------------------------------------

I suggest that you make this change.  This is probably something that
needs to go to the bugtraq list.  I am a bit hesitant in doing so until
you have had a chance to correct your servers.  I'll wait a couple days.

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 04:09:51 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA05261;
	Fri, 7 Nov 1997 04:00:52 -0600 (CST)
Received: from nomina.lu.se (nomina.lu.se [130.235.132.90])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id DAA05151
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 03:57:29 -0600 (CST)
Received: from lu-dal2.ling.lu.se by nomina.lu.se with SMTP
	(5.65/IDA-1.2.8) id AA28036; Fri, 7 Nov 97 11:00:56 +0100
Received: from LU-DAL2/SpoolDir by lu-dal2.dal.lu.se (Mercury 1.21);    7 Nov 97 11:01:38 +0100
Received: from SpoolDir by LU-DAL2 (Mercury 1.21); 7 Nov 97 11:01:12 +0100
Message-Id: <2E9FC927A65@lu-dal2.dal.lu.se>
Date: Fri, 7 Nov 1997 11:01:08 GMT+200
Reply-To: Stig.Isaksson@dal.lu.se
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Stig Isaksson" <Stig.Isaksson@dal.lu.se>
To: wu-ftpd@wugate.wustl.edu
Subject: What is (not) happening?
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
X-Pmrqc: 1
X-Mailer: Pegasus Mail for Windows (v2.33)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi everybody (?),

I am (was) new to this list, so I can't (couldn't) contribute much, 
but I listened carefully to you more experienced participants and 
learned a lot which I was very grateful to be able to implement in 
our wu-ftpd installation.

Now I haven't seen any msgs at all to this list for nearly two whole 
months now. These are the explanations I can think of:

1. I'm ostracized.

2. The list has ceased to exist.

3. The latest version of wu-ftpd (which I - as the only one - haven't 
obtained yet) has proved perfect and rendered the list unneeded.

Wether any of these statements is true or false XOR there is a 4th 
explanation: Is there anyone alive out there who could enlighten me?

Best Regards,
Stig Isaksson

------------------------------------------------------------
Stig Isaksson
Dialekt- och ortnamnsarkivet
Helgonabacken 14
S-223 62 LUND
S W E D E N
tel.: +46 46 222 74 68   fax: +46 46 15 23 81
e-mail: Stig.Isaksson@DAL.lu.se

<Forstaor MIME    Understands MIME>
------------------------------------------------------------

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 04:52:15 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA06776;
	Fri, 7 Nov 1997 04:44:30 -0600 (CST)
Received: from fw-int.vis.com.tw (fw-ext.vis.com.tw [202.39.62.253])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA07123
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 04:42:51 -0600 (CST)
Received: from mail.vis.com.tw by fw-int.vis.com.tw (SMI-8.6/SMI-SVR4)
	id SAA13050; Fri, 7 Nov 1997 18:40:43 +0800
Received: by mail.vis.com.tw(Lotus SMTP MTA v1.1 (385.6 5-6-1997))  id 48256548.003A9D1A ; Fri, 7 Nov 1997 18:40:13 +0800
Message-Id: <48256548.003A1273.00@mail.vis.com.tw>
Date: Fri, 7 Nov 1997 18:39:50 +0800
Reply-To: wcsu@mail.vis.com.tw
Sender: owner-wu-ftpd@wugate.wustl.edu
From: wcsu@mail.vis.com.tw
To: wu-ftpd@wugate.wustl.edu
Subject: core dump when dir
Mime-Version: 1.0
Content-type: text/plain; charset=big5
X-Lotus-FromDomain: VIS
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN






Hi, Sorry if this is an FAQ, though I have read a FAQ .

In Solaris 2.5.1:

I got ls from gnu's fsutil and put onto ~ftp/bin with some other libraries
need in ~ftp/usr/lib.

chroot ~ftp /bin/ls  works fine.

But when I type "dir " in ftp session, nothing appears and core dumps on
the directory.
I have checked ~ftp/etc/group.

root::0:root
guestgroup::a_numer:ftp

Can anyone give me some hint or suggestion?

Thanks a lot!



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 06:59:56 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id GAA13112;
	Fri, 7 Nov 1997 06:52:07 -0600 (CST)
Received: from mdp.edu.ar (marta@[200.0.182.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id GAA12901
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 06:48:27 -0600 (CST)
Received: from localhost (marta@localhost)
	by mdp.edu.ar (8.8.5/8.8.5) with SMTP id JAA07119
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:50:56 -0300
Message-Id: <Pine.LNX.3.95.971107095027.7036C-100000@bart.mdp.edu.ar>
Date: Fri, 7 Nov 1997 09:50:56 -0300 (ARST)
Reply-To: marta@mdp.edu.ar
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Marta Ferreyra <marta@mdp.edu.ar>
To: wu-ftpd@wugate.wustl.edu
Subject: chroot for guest 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Hello!

I need to do chroot for users guest in osf1, I have ftpd but I don't have
ftpacces file, I have only ftpusers. I try to get wu-ftpd for osf1 but I
can't find it.
Can you tell me where can I find it or haw can I do chroot for guest in
osf1?

thanks in advace

UNIVERSIDAD NACIONAL DE MAR DEL PLATA    
Departamento C. de Computos       
Ing. Marta I. Ferreyra          
marta@mdp.edu.ar
TE:023-752728               



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:19:23 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA22808;
	Fri, 7 Nov 1997 09:07:42 -0600 (CST)
Received: from keystone.cmp.com (KEYSTONE.CMP.COM [192.155.65.22])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA21878
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:00:35 -0600 (CST)
Received: from SMTPGATE (smtpgate.cmp.com [192.155.65.13]) by keystone.cmp.com (8.8.5/8.8.2) with SMTP id JAA04751 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:56:19 -0500 (EST)
Message-Id: <TFSHVEAY@CMP.COM>
Date: Fri, 7 Nov 1997 9:55:06 -0500
Reply-To: snanos@cmp.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: snanos@cmp.com
To: wu-ftpd@wugate.wustl.edu
Subject: Help!
MIME-version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: TFS Gateway /222000000/223042324/223004391/223200514/
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id JAA21821
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi all,

Pardon my ignorance, but what is the command to bring the server back up   
after executing an ftpshut?  This is an emergency!

version beta15
Solaris 2.5.1

Thanks for your help -

Sharon.
*
*
*  Sharon Nanos               Sr. Systems Analyst
*  CMP Media Inc.            600 Community Drive     Manhasset, NY  11030
*  voice: 516-562-7218     Fax: 516-562-7488        email: snanos@cmp.com
*  www: http://www.cmpnet.com                "What you resist, you make   
more of"
*  

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:23:50 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA23679;
	Fri, 7 Nov 1997 09:16:57 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA20258
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:06:43 -0600 (CST)
Message-Id: <199711071507.JAA22814@landfield.com>
Date: Fri, 7 Nov 1997 09:07:27 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: Stig.Isaksson@dal.lu.se
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: What is (not) happening?
In-Reply-To: <2E9FC927A65@lu-dal2.dal.lu.se> from "Stig Isaksson" at Nov 7, 97 11:01:08 am
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# I am (was) new to this list, so I can't (couldn't) contribute much, 
# but I listened carefully to you more experienced participants and 
# learned a lot which I was very grateful to be able to implement in 
# our wu-ftpd installation.
# 
# Now I haven't seen any msgs at all to this list for nearly two whole 
# months now. These are the explanations I can think of:
# 
# 1. I'm ostracized.

:) If you don't participate, well what can I say ? ;)

# 2. The list has ceased to exist.

Nope.

# 3. The latest version of wu-ftpd (which I - as the only one - haven't 
# obtained yet) has proved perfect and rendered the list unneeded.

:) I'll leave this one alone. ;)

# Wether any of these statements is true or false XOR there is a 4th 
# explanation: Is there anyone alive out there who could enlighten me?
# 
# Best Regards,
# Stig Isaksson

I have subscribed you to the list.  It seems that you were not on the 
list at wustl.edu.  There could be a couple reasons for this.  
 
        1. If there were massive errors in mail getting to you 
           then one of the list owners may have removed you.  
           This normally only done after trying to contact the site 
           postmaster and letting them know of the problem.  If that 
           fails as well then the address is a canidate for removal. 
           This type of action is not taken lightly.
 
        2. You changed jobs and your mail is no longer being forwarded
           from your old account.
 
        3. You were receiving wu-ftpd via a local mail exploder and the 
           local admin removed your address from the exploder list. 
           
        4. listproc had a brain fart. 

I don't remember seeing massive bounces from your address that would cause 
you to become a canidate for #1. You will know if #2 is a potential option
but I suspect that leaves only #3 and #4 as the cuprits.
 
Sorry I don't have a good answer for you but you are back on the list now. 
Let me know if you still have troubles receiving messages. 

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:36:32 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA24989;
	Fri, 7 Nov 1997 09:29:24 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA24783
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:28:39 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.7/8.8.7) with SMTP id JAA07646;
	Fri, 7 Nov 1997 09:28:30 -0600
Message-Id: <Pine.LNX.3.96.971107092640.7232E-100000@ns1.fni.com>
Date: Fri, 7 Nov 1997 09:28:30 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: Stig Isaksson <Stig.Isaksson@dal.lu.se>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: What is (not) happening?
In-Reply-To: <2E9FC927A65@lu-dal2.dal.lu.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


I have been mysteriously unsubscribed several times, so don't take it
personally.  So much for high dollar list management software.  The
goodies are below. 

   -- Michael

On Fri, 7 Nov 1997, Stig Isaksson wrote:

> Now I haven't seen any msgs at all to this list for nearly two whole 
> months now. These are the explanations I can think of:


This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

There are additional security references in the above docs.


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:50:05 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25849;
	Fri, 7 Nov 1997 09:43:34 -0600 (CST)
Received: from svha0001.clipper.ssb.com (svha0001.clipper.ssb.com [192.250.113.12])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA25743
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:38:59 -0600 (CST)
Received: from ssga.statestreet.com (ga010082.ssga.ssb.com [147.141.10.82])
	by svha0001.clipper.ssb.com (8.8.5/8.8.5) with SMTP id KAA05898
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 10:38:52 -0500 (EST)
Received: from am693.ssga.statestreet.com by ssga.statestreet.com (SMI-8.6/SMI-SVR4)
	id KAA10758; Fri, 7 Nov 1997 10:39:29 -0500
Received: by am693.ssga.statestreet.com (4.1/SMI-4.1)
	id AA23636; Fri, 7 Nov 97 10:39:32 EST
Received: by am693.ssga.statestreet.com (4.1/SMI-4.1)
	id AA23632; Fri, 7 Nov 97 10:39:31 EST
Received: from SSGA with "Lotus Notes Mail Gateway for SMTP" id
  39EF1549692348998525654800559E21; Fri,  7 Nov 97 10:39:31 
Message-Id: <9711071539.AA23632@am693.ssga.statestreet.com>
Date: 7 Nov 97 10:45:40 EST
Reply-To: Liang_Chen@ssga.statestreet.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Liang Chen/BOSTON/SSGA   <Liang_Chen@ssga.statestreet.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: The timestamp isn't correct for file transfer
Mime-Version: 1.0
Content-Type: Text/Plain
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I am running wu-ftpd 2.4 in Solaris 2.5.1. When a guest user put a file in, the 
timestamp is 5 hours ahead the real local time. I do not see a problem for a 
real user. Is there a configuration file setting the timezone?

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:52:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA26496;
	Fri, 7 Nov 1997 09:45:48 -0600 (CST)
Received: from doctor.nl2k.ab.ca (doctor@doctor.nl2k.ab.ca [204.209.81.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA25611
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:39:31 -0600 (CST)
Received: (from doctor@localhost)
	by doctor.nl2k.ab.ca (8.8.8/8.8.5) id IAA11728;
	Fri, 7 Nov 1997 08:40:47 -0700 (MST)
Message-Id: <199711071540.IAA11728@doctor.nl2k.ab.ca>
Date: Fri, 7 Nov 1997 08:40:47 -0700 (MST)
Reply-To: doctor@doctor.nl2k.ab.ca
Sender: owner-wu-ftpd@wugate.wustl.edu
From: The Doctor <doctor@doctor.nl2k.ab.ca>
To: sob@academ.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Concerning the virtual server support problem in beta-15
In-Reply-To: <199711070554.XAA11341@academ.com> from "Stan Barber" at Nov 6, 97 11:54:19 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> 
> This will be fixed in beta-16. I was hopeful there would not be a beta-16,
> but there will be since there are a number of things (including this) that
> have come up.
> 
> I am glad to say, the list is getting smaller with each release, though.
> 
> More on when beta-16 will be available soon.
> 
> 
> -- 
> Stan   | Academ Consulting Services        |internet: sob@academ.com
> Olan   | For more info on academ, see this |uucp: {mcsun|amdahl}!academ!sob
> Barber | URL- http://www.academ.com/academ |Opinions expressed are only mine.
> 

Hopefully, beta-16 is the last beta, but WHEN will you determine which will be
the last beta?

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 09:56:05 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA26099;
	Fri, 7 Nov 1997 09:48:26 -0600 (CST)
Received: from academ.com (sob@academ.com [198.137.249.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA25840
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 09:47:49 -0600 (CST)
Received: (from sob@localhost)
	by academ.com (8.8.5/8.8.5) id JAA15907;
	Fri, 7 Nov 1997 09:47:44 -0600 (CST)
Message-Id: <199711071547.JAA15907@academ.com>
Date: Fri, 7 Nov 1997 09:47:44 CST
Reply-To: sob@academ.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: sob@academ.com (Stan Barber)
To: The Doctor <doctor@doctor.nl2k.ab.ca>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Concerning the virtual server support problem in beta-15
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

The last beta will be the one I am most comfortable turning into a release.

Right now, I am not confortable turning beta-15 into a release because the
number of bugs I consider "serious" is higher than I like. When that is
not the case, that beta (whichever one it is) will become release.


-- 
Stan   | Academ Consulting Services        |internet: sob@academ.com
Olan   | For more info on academ, see this |uucp: {mcsun|amdahl}!academ!sob
Barber | URL- http://www.academ.com/academ |Opinions expressed are only mine.

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 10:32:08 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA29498;
	Fri, 7 Nov 1997 10:20:43 -0600 (CST)
Received: from keystone.cmp.com (KEYSTONE.CMP.COM [192.155.65.22])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA29833
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 10:19:20 -0600 (CST)
Received: from SMTPGATE (smtpgate.cmp.com [192.155.65.13]) by keystone.cmp.com (8.8.5/8.8.2) with SMTP id LAA07439 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:15:08 -0500 (EST)
Message-Id: <TFSIVYDT@CMP.COM>
Date: Fri, 7 Nov 1997 11:13:32 -0500
Reply-To: snanos@cmp.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: snanos@cmp.com
To: wu-ftpd@wugate.wustl.edu
Subject: FW: Help!
MIME-version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: TFS Gateway /222000000/223042324/223004391/223200514/
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id KAA29886
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Thanks to all who answered - Simple enough, but elusive at the time.

Sharon.

 ----------
From:  kent@landfield.com[SMTP:MIME @INTERNET {kent@landfield.com}]
Sent:  Friday, November 07, 1997 10:21 AM
To:  snanos@cmp.com
Subject:  Re: Help!

 --------------------------------------------------------------------------  
 --
# Hi all,
#
# Pardon my ignorance, but what is the command to bring the server back   
up
# after executing an ftpshut?  This is an emergency!
#
# version beta15
# Solaris 2.5.1
#
# Thanks for your help -
#
# Sharon.
# *
# *
# *  Sharon Nanos               Sr. Systems Analyst
# *  CMP Media Inc.            600 Community Drive     Manhasset, NY   
 11030
# *  voice: 516-562-7218     Fax: 516-562-7488        email:   
snanos@cmp.com
# *  www: http://www.cmpnet.com                "What you resist, you make   
    

# more of"

Sharon, remove the /etc/shutmsg file.

Actually it is what ever you have specified in the 'shutdown' directive
in the ftpaccess file.  By default it is

shutdown /etc/shutmsg

 --
Kent Landfield                        Phone: 1-817-545-2502
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 11:36:55 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA03662;
	Fri, 7 Nov 1997 11:30:06 -0600 (CST)
Received: from jester.ti.com (jester.ti.com [192.94.94.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA04035
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:28:42 -0600 (CST)
Received: from dadd.ti.com. ([156.117.179.59]) by jester.ti.com (8.8.7) with ESMTP id LAA23543; Fri, 7 Nov 1997 11:28:11 -0600 (CST)
Received: from pavis.dadd.ti.com by dadd.ti.com. (8.8.4/)
	  id LAA26960; Fri, 7 Nov 1997 11:28:08 -0600 (CST)
Received: by pavis.dadd.ti.com id <AA244323687@pavis.dadd.ti.com>; Fri, 7 Nov 1997 11:28:07 -0600
Message-Id: <199711071728.AA244323687@pavis.dadd.ti.com>
Date: Fri, 7 Nov 97 11:28:06 CST
Reply-To: bobl@ti.com (Bob Luckin)
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bob Luckin <bobl@dadd.ti.com>
To: wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd-bugs@academ.com
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <9711062113.AA35493@saloon.eng.intercon.com>; from "Philip Kearney III" at Nov 6, 97 9:13 pm
X-Mimi-Options: HEADERS TI2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, Nov 6, 1997 at 8:35:01 PM, Bob Luckin <bobl@dadd.ti.com> wrote:
> 
> > My interpretation of this situation is that the service is still 
> > available - just not to any more anon users, who are being denied while 
> > the limit is reached.  The other classes of users can still access it, 
> > assuming their limits have not been reached. 
> >  
> > So I think that the 530 you are seeing is correct, and a 421 would be 
> > incorrect in this case. 
> >  
> > I may of course be shouted down...  :-) 

> See but, according to STD 9, a 421 is defined as:
> 
> 421 Service not available, closing control connection.
>     This may be a reply to any command if the service knows it
>     must shut down.

Philip Kearney replied :-
> And the wu-ftpd service does, I'm almost positive, close the control 
> connection in this situation.  If it issues a 530 and then closes the control 
> connection, then to me this seems wrong.  If it knows it is going to close the 
> control connection, then it should be issuing a 421 not a 530 because this is 
> an entirely different situation from when access is denied for a specific 
> username and the server sends a 530.  In that case, it allows the user the 
> ability to try another username.

OK, now I understand your argument.  You're saying the issuance of a 421
should be predicated by the closure of the control connection.

I'm not familliar with STD 9, which you quote.  However, I have looked at
RFC959, which covers File Transfer Protocol (FTP), and is what wu-ftpd is
supposed to comply with...

Here's what RFC959 says about reply codes beginning with 4 and 5 :-

            4yz   Transient Negative Completion reply

               The command was not accepted and the requested action did
               not take place, but the error condition is temporary and
               the action may be requested again.  The user should
               return to the beginning of the command sequence, if any.
               It is difficult to assign a meaning to "transient",
               particularly when two distinct sites (Server- and
               User-processes) have to agree on the interpretation.
               Each reply in the 4yz category might have a slightly
               different time value, but the intent is that the
               user-process is encouraged to try again.  A rule of thumb
               in determining if a reply fits into the 4yz or the 5yz
               (Permanent Negative) category is that replies are 4yz if
               the commands can be repeated without any change in
               command form or in properties of the User or Server
               (e.g., the command is spelled the same with the same
               arguments used; the user does not change his file access
               or user name; the server does not put up a new
               implementation.)

            5yz   Permanent Negative Completion reply

               The command was not accepted and the requested action did
               not take place.  The User-process is discouraged from
               repeating the exact request (in the same sequence).  Even
               some "permanent" error conditions can be corrected, so
               the human user may want to direct his User-process to
               reinitiate the command sequence by direct action at some
               point in the future (e.g., after the spelling has been
               changed, or the user has altered his directory status.)

Clearly if the control connection is closed, the user cannot repeat the
request to login.  This is a permanent condition, and a response beginning
with a 5 is more appropriate than one beginning with a 4.

Further on, RFC959 defines the second digit to be a 3 if the response is
a reply for the login process and accounting procedure.  And since the
response you got was to an attempt to login, a 3 for the second digit is
clearly appropriate.

Still further on, the RFC specifically defines a 530 as :-

         530 Not logged in.

This is also appropriate for your example.  So I believe that wu-ftpd is
in compliance with RFC959 and is giving you the correct response in the
situation you describe.  If other FTP servers aren't, then perhaps they are
at fault...

Cheers, Bob
-- 
Bob Luckin      bobl@ti.com      "Coder adapt; FTP Ada, redo C"
                                 [http://www.dhc.net/~luckin/palindromes.html]

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 11:42:48 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA04567;
	Fri, 7 Nov 1997 11:36:10 -0600 (CST)
Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA04346
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:35:46 -0600 (CST)
Received: from dadd.ti.com. ([156.117.180.253]) by gatekeep.ti.com (8.8.7) with ESMTP id LAA01162 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:37:04 -0600 (CST)
Received: from pavis.dadd.ti.com by dadd.ti.com. (8.8.4/)
	  id LAA27293; Fri, 7 Nov 1997 11:35:12 -0600 (CST)
Received: by pavis.dadd.ti.com id <AA244454111@pavis.dadd.ti.com>; Fri, 7 Nov 1997 11:35:11 -0600
Message-Id: <199711071735.AA244454111@pavis.dadd.ti.com>
Date: Fri, 7 Nov 97 11:35:11 CST
Reply-To: bobl@ti.com (Bob Luckin)
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bob Luckin <bobl@dadd.ti.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: The timestamp isn't correct for file transfer
In-Reply-To: <9711071539.AA23632@am693.ssga.statestreet.com>; from "Liang Chen/BOSTON/SSGA" at Nov 7, 97 10:45 am
X-Mimi-Options: HEADERS TI2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

>I am running wu-ftpd 2.4 in Solaris 2.5.1. When a guest user put a file in, the 
>timestamp is 5 hours ahead the real local time. I do not see a problem for a 
>real user. Is there a configuration file setting the timezone?

Looks like you need to have the timezone info under your chrooted area.
The original Solaris 2.5.1 man page should tell you what files you need to
copy to the chrooted anonymous FTP area, including timezone stuff.  You
might try copying this to the chrooted area you are using for your guest user
and see if this solves the problem.

Cheers, Bob
-- 
Bob Luckin      bobl@ti.com      "I say ETA FTP ?  Me tempt fate, ya ? - Si !"
                                 [http://www.dhc.net/~luckin/palindromes.html]

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 12:10:26 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA07591;
	Fri, 7 Nov 1997 12:01:47 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA06099
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 11:57:16 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id MAA22978;
	Fri, 7 Nov 1997 12:56:56 -0500
Message-Id: <Pine.LNX.3.95.971107123924.22863D-100000@gaia.vr.net>
Date: Fri, 7 Nov 1997 12:56:56 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Bob Luckin <bobl@ti.com>
Cc: wu-ftpd@wugate.wustl.edu, wu-ftpd-bugs@academ.com
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <199711071728.AA244323687@pavis.dadd.ti.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, 7 Nov 1997, Bob Luckin wrote:

> I'm not familliar with STD 9, which you quote.  However, I have looked
> at RFC959, which covers File Transfer Protocol (FTP), and is what
> wu-ftpd is supposed to comply with... 

STD9 _is_ (for most purposes) RFC959.  It has completed the IETF standards
track and, therefore, supersedes RFC959.  So wu-ftpd is actually supposed
to comply with STD9.  Since there's almost no difference between the two
documents, it's a very fine distinction at this time. 

I would agree with your argument, 5xx is more appropriate than 4xx.  For
the purposes of the session in progress, the error is non-transcient. 
Having just sent a message indicating the session is hopeless, it seems
only logical to close down the connection.

It seems to me that the design of the server is important when making the
determination.  Rather than saying "this server is right and that one is
wrong", I'd prefer to believe that a server responding with 4xx will
provide a means to re-evaluate the user limits without terminating the
session.  I'd be loath to run such a server, however, since it smacks of a
DoS hole.


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 12:11:33 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA07757;
	Fri, 7 Nov 1997 12:03:26 -0600 (CST)
Received: from mercury.infoshare.net (firewall-user@mercury.infoshare.net [199.212.229.202])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA06908
	for <wu-ftpd@mail.wustl.edu>; Fri, 7 Nov 1997 12:00:03 -0600 (CST)
Received: by mercury.infoshare.net (8.6.12/8.6.9)
	id NAA08385; Fri, 7 Nov 1997 13:00:00 -0500
Received: from unknown(142.148.10.56) by mercury.infoshare.net via smap (3.2)
	id xma008246; Fri, 7 Nov 97 12:59:33 -0500
Received: from independence.fundserv.com (independence [142.148.10.35])
	by nfshost.fundserv.com (8.8.7/8.8.7) with ESMTP id MAA05182
	for <wu-ftpd@mail.wustl.edu>; Fri, 7 Nov 1997 12:57:52 -0500 (EST)
Received: (from steven@localhost)
	by independence.fundserv.com (8.8.7/8.8.7) id MAA11988;
	Fri, 7 Nov 1997 12:59:32 -0500 (EST)
Message-Id: <Pine.3.89.9711071205.A11668-0100000@independence>
Date: Fri, 7 Nov 1997 12:59:32 -0500 (EST)
Reply-To: steven@FundSERV.COM
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Steve Szabo <steven@FundSERV.COM>
To: wu-ftpd@wugate.wustl.edu
Subject: WU - Solaris Problem
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


I need to know how to set-up the special files under
~/ftp/dev (i.e. tcp, etc) for Solaris 2.5.1. Any
assistance would be appreciated.

Thanks

 ========================================================
| Steven Szabo        | Microsoft may rule the world one |
| Toronto, ON         | day. That doesn't mean you have  |
| Canada              | to join their collective.        |
|                     |                                  |
| steven@corelan.com  |   The alternative -> LinuxOS     |
 ========================================================


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 12:21:14 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA09017;
	Fri, 7 Nov 1997 12:14:35 -0600 (CST)
Received: from mail.twistercom.com (mail.twistercom.com [208.21.180.6])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA08169
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 12:10:50 -0600 (CST)
Received: from helios ([207.235.38.66]) by mail.twistercom.com
          (Netscape Messaging Server 3.01)  with SMTP id AAA23362
          for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 12:10:58 -0600
Message-Id: <01bceba8$b676bfc0$4226ebcf@helios.twistercom.com>
Date: Fri, 7 Nov 1997 12:12:30 -0600
Reply-To: marius@twistercom.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Marius Strom" <marius@twistercom.com>
To: <wu-ftpd@wugate.wustl.edu>
Subject: Re: WU - Solaris Problem
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Steven,
Here is a little script I wrote that will do it:

#!/bin/sh
mknod dev/null c 13 2
mknod dev/tcp c 11 42
mknod dev/ticotsord c 105 1
mknod dev/udp c 11 41
mknod dev/zero c 13 12
chmod dev/664 *
chmod dev/666 tcp

Quick and dirty, but it gets the job done.. Make sure you run it from the
directory to be chroot'd..

Marius Strom

-----Original Message-----
From: Steve Szabo <steven@FundSERV.COM>
To: wu-ftpd@wugate.wustl.edu <wu-ftpd@wugate.wustl.edu>
Date: Friday, November 07, 1997 12:07 PM
Subject: WU - Solaris Problem


>
>I need to know how to set-up the special files under
>~/ftp/dev (i.e. tcp, etc) for Solaris 2.5.1. Any
>assistance would be appreciated.
>
>Thanks
>
> ========================================================
>| Steven Szabo        | Microsoft may rule the world one |
>| Toronto, ON         | day. That doesn't mean you have  |
>| Canada              | to join their collective.        |
>|                     |                                  |
>| steven@corelan.com  |   The alternative -> LinuxOS     |
> ========================================================
>
>


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 13:25:07 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA15426;
	Fri, 7 Nov 1997 13:18:07 -0600 (CST)
Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA14859
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 13:12:43 -0600 (CST)
Received: from egate2.mnet.uswest.com (egate-ne1.mnet.uswest.com [151.117.138.135])
	by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id MAA05460
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 12:12:12 -0700 (MST)
Received: from easthub.mnet.uswest.com (easthub.mnet.uswest.com [151.117.26.86]) by egate2.mnet.uswest.com (8.7.1/8.7.1) with SMTP id NAA12555 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 13:12:11 -0600 (CST)
Received: from netmail2.mnet.uswest.com (netmail2.mnet.uswest.com [151.119.114.11]) by easthub.mnet.uswest.com (8.6.11/8.6.11) with ESMTP id NAA12113 for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 13:19:14 -0600
Received: from pcs-chekov ([151.116.59.56]) by netmail2.mnet.uswest.com
          (Netscape Mail Server v2.02) with SMTP id AAA13079
          for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 12:12:08 -0700
Message-Id: <3463680A.20DF@uswest.com>
Date: Fri, 07 Nov 1997 12:12:10 -0700
Reply-To: bwaite@uswest.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Waite <bwaite@uswest.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: ftpwho
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: bwaite@easthub.mnet.uswest.com
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hey all, anyone have any luck getting useful info out of 'ftpwho' on
SGI's?  The proc list isn't overwritten (by default), so the 'ps' output
in ftpwho doesn't say very much.

-Brad

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 14:22:51 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA22355;
	Fri, 7 Nov 1997 14:14:45 -0600 (CST)
Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA21424
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 14:08:55 -0600 (CST)
Received: from dadd.ti.com. ([156.117.180.253]) by gatekeep.ti.com (8.8.7) with ESMTP id OAA14864; Fri, 7 Nov 1997 14:10:08 -0600 (CST)
Received: from pavis.dadd.ti.com by dadd.ti.com. (8.8.4/)
	  id OAA04318; Fri, 7 Nov 1997 14:08:18 -0600 (CST)
Received: by pavis.dadd.ti.com id <AA245083297@pavis.dadd.ti.com>; Fri, 7 Nov 1997 14:08:17 -0600
Message-Id: <199711072008.AA245083297@pavis.dadd.ti.com>
Date: Fri, 7 Nov 97 14:08:16 CST
Reply-To: bobl@ti.com (Bob Luckin)
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bob Luckin <bobl@dadd.ti.com>
To: lundberg@vr.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <Pine.LNX.3.95.971107123924.22863D-100000@gaia.vr.net>; from "Gregory A Lundberg" at Nov 7, 97 12:56 (noon)
X-Mimi-Options: HEADERS TI2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> On Fri, 7 Nov 1997, Bob Luckin wrote:
> 
> > I'm not familliar with STD 9, which you quote.  However, I have looked
> > at RFC959, which covers File Transfer Protocol (FTP), and is what
> > wu-ftpd is supposed to comply with... 

Gregory Lundberg replied :-
> STD9 _is_ (for most purposes) RFC959.  It has completed the IETF standards
> track and, therefore, supersedes RFC959.  So wu-ftpd is actually supposed
> to comply with STD9.  Since there's almost no difference between the two
> documents, it's a very fine distinction at this time. 

Fair enough.  Is there an on-line copy which Kent could link to from the
WU-FTPD resource center ?


> I would agree with your argument, 5xx is more appropriate than 4xx.  For
> the purposes of the session in progress, the error is non-transcient. 
> Having just sent a message indicating the session is hopeless, it seems
> only logical to close down the connection.
> 
> It seems to me that the design of the server is important when making the
> determination.  Rather than saying "this server is right and that one is
> wrong", I'd prefer to believe that a server responding with 4xx will
> provide a means to re-evaluate the user limits without terminating the
> session.  I'd be loath to run such a server, however, since it smacks of a
> DoS hole.

Exactly.  This might apply _if_ the server didn't close the control
connection, but allowed the user to try to log in with a different id; you
could argue in that case that it was a transient situation.  (But since
the user is not retrying the exact same command sequence - they are supplying
a different account name - you could perhaps also argue that this should still
be a 5xx.  :-)  Ah well, since wu-ftpd closes the connection anyway, it's a
moot point.)

Cheers, Bob
-- 
Bob Luckin      bobl@ti.com      "Dick's attempt FTP met task CID"
                                 [http://www.dhc.net/~luckin/palindromes.html]

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 14:29:24 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA23020;
	Fri, 7 Nov 1997 14:21:20 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA21820
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 14:16:41 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id PAA24308;
	Fri, 7 Nov 1997 15:16:37 -0500
Message-Id: <Pine.LNX.3.95.971107151125.24264A-100000@gaia.vr.net>
Date: Fri, 7 Nov 1997 15:16:37 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Bob Luckin <bobl@ti.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <199711072008.AA245083297@pavis.dadd.ti.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, 7 Nov 1997, Bob Luckin wrote:

> > STD9 _is_ (for most purposes) RFC959.  It has completed the IETF standards
> > track and, therefore, supersedes RFC959.  So wu-ftpd is actually supposed
> > to comply with STD9.  Since there's almost no difference between the two
> > documents, it's a very fine distinction at this time. 
> 
> Fair enough.  Is there an on-line copy which Kent could link to from the
> WU-FTPD resource center ?

Well lessee .. InterNIC has one:

  http://ds1.internic.net/std/std9.txt

And, of course, there's the horse's mouth:

  http://www.isi.edu/rfc-editor/
  ftp://venera.isi.edu/in-notes/std/std9.txt

I'd suggest, though, that Kent grab a local copy for his pages, and
include one in the documentation rolled into the tarball.


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 15:27:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA30101;
	Fri, 7 Nov 1997 15:17:56 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA25342
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 15:15:47 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AA06123
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Fri, 7 Nov 1997 16:13:10 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id QAA23191; Fri, 7 Nov 1997 16:28:02 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id QAA23089; Fri, 7 Nov 1997 16:13:28 -0500
Message-Id: <199711072113.QAA23089@grandpa.rl.kodak.com>
Date: Fri, 7 Nov 1997 16:13:28 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Cc: dcox@kodak.com
Subject: Too many children
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Greetings.

I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
some reason, my parent process spawns multiple child
processes:


    root 18944   560  0 08:21:26 ?         0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
    root 18945   560  0 08:21:32 ?         0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
    root 19195   560  0 08:57:07 ?         0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
    root 19194   560  0 08:56:59 ?         0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd

I recently did a 'ftpcount' with a return of 125, when in fact there
was actually only 45 users. It seems like old processes don't go away
after they have been completed. Do you think that this is a HP kernel
problem, or is there something that I can tweak in the wuftpd code to 
fix it?

Also, speaking of tweaking the code... how can I increase my number of 
guestgroups from 50 to about 500? TIA!

 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov  7 21:00:19 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA25748;
	Fri, 7 Nov 1997 20:47:13 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA32347
	for <wu-ftpd@wugate.wustl.edu>; Fri, 7 Nov 1997 20:43:23 -0600 (CST)
Message-Id: <199711080244.UAA25645@landfield.com>
Date: Fri, 7 Nov 1997 20:44:05 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: bobl@ti.com
Cc: lundberg@vr.net, wu-ftpd@wugate.wustl.edu
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <199711072008.AA245083297@pavis.dadd.ti.com> from "Bob Luckin" at Nov 7, 97 02:08:16 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# > On Fri, 7 Nov 1997, Bob Luckin wrote:
# > 
# > > I'm not familliar with STD 9, which you quote.  However, I have looked
# > > at RFC959, which covers File Transfer Protocol (FTP), and is what
# > > wu-ftpd is supposed to comply with... 
# 
# Gregory Lundberg replied :-
# > STD9 _is_ (for most purposes) RFC959.  It has completed the IETF standards
# > track and, therefore, supersedes RFC959.  So wu-ftpd is actually supposed
# > to comply with STD9.  Since there's almost no difference between the two
# > documents, it's a very fine distinction at this time. 
# 
# Fair enough.  Is there an on-line copy which Kent could link to from the
# WU-FTPD resource center ?

;) Take a look at http://www.landfield.com/rfcs/ ;)

BTW... RFC 959 and STD9 are the same document exactly. 

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Sat Nov  8 12:48:16 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA20113;
	Sat, 8 Nov 1997 12:39:39 -0600 (CST)
Received: from optima.cs.arizona.edu (optima.CS.Arizona.EDU [192.12.69.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA19773
	for <wu-ftpd@wugate.wustl.edu>; Sat, 8 Nov 1997 12:34:22 -0600 (CST)
Received: from lectura.CS.Arizona.EDU (lectura.CS.Arizona.EDU [192.12.69.186])
	by optima.cs.arizona.edu (8.8.7/8.8.7) with ESMTP id LAA18740
	for <wu-ftpd@wugate.wustl.edu>; Sat, 8 Nov 1997 11:34:21 -0700 (MST)
Received: from localhost (localhost [127.0.0.1])
	by lectura.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id LAA28150
	for <wu-ftpd@wugate.wustl.edu>; Sat, 8 Nov 1997 11:34:20 -0700 (MST)
Message-Id: <Pine.SOL.3.95.971108113125.27990B-100000@lectura.CS.Arizona.EDU>
Date: Sat, 8 Nov 1997 11:34:19 -0700 (MST)
Reply-To: Jim Davis <jdavis@CS.Arizona.EDU>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jim Davis <jdavis@CS.Arizona.EDU>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: 530 Response Code instead of 421 when limits are reached
In-Reply-To: <199711080244.UAA25645@landfield.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'm surprised no one has mentioned rfc1123 yet, which has a relevant
section (4.1.2.11) about this very issue.


From owner-wu-ftpd@wugate.wustl.edu  Sun Nov  9 21:04:07 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA32180;
	Sun, 9 Nov 1997 20:57:32 -0600 (CST)
Received: from fw-int.vis.com.tw (fw-ext.vis.com.tw [202.39.62.253])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA29037
	for <wu-ftpd@wugate.wustl.edu>; Sun, 9 Nov 1997 20:51:40 -0600 (CST)
Received: from mail.vis.com.tw by fw-int.vis.com.tw (SMI-8.6/SMI-SVR4)
	id KAA15103; Mon, 10 Nov 1997 10:49:24 +0800
Received: by mail.vis.com.tw(Lotus SMTP MTA v1.1 (385.6 5-6-1997))  id 4825654B.000F836D ; Mon, 10 Nov 1997 10:49:26 +0800
Message-Id: <4825654B.000EC899.00@mail.vis.com.tw>
Date: Mon, 10 Nov 1997 10:48:28 +0800
Reply-To: wcsu@mail.vis.com.tw
Sender: owner-wu-ftpd@wugate.wustl.edu
From: wcsu@mail.vis.com.tw
To: wu-ftpd@wugate.wustl.edu
Subject: cannot show owner/group names when dir
Mime-Version: 1.0
Content-type: text/plain; charset=big5
X-Lotus-FromDomain: VIS
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN






     When using dir in a wu-ftp session, owner and group field is displayed
by uid/gid number instead of
     names defined in passwd and group file.

     I already have ~ftp/etc/group , and passwd installed. Where may it go
wrong?  Please give me some
     hint. Thank you.





From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 02:19:21 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id CAA24151;
	Mon, 10 Nov 1997 02:11:29 -0600 (CST)
Received: from eagle.shenzhen.cngb.com (root@[203.93.104.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id CAA23943
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 02:04:55 -0600 (CST)
Received: from shenzhen.cngb.com (wzy@localhost [127.0.0.1])
	by eagle.shenzhen.cngb.com (8.8.6/8.8.6) with ESMTP id QAA07665;
	Mon, 10 Nov 1997 16:02:56 +0800
Message-Id: <3466BFAF.64F0AFD3@shenzhen.cngb.com>
Date: Mon, 10 Nov 1997 16:02:55 +0800
Reply-To: wzy@shenzhen.cngb.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: ZhenYu Wang <wzy@shenzhen.cngb.com>
To: bjkramer@pluto.njcc.com
Cc: wu-ftpd@wugate.wustl.edu, scrappy@ki.net
Subject: a problem in virtual ftp server
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 7bit
X-Sender: wzy@eagle.shenzhen.cngb.com
X-Mailer: Mozilla 4.03 [en] (X11; I; Linux 2.1.62 i586)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Dear Sir:

I cant list directory tree when I login in my virtual ftp server as
anonymous, someone tell me I need a static ls command, I think I have.
The ftp server can work ok when I login as real user. In the base ftp
server, the thing is well too when I login as anonymous. I have ask this
question many times to may men, there is no answer.

Can you give me some help?

The OS I use is linux, with kernel 2.1.62. I have test in 2.0.30,
2.1.59, the problem is same.


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 04:31:37 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA31637;
	Mon, 10 Nov 1997 04:24:04 -0600 (CST)
Received: from gate.teledata.co.uk (root@gate-isdn.teledata.co.uk [194.152.83.193])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id EAA31345
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 04:21:05 -0600 (CST)
Received: from defcon1.prestel.net(really [193.114.49.208]) by gate.teledata.co.uk
	via rsmtp with esmtp
	id <m0xUqxs-000L9kC@gate.teledata.co.uk>
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 97 10:21:04 +0000 (GMT)
	(/\##/\ Smail3.1.30.13 #30.13 built 31-aug-95)
Message-Id: <3466E1A4.715CCF8C@prestel.net>
Date: Mon, 10 Nov 1997 10:27:48 +0000
Reply-To: webadmin@prestel.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: webadmin <webadmin@prestel.net>
To: wu-ftpd@wugate.wustl.edu
Subject: file permissions
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.0 [en] (Win95; I)
X-Priority: 3 (Normal)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi

I have been running wuftp for some time now. I have about 1500 users on
it (not all concurrent)

However I cam across a stage problme yesterday

When a user created say a subdircetory under hois main directory the
file permission on it were as set in ftpacces file, BUT when he created
anonther subdirectory eg

/maidir/firstsub/seconsub/

Then his file permission were 640 instaed of the 460 which was set in
the ftpaccess file.

I have cheked this 3ith other users on the server, and none had the
problem cause they only went one subdirectory down.

Is this a known problem, or is there something wrong with my setup

Thanks

Iqbal

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 06:51:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id GAA06075;
	Mon, 10 Nov 1997 06:43:54 -0600 (CST)
Received: from mailout02.btx.dtag.de (mailout02.btx.dtag.de [194.25.2.150])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id GAA06415
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 06:43:10 -0600 (CST)
Received: from fwd09.btx.dtag.de [194.25.2.169] 
	by mailout02.btx.dtag.de with smtp 
	id 0xUt7H-0008TH-00; Mon, 10 Nov 1997 13:38:55 +0100
Received:  (0957172051-0001(btxid)@[193.159.46.231]) 
	by fwd09.btx.dtag.de with (S3.1.29.1) 
	id <m0xUt78-0003DjC>; Mon, 10 Nov 1997 13:38:46 +0200
Message-Id: <m0xUt78-0003DjC@fwd09.btx.dtag.de>
Date: Mon, 10 Nov 1997 13:38:46 +0200
Reply-To: Annette.Scherer@t-online.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Annette.Scherer@t-online.de (as37as37)
To: wu-ftpd@wugate.wustl.edu
Subject: WU-FTP with SSL
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Mailer: T-Online eMail 2.0
X-Sender: 0957172051-0001@t-online.de (Annette Scherer)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Dear Ladies and Gentlemen,

can I use SSL extensions of WU-FTPD in Germany, or are there export limitations?

Greetings
Annette Scherer

annette.scherer@t-online.de


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 08:19:44 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA11413;
	Mon, 10 Nov 1997 08:12:21 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA10626
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 08:06:27 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id IAA19983;
	Mon, 10 Nov 1997 08:06:08 -0600
Message-Id: <Pine.LNX.3.96.971110080527.19911A-100000@ns1.fni.com>
Date: Mon, 10 Nov 1997 08:06:08 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: ZhenYu Wang <wzy@shenzhen.cngb.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: a problem in virtual ftp server
In-Reply-To: <3466BFAF.64F0AFD3@shenzhen.cngb.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, 10 Nov 1997, ZhenYu Wang wrote:

> I cant list directory tree when I login in my virtual ftp server as
> anonymous, someone tell me I need a static ls command, I think I have.
> The ftp server can work ok when I login as real user. In the base ftp
> server, the thing is well too when I login as anonymous. I have ask this
> question many times to may men, there is no answer.

This is all explained in the guest howto below.

This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

There are additional security references in the above docs.



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 10:08:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA21679;
	Mon, 10 Nov 1997 10:00:25 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA18337
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 09:58:51 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AB13260
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Mon, 10 Nov 1997 10:56:05 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id LAA26531; Mon, 10 Nov 1997 11:10:54 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id KAA24552; Mon, 10 Nov 1997 10:56:14 -0500
Message-Id: <199711101556.KAA24552@grandpa.rl.kodak.com>
Date: Mon, 10 Nov 1997 10:56:14 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Subject: Other wuftpd mailing lists or newsgroups
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Are there other mailing lists, e-mail addresses, or newsgroups available 
that you can post to concerning wuftpd problems? Thanks much!


 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 10:52:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA26311;
	Mon, 10 Nov 1997 10:45:08 -0600 (CST)
Received: from ixgate02.dfnrelay.d400.de (ixgate02.dfnrelay.d400.de [193.174.248.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA26037
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 10:42:10 -0600 (CST)
Message-Id: <9711101634.AA13830@cd4-01.za-offenbach.dwd.d400.de>
Date: Mon, 10 Nov 1997 17:34:49 +0100
Reply-To: netadm@dwd.d400.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: netadm@dwd.d400.de
To: wu-ftpd@wugate.wustl.edu (Non Receipt Notification Requested) (IPM Return Requested)
Subject: message 221
Content-Identifier:  3608346737A9001
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



Hello all,

we're using Version wu-2.4.2-academ[BETA-12](1) on a LINUX Pc as ftp server here
and everything is working just fine except for one user. They can login 
successfully as a special user, but when they issue the first command (no matter
if ls, get etc...), they get the message "221:  You could at least say goodbye."'
followed by the line "remote server closed connection".


Has anyone seen this before? Any ideas what could go wrong?

Thanks very much,
Ilona


- ---------------------+-------------------------------------+------------------
Ilona Glaser         | email:                              | Phone:
                     |                                     |       
DWD Offenbach/Main   |                                     | +49 69 8062 2678
Frankfurter Str. 135 | C=de;A=d400;P=dwd;S=netadm          | Fax:
63067 Offenbach/Main |                                     | +49 69 8062 2582
- ---------------------+-------------------------------------+------------------


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 10 18:36:51 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA07691;
	Mon, 10 Nov 1997 18:30:19 -0600 (CST)
Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA07389
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 18:24:02 -0600 (CST)
Received: from egate.mnet.uswest.com (egate-co1.mnet.uswest.com [151.119.130.8])
	by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id RAA14538
	for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 17:23:31 -0700 (MST)
Received: from easthub.mnet.uswest.com (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id RAA15203 for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 17:23:28 -0700 (MST)
Received: from netmail2.mnet.uswest.com (netmail2.mnet.uswest.com [151.119.114.11]) by easthub.mnet.uswest.com (8.6.11/8.6.11) with ESMTP id SAA07664 for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 18:30:38 -0600
Received: from pcs-chekov ([151.116.59.56]) by netmail2.mnet.uswest.com
          (Netscape Mail Server v2.02) with SMTP id AAA26984
          for <wu-ftpd@wugate.wustl.edu>; Mon, 10 Nov 1997 17:23:27 -0700
Message-Id: <3467A580.4CEB@uswest.com>
Date: Mon, 10 Nov 1997 17:23:28 -0700
Reply-To: bwaite@uswest.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Waite <bwaite@uswest.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: ftpwho for SGI users.
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: bwaite@easthub.mnet.uswest.com
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello all.  Threw together a quick perl script that works like a more
informative ftpwho for us poor SGI users who can't overwrite our process
table.  Suggestions for improvement are welcome.

I've made comments where changes are probably necessary.

--- Begin fwho.pl ---

#!/usr/sbin/perl

$logfile = "/var/adm/mail.log";  # Log file location that contains
                                 # login notifications

while(</etc/ftpd/pids/*>){       # This should glob all the class
                                 # pid files
   $logname = $_;
   /.*\/(.+)$/;                  # This RE should strip all but
                                 # the class names from the glob.
   $class = $1;

   open(PID, "$logname");
   $x = 1;
   $users = 0;

   print "Service class $class:\n\n";
   $pidlist = "";

   for($n = -4; $x > 0; $n-=4 ){
      seek(PID, $n, 2);
      read(PID, $pid, 4);
      if($x = hex(unpack "H8", $pid)){
         $pidlist .= "," if $pidlist;
         $pidlist .= "$x";
      }
   }

   close PID;

   if($pidlist ne ""){
      open(PS, "/bin/ps -fp $pidlist |");
      while(<PS>){
         s/^\s*//g;
         @ps = split /\s+/, $_, 6;
         next if $ps[1] eq "PID";
         $ps{$ps[1]} = ($ps[4]);
      }
      close PS;

      foreach $proc (keys(%ps)){
         open(HOST, "tail -r $logfile | grep \"\\[$proc\\].*LOGIN\"|");
         <HOST> =~ /\[$proc\]: FTP LOGIN FROM (.*]), (.*)\n/;
         close HOST;
         $since = $ps{$proc};
         $host = $1;
         $user = $2;
         write;
         $users++;
      }
   }        # end if ($pidlist ne "")
   print "  -   $users users\n\n";

}

format STDOUT =
@<<<<<<<  @<<<<<  @<<<<<<<  @<<<<<<<<<<<<<<<<<<<<<<<<<
$user,$proc,$since,$host
.


--- End fwho.pl ---

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 11 11:11:32 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA09644;
	Tue, 11 Nov 1997 11:04:32 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA11088
	for <wu-ftpd@wugate.wustl.edu>; Tue, 11 Nov 1997 10:58:23 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AA06688
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Tue, 11 Nov 1997 11:55:43 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id MAA29817; Tue, 11 Nov 1997 12:10:41 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id LAA25592; Tue, 11 Nov 1997 11:55:58 -0500
Message-Id: <199711111655.LAA25592@grandpa.rl.kodak.com>
Date: Tue, 11 Nov 1997 11:55:58 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Cc: dcox@kodak.com
Subject: Is anybody running beta15 on HPUX?
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

All,

as mentioned in my previous posting:

> I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
> some reason, my parent process spawns multiple child processes:
>
> root 18944   560  0 08:21:26 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd    
> root 18945   560  0 08:21:32 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd    
> root 19195   560  0 08:57:07 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd    
> root 19194   560  0 08:56:59 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd

and so on. Kent Landfield has been gracious enough to inform me that this bug has been
fixed in version beta15 (thanks again Kent, you have been most helpful! :=) My next question
is, has anyone (successfully) compiled beta15 on HP-UX 10.20, and if so, are there any
"gotcha's" that I should be aware of? 

BTW, my programming skills leave much to be desired, so forgive me if the following is
obvious to those more knowledgeable. I downloaded beta15, read the INSTALL, and ran
./build hpx. The results follow:

*************************************************************************************
make args are : 
make opts are : 
 
Linking Makefiles.
 
Making support library.
        cc -Aa -D_POSIX_SOURCE -O   -c fnmatch.c
        cc -Aa -D_POSIX_SOURCE -O   -c strcasestr.c
        cc -Aa -D_POSIX_SOURCE -O   -c strsep.c
        cc -Aa -D_POSIX_SOURCE -O   -c getusershell.c
        cc -Aa -D_POSIX_SOURCE -O   -c snprintf.c
        rm -f libsupport.a
        ar cq libsupport.a fnmatch.o strcasestr.o strsep.o getusershell.o snprintf.o
        touch libsupport.a
 
Making ftpd.
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -c ftpd.c
        yacc  ftpcmd.y
        mv y.tab.c ftpcmd.c
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -c ftpcmd.c
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -c glob.c
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -c logwtmp.c
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -c popen.c
Make: Don't know how to make vers.c.  Stop.
 
Making ftpcount.
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -o ftpcount ftpcount.c vers.o ../support/libsupport.a
/usr/ccs/bin/ld: Can't open vers.o
/usr/ccs/bin/ld: No such file or directory
*** Error exit code 1
 
Stop.
 
Making ftpshut.
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -o ftpshut ftpshut.c vers.o ../support/libsupport.a
/usr/ccs/bin/ld: Can't open vers.o
/usr/ccs/bin/ld: No such file or directory
*** Error exit code 1
 
Stop.
 
Making ckconfig.
        cc -Aa -Dunix -D_HPUX_SOURCE -O -I.. -I../support  -o ckconfig ckconfig.c
 
Links to executables are in bin directory:
size:  bin/ftpd:  cannot open
size:  bin/ftpcount:  cannot open
size:  bin/ftpshut:  cannot open
size:  bin/ftpwho:  cannot open
bin/ckconfig: 5405 + 1860 + 8 = 7273
*************************************************************************************

Needless to say, my attempts were not successful. Any assistance would be greatly appreciated.
Thanks, in advance, for your help and understanding.  :=)


 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 11 13:37:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA26327;
	Tue, 11 Nov 1997 13:31:36 -0600 (CST)
Received: from finwe.jrnl.com (FINWE.JRNL.COM [199.244.139.200])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA26271
	for <wu-ftpd@wugate.wustl.edu>; Tue, 11 Nov 1997 13:30:50 -0600 (CST)
Received: from jrnl.com ([152.163.66.131]) by finwe.jrnl.com
          (post.office MTA v2.0 0813 ID# 0-29013) with ESMTP id AAA18476;
          Tue, 11 Nov 1997 14:32:07 -0500
Message-Id: <3468B265.75C3A33B@jrnl.com>
Date: Tue, 11 Nov 1997 14:30:45 -0500
Reply-To: denise@jrnl.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jenice Darner <denise@jrnl.com>
To: dcox@kodak.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: Is anybody running beta15 on HPUX?
References: <199711111655.LAA25592@grandpa.rl.kodak.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: thorn
X-Mailer: Mozilla 4.03 [en] (X11; I; IRIX 6.2 IP22)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Don Cox wrote:
> 
> All,
> 
> as mentioned in my previous posting:
> 
> > I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
> > some reason, my parent process spawns multiple child processes:
> >
> > root 18944   560  0 08:21:26 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 18945   560  0 08:21:32 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 19195   560  0 08:57:07 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 19194   560  0 08:56:59 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> 
> and so on. Kent Landfield has been gracious enough to inform me that this bug has been
> fixed in version beta15 (thanks again Kent, you have been most helpful! :=) My next question
> is, has anyone (successfully) compiled beta15 on HP-UX 10.20, and if so, are there any
> "gotcha's" that I should be aware of?
> 
> BTW, my programming skills leave much to be desired, so forgive me if the following is
> obvious to those more knowledgeable. I downloaded beta15, read the INSTALL, and ran
> ./build hpx. The results follow:

I have successfully installed and run the package on 10.20 for about a
month now...And it has been running successfully on HPUX 9.04 and 10.10
for close to a year (9.04 and 10.10 have an older version of WU). 
Something that you should know is that the c compiler that comes
standard with HPs is NOT a normal c compiler...it is a compiler built
SPECIFICALLY for the HPUX kernal compilations ONLY (you should really
read the HPUX FAQ at: http://hpux.cae.wisc.edu/hppd/FAQ/). You will need
(if you haven't already) to go out and get a good c compiler (like
ansic.hp-10.20.tar.gz). If you have trouble finding it on the
'net...call HP. You should have a support contract if you have an HP
machine.
Is this 10.20 machine just an ftp box or is it providing other functions
as well (being a webserver, hosting xterms, etc)? If it is just an FTP
machine, do yourself a favor and remove the X libs...you don't need them
and they take up a LOT of space...they can also geet in the way of some
of your kernal configs (running out of user procs, open files, file
locks, etc).

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 11 21:38:53 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA32035;
	Tue, 11 Nov 1997 21:32:43 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA01905
	for <wu-ftpd@wugate.wustl.edu>; Tue, 11 Nov 1997 21:31:07 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id VAA02022; Tue, 11 Nov 1997 21:31:06 -0600 (CST)
Message-Id: <19971111213106.37005@texas.net>
Date: Tue, 11 Nov 1997 21:31:06 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: minor problem with guestgroup
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything works
as designed--except for this one command--seems it's trying to use the
wrong side of the /./ for ~. :)

ncftp>cd ~
/web/www/htdocs/users: No such file or directory.

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 07:10:22 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA09983;
	Wed, 12 Nov 1997 07:01:32 -0600 (CST)
Received: from finwe.jrnl.com (FINWE.JRNL.COM [199.244.139.200])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id GAA09260
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 06:56:43 -0600 (CST)
Received: from jrnl.com ([152.163.66.131]) by finwe.jrnl.com
          (post.office MTA v2.0 0813 ID# 0-29013) with ESMTP id AAA22959
          for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 07:58:03 -0500
Message-Id: <3469A789.83F48D5B@jrnl.com>
Date: Wed, 12 Nov 1997 07:56:41 -0500
Reply-To: denise@jrnl.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jenice Darner <denise@jrnl.com>
To: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
References: <19971111213106.37005@texas.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: thorn
X-Mailer: Mozilla 4.03 [en] (X11; I; IRIX 6.2 IP22)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Michael Douglass wrote:
> 
> This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything works
> as designed--except for this one command--seems it's trying to use the
> wrong side of the /./ for ~. :)
> 
> ncftp>cd ~
> /web/www/htdocs/users: No such file or directory.

Why is his path set to '/web/www/htdocs/users/./t/test' and not to
'/web/www/htdocs/users/t/test/./'? Is there a reason for this? The whole
problem is that the path is expected to kave the current working dir at
the end of the line, ie '.'. putting it in the middle makes the program
(whatever is reading into /etc/passwd) think that at '.' the path is
complete.

You should pick up the O'Reilly book on Esential System Administration.
Reading it will help you understand these problems instead of guessing
at paths.

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 07:57:16 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA25457;
	Wed, 12 Nov 1997 07:51:36 -0600 (CST)
Received: from svha0001.clipper.ssb.com (svha0001.clipper.ssb.com [192.250.113.12])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id HAA13447
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 07:49:16 -0600 (CST)
Received: from ssga.statestreet.com (ga010082.ssga.ssb.com [147.141.10.82])
	by svha0001.clipper.ssb.com (8.8.5/8.8.5) with SMTP id IAA08007
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 08:49:15 -0500 (EST)
Received: from am693.ssga.statestreet.com by ssga.statestreet.com (SMI-8.6/SMI-SVR4)
	id IAA03913; Wed, 12 Nov 1997 08:49:52 -0500
Received: by am693.ssga.statestreet.com (4.1/SMI-4.1)
	id AA02141; Wed, 12 Nov 97 08:50:00 EST
Received: by am693.ssga.statestreet.com (4.1/SMI-4.1)
	id AA02135; Wed, 12 Nov 97 08:49:59 EST
Received: from SSGA with "Lotus Notes Mail Gateway for SMTP" id
  465991168D9B7E548525654D004A494E; Wed, 12 Nov 97 08:49:58 
Message-Id: <9711121349.AA02135@am693.ssga.statestreet.com>
Date: 12 Nov 97  8:42:32 EST
Reply-To: Liang_Chen@ssga.statestreet.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Liang Chen/BOSTON/SSGA   <Liang_Chen@ssga.statestreet.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Re: The timestamp isn't correct for file transfer
Mime-Version: 1.0
Content-Type: Text/Plain
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'd like to thank those who responded my question on Nov 7 about the timestamp. 
I was suggested to use ~ftp/etc/TIMEZONE. I did it and nothing is changed. Any 
idea what is wrong or is it a bug for the wu-ftpd release? I downloaded the 
binary codes from a web site and I didn't compile the source codes by myself. 
Should the TIMEZONE parameter needs to be set before the compilation?

Many thanks!

-Liang


On 7 Nov 1997, Liang Chen/BOSTON/SSGA wrote:

> I am running wu-ftpd 2.4 in Solaris 2.5.1. When a guest user puts a file in, 
the 
> timestamp is 5 hours ahead the real local time. I do not see any problem for 
a 
> real user. Is there a configuration file setting the timezone?
> 

 

 


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 08:10:02 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA14975;
	Wed, 12 Nov 1997 08:03:57 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA14946
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 07:59:49 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AA00413
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Wed, 12 Nov 1997 08:57:13 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id JAA02141; Wed, 12 Nov 1997 09:12:12 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id IAA26127; Wed, 12 Nov 1997 08:57:30 -0500
Message-Id: <199711121357.IAA26127@grandpa.rl.kodak.com>
Date: Wed, 12 Nov 1997 08:57:30 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Cc: dcox@kodak.com
Subject: Making some procress
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Thanks once again to all who have responded... I have beta-15 compiled
and (almost) working under HPUX 10.20. For some reason, I am not reading
the ftpaccess file. When I go in as a guest, rather than displaying the
welcome message, all I get is:

230 User dcox logged in.
Remote system type is UNIX.
Using binary mode to transfer files.

I ran /bin/ckconfig and discovered that it expects to find ftpaccess in
/usr/local/lib/ftpd. I created the directory, copied over the old ftpaccess
that I was running under Version wu-2.4(10), and tried again. Still no good.
Any ideas why I am not reading ftpaccess (if that is the problem)?

As always, thanks much in advance.


> All,
> 
> as mentioned in my previous posting:
> 
> > I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
> > some reason, my parent process spawns multiple child processes:
> >
> > root 18944   560  0 08:21:26 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 18945   560  0 08:21:32 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 19195   560  0 08:57:07 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > root 19194   560  0 08:56:59 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> 
> and so on. Kent Landfield has been gracious enough to inform me that this bug has been
> fixed in version beta15 (thanks again Kent, you have been most helpful! :=) My next question
> is, has anyone (successfully) compiled beta15 on HP-UX 10.20, and if so, are there any
> "gotcha's" that I should be aware of?


 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 08:36:06 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA15540;
	Wed, 12 Nov 1997 08:29:22 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA16435
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 08:25:57 -0600 (CST)
Received: from corpmail.kodak.com by kodakr.kodak.com with SMTP id AA03563
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Wed, 12 Nov 1997 09:23:20 -0500
Received: from kodak.com ([150.220.89.71]) by corpmail.kodak.com
          (post.office MTA v1.9.3b ID# 269-16266) with ESMTP id AAA3963;
          Wed, 12 Nov 1997 09:20:35 -0400
Message-Id: <3469BBE9.21FBADF@kodak.com>
Date: Wed, 12 Nov 1997 09:23:37 -0500
Reply-To: vcox@kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Don Cox <vcox@kodak.com>
To: Don Cox <dcox@grandpa.rl.kodak.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Making some procress
References: <199711121357.IAA26127@grandpa.rl.kodak.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: dcox@kodakr.kodak.com
X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 5.5 sun4u)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

All,

I should have read http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html first... I
needed to add a '-a' in the inetd.conf file. Sorry for not RTM first. Onward!

Don Cox wrote:

> Thanks once again to all who have responded... I have beta-15 compiled
> and (almost) working under HPUX 10.20. For some reason, I am not reading
> the ftpaccess file. When I go in as a guest, rather than displaying the
> welcome message, all I get is:
>
> 230 User dcox logged in.
> Remote system type is UNIX.
> Using binary mode to transfer files.
>
> I ran /bin/ckconfig and discovered that it expects to find ftpaccess in
> /usr/local/lib/ftpd. I created the directory, copied over the old ftpaccess
> that I was running under Version wu-2.4(10), and tried again. Still no good.
> Any ideas why I am not reading ftpaccess (if that is the problem)?
>
> As always, thanks much in advance.
>
> > All,
> >
> > as mentioned in my previous posting:
> >
> > > I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
> > > some reason, my parent process spawns multiple child processes:
> > >
> > > root 18944   560  0 08:21:26 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > root 18945   560  0 08:21:32 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > root 19195   560  0 08:57:07 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > root 19194   560  0 08:56:59 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> >
> > and so on. Kent Landfield has been gracious enough to inform me that this bug has been
> > fixed in version beta15 (thanks again Kent, you have been most helpful! :=) My next question
> > is, has anyone (successfully) compiled beta15 on HP-UX 10.20, and if so, are there any
> > "gotcha's" that I should be aware of?
>
>  Don Cox   mailto:dcox@kodak.com   <><
>  Phone: (716) 588-4415, KMX: 258-4415
>  Pager: (800) SKY-8888, PIN 1989961
>  FAX:   (716) 722-3885
>  Webpage: http://www.kodak.com



--
 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com




From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 08:36:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA16137;
	Wed, 12 Nov 1997 08:29:59 -0600 (CST)
Received: from finwe.jrnl.com (FINWE.JRNL.COM [199.244.139.200])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA14806
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 08:26:40 -0600 (CST)
Received: from jrnl.com ([152.163.66.131]) by finwe.jrnl.com
          (post.office MTA v2.0 0813 ID# 0-29013) with ESMTP id AAA23515
          for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:27:40 -0500
Message-Id: <3469BC89.2F448D69@jrnl.com>
Date: Wed, 12 Nov 1997 09:26:17 -0500
Reply-To: denise@jrnl.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jenice Darner <denise@jrnl.com>
To: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: Making some procress
References: <199711121357.IAA26127@grandpa.rl.kodak.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: thorn
X-Mailer: Mozilla 4.03 [en] (X11; I; IRIX 6.2 IP22)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Don Cox wrote:
> 
> Thanks once again to all who have responded... I have beta-15 compiled
> and (almost) working under HPUX 10.20. For some reason, I am not reading
> the ftpaccess file. When I go in as a guest, rather than displaying the
> welcome message, all I get is:
> 
> 230 User dcox logged in.
> Remote system type is UNIX.
> Using binary mode to transfer files.
> 
> I ran /bin/ckconfig and discovered that it expects to find ftpaccess in
> /usr/local/lib/ftpd. I created the directory, copied over the old ftpaccess
> that I was running under Version wu-2.4(10), and tried again. Still no good.
> Any ideas why I am not reading ftpaccess (if that is the problem)?
> 

Don't bother with the ckconfig...it didn't help me one bit...
follow this outline:

where you were dumping stuff in /usr/local/lib...try putting them in
/usr/local/etc
total 1398
drwxr-xr-x   2 bin      bin         1024 Sep  9 17:28 .
drwxr-xr-x  10 bin      bin         1024 Oct 14 14:24 ..
-rw-r--r--   1 root     sys         1550 Aug 15 17:10 ftpaccess
-rw-r--r--   1 root     sys         1572 Oct  9  1995 ftpaccess.old
-rwxr-xr-x   1 root     sys          436 Oct  4  1994 ftpconversions
-rwxr-xr-x   1 root     sys        20480 Oct  6  1994 ftpcount
-rwxr-xr-x   1 root     sys       135168 Nov  9  1995 ftpd
-rwxr-xr-x   1 bin      bin       135520 Nov  1  1996 ftpd-old
-rwxrwxr-x   1 root     sys       135168 Apr 12  1995 ftpd.old
-rwxrwxr-x   1 root     sys       135168 May  4  1995 ftpd.old.1
-rwxr-xr-x   1 root     sys           37 Oct  4  1994 ftpgroups
-rwxr-xr-x   1 root     sys          116 Oct  4  1994 ftphosts
-rwxr-xr-x   1 root     sys        20480 Oct  6  1994 ftpshut
-rwxr-xr-x   1 root     sys            5 Oct 29 11:23 ftpusers
-rwxr-xr-x   1 root     sys        20480 Oct  6  1994 ftpwho

As you can see, my Wu ftp client has been in place and running since
1995...and with consecutive upgrades, it's up to patch level (or beta) 6
on this particular machine...the two 10.20 builds I have are running the
latest release and are all set up the exact same way.

put your msgs in /usr/local/msgs
total 12
drwxr-xr-x   2 root     sys         1024 Jun  5 13:45 .
drwxr-xr-x  10 bin      bin         1024 Oct 14 14:24 ..
-rw-r--r--   1 root     sys          774 Oct 20 12:02 banner
-rw-r--r--   1 root     sys          159 Jun 17  1996 offline
-rw-r--r--   1 root     sys           49 Jun  7  1995 shutmsg.old
-rw-r--r--   1 root     sys           98 Dec 15  1995 toomany
-rw-rw-rw-   1 root     sys            0 Oct 30 14:56 welcome

Try it and let me know what happens.

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:06:53 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA20376;
	Wed, 12 Nov 1997 09:00:46 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA19707
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 08:56:27 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id IAA19279; Wed, 12 Nov 1997 08:56:22 -0600 (CST)
Message-Id: <19971112085622.19091@texas.net>
Date: Wed, 12 Nov 1997 08:56:22 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: denise@jrnl.com
Cc: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <3469A789.83F48D5B@jrnl.com>; from Jenice Darner on Wed, Nov 12, 1997 at 07:56:41AM -0500
References: <19971111213106.37005@texas.net> <3469A789.83F48D5B@jrnl.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:

You people don't understand.... You just don't understand, don't tell
me that I should really pick up the Essential System Administration
book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
that came with wu-ftpd.... I states that you use the /./ to separate the
chrooted dir on the left-hand-side with the new-chrooted-home-dir on
the right hand side...  Before criticizing someone, make sure you
understand what they are talking about....

If there is still confusion, here is what I just sent to someone privately:

You misunderstand... The users 'test' has a home directory of
'/web/www/htdocs/users/./t/test'.  When he logs into the ftp
server, it does a chroot /web/www/htdocs/users, and then cds
into /t/test.  That works perfectly fine.  The user can cd all
over the place in the newly chrooted environment...  But cd ~
(to return to his home directory) causes the error shown below
because it is tryingo to cd to /web/www/htdocs/users (which
does not exist in the already chrooted environment).  It should
try to cd to /t/test as that is the 'full-path home dir' in the
chrooted environment.

> Michael Douglass wrote:
> > 
> > This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything works
> > as designed--except for this one command--seems it's trying to use the
> > wrong side of the /./ for ~. :)
> > 
> > ncftp>cd ~
> > /web/www/htdocs/users: No such file or directory.
> 
> Why is his path set to '/web/www/htdocs/users/./t/test' and not to
> '/web/www/htdocs/users/t/test/./'? Is there a reason for this? The whole
> problem is that the path is expected to kave the current working dir at
> the end of the line, ie '.'. putting it in the middle makes the program
> (whatever is reading into /etc/passwd) think that at '.' the path is
> complete.
> 
> You should pick up the O'Reilly book on Esential System Administration.
> Reading it will help you understand these problems instead of guessing
> at paths.

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:14:12 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA16129;
	Wed, 12 Nov 1997 09:07:22 -0600 (CST)
Received: from finwe.jrnl.com (FINWE.JRNL.COM [199.244.139.200])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA18265
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:04:15 -0600 (CST)
Received: from jrnl.com ([152.163.66.131]) by finwe.jrnl.com
          (post.office MTA v2.0 0813 ID# 0-29013) with ESMTP id AAA24277;
          Wed, 12 Nov 1997 10:05:35 -0500
Message-Id: <3469C56C.DBB2998A@jrnl.com>
Date: Wed, 12 Nov 1997 10:04:12 -0500
Reply-To: denise@jrnl.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jenice Darner <denise@jrnl.com>
To: Michael Douglass <mikedoug@texas.net>,
        WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
References: <19971111213106.37005@texas.net> <3469A789.83F48D5B@jrnl.com> <19971112085622.19091@texas.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: thorn
X-Mailer: Mozilla 4.03 [en] (X11; I; IRIX 6.2 IP22)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Michael Douglass wrote:
> 
> On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
> 
> You people don't understand.... You just don't understand, don't tell
> me that I should really pick up the Essential System Administration
> book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
> that came with wu-ftpd.... I states that you use the /./ to separate the
> chrooted dir on the left-hand-side with the new-chrooted-home-dir on
> the right hand side...  Before criticizing someone, make sure you
> understand what they are talking about....

key phrase here: the new-chrooted-home-dir on the right hand side... 

what does chrooted imply?

since you aren't going to take the advice you asked for seriously...and
as you stated to me, you are a "unix expert", then figure it out
yourself.

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:19:40 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA21439;
	Wed, 12 Nov 1997 09:13:33 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA20678
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:11:42 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id KAA27845; Wed, 12 Nov 1997 10:14:01 -0500
Message-Id: <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur>
Date: Wed, 12 Nov 1997 10:14:01 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: denise@jrnl.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971112085622.19091@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 12 Nov 1997, Michael Douglass wrote:

If the restricted user is "test", then it should be:

/web/www/htdocs/users/./test instead of /web/www/htdocs/users/./t/test

_ming

->On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
->
->You people don't understand.... You just don't understand, don't tell
->me that I should really pick up the Essential System Administration
->book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
->that came with wu-ftpd.... I states that you use the /./ to separate the
->chrooted dir on the left-hand-side with the new-chrooted-home-dir on
->the right hand side...  Before criticizing someone, make sure you
->understand what they are talking about....
->
->If there is still confusion, here is what I just sent to someone privately:
->
->You misunderstand... The users 'test' has a home directory of
->'/web/www/htdocs/users/./t/test'.  When he logs into the ftp
->server, it does a chroot /web/www/htdocs/users, and then cds
->into /t/test.  That works perfectly fine.  The user can cd all
->over the place in the newly chrooted environment...  But cd ~
->(to return to his home directory) causes the error shown below
->because it is tryingo to cd to /web/www/htdocs/users (which
->does not exist in the already chrooted environment).  It should
->try to cd to /t/test as that is the 'full-path home dir' in the
->chrooted environment.
->
->> Michael Douglass wrote:
->> > 
->> > This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything works
->> > as designed--except for this one command--seems it's trying to use the
->> > wrong side of the /./ for ~. :)
->> > 
->> > ncftp>cd ~
->> > /web/www/htdocs/users: No such file or directory.
->> 
->> Why is his path set to '/web/www/htdocs/users/./t/test' and not to
->> '/web/www/htdocs/users/t/test/./'? Is there a reason for this? The whole
->> problem is that the path is expected to kave the current working dir at
->> the end of the line, ie '.'. putting it in the middle makes the program
->> (whatever is reading into /etc/passwd) think that at '.' the path is
->> complete.
->> 
->> You should pick up the O'Reilly book on Esential System Administration.
->> Reading it will help you understand these problems instead of guessing
->> at paths.
->
->-- 
->Michael Douglass
->Texas Networking, Inc.
->
-> "The past is a foreign country; they do things differently there."
->      L. P. Hartley, British author. The Go-Between, Prologue (1953).
->

============================================================================
Ming Lu                                              Email: mlu@hq.si.net
Network Tech Consulting Engineer                     Phone: 703-689-5290 (w)
Engineering Division                                        703-855-4194 (m)
Global One Telecommunications, LLT.                         703-716-0872 (h)
============================================================================  
"Do not pay attention to every word people say, or you may hear your
 servant cursing you ---- for you know in your heart that many times you
 yourself have cursed others."


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:19:46 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA17961;
	Wed, 12 Nov 1997 09:14:11 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA19733
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:12:48 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id JAA19526; Wed, 12 Nov 1997 09:12:48 -0600 (CST)
Message-Id: <19971112091248.25666@texas.net>
Date: Wed, 12 Nov 1997 09:12:48 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <3469C56C.DBB2998A@jrnl.com>; from Jenice Darner on Wed, Nov 12, 1997 at 10:04:12AM -0500
References: <19971111213106.37005@texas.net> <3469A789.83F48D5B@jrnl.com> <19971112085622.19091@texas.net> <3469C56C.DBB2998A@jrnl.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 10:04:12AM -0500, Jenice Darner said:

> key phrase here: the new-chrooted-home-dir on the right hand side... 
> what does chrooted imply?
> since you aren't going to take the advice you asked for seriously...and
> as you stated to me, you are a "unix expert", then figure it out
> yourself.

Please see the post by "Alan J Rosenthal"... Uh, and he is the one that
put 'unix expert'...  You might want to grab those reading glasses
that you used to read that book you suggested.  You know, I don't
even understand where you are getting this fire under your butt
from...  But you have more than annoyed me.. I have given a
full-detailed-explanation of what WU-FTPD's documentation states
the guestgroup should work...  And you obviously can't read it....
Please leave this thread alone--unless you read and understand
it...

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:33:29 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA17637;
	Wed, 12 Nov 1997 09:26:14 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA16545
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:19:57 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id JAA19604; Wed, 12 Nov 1997 09:19:40 -0600 (CST)
Message-Id: <19971112091940.49921@texas.net>
Date: Wed, 12 Nov 1997 09:19:40 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Ming Lu <mlu@privsys.gip.net>
Cc: denise@jrnl.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur>; from Ming Lu on Wed, Nov 12, 1997 at 10:14:01AM -0500
References: <19971112085622.19091@texas.net> <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 10:14:01AM -0500, Ming Lu said:

> If the restricted user is "test", then it should be:
> 
> /web/www/htdocs/users/./test instead of /web/www/htdocs/users/./t/test

People... READ THIS!  This is from the damned documentation.  After you
read it, then try replying...  So far, only one person has verfied this
as a bug, and the rest has told me that I was setting it up wrong...

--DOCUMENTATION--
     guestgroup <groupname> [<groupname> ...]
          If a REAL user is a member of any of  <groupname>,  the
          session  is  set  up exactly as with anonymous FTP.  In
          other words, a chroot() is done, and  the  user  is  no
          longer  permitted  to issue the USER and PASS commands.
          <groupname> is a valid group from /etc/group (or  what-
          ever mechanism your getgrent(3) library routine uses).

          The user's home directory  must  be  properly  set  up,
          exactly  as anonymous FTP would be.  The home directory
          field of the passwd entry is divided  into  two  direc-
          tories.   The  first  field is the root directory which
          will be the argument to the chroot(2) call.  The second
          half  is the user's home directory relative to the root
          directory.  The two halves are separated by a "/./".

          Example:

          in /etc/passwd, the real entry:

          guest1:<passwd>:100:92:Guest
          Account:/ftp/./incoming:/etc/ftponly

          When guest1 successfully logs in, the ftp  server  will
          chroot("/ftp")  and then chdir("/incoming").  The guest
          user will only be able to access the  directory  struc-
          ture  under  /ftp  (which  will  look  and  act as / to
          guest1), just as an anonymous FTP user would.
--END DOCUMENTATION--

Now, the directory I choose to be the root of the chrooted environment
is /web/www/htdocs/users--why?  Because it is the highest-common-
directory in all of the home directories... So instead of setting up
/dev, /etc/, et al. in everyone's home directories I choose that one
directory--as it does what I want anyway.

Now, as for the right-hand-side being /t/test, just because the user's
login name is 'test', that doesn't mean that his home directory must
be 'test'.  We use the first letter to give a better distribution of
the home directories...  So the left-hand-side of /web/www/htdocs/users
tells wu-ftpd to chroot to that directory.  The right-hand-side gives
the chrooted-home-directory (ie the directory that you cd to for
that user's home directory)...

Understand?

Either way, I am done trying to get everyone to understand the problem--
it isn't _that_ big of an issue...  And as long as the people responsible
for coding understand (which I have a suspicion they will) that's the
important part.  But these postings have been to the list in an attempt
to explain the problem to the group at-large instead of answering all
of the private email I've gotten calling me a 'moron' and a 'lame person
who can't read FAQs'.

Thank you for your time,

--
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:33:52 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA21245;
	Wed, 12 Nov 1997 09:26:59 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA20663
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:20:11 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id KAA01403;
	Wed, 12 Nov 1997 10:20:00 -0500
Message-Id: <Pine.LNX.3.95.971112100814.1288B-100000@gaia.vr.net>
Date: Wed, 12 Nov 1997 10:20:00 -0500 (EST)
Reply-To: Gregory A Lundberg <lundberg@vr.net>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: denise@jrnl.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971112085622.19091@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Actually, some of us do look before we leap.

I've been playing and can verify that I'm seeing the same problem, and add
a little to it.

In the _users_ bin/etc/passwd the home directory should be relative to the
new chroot'd environment (in your case /t/test).

I played with cd ~, cd ~lundberg and cd ~testuser where all three exist in
the real system and in the chroot'd group and password files.  Without a
home directory entry in chroot'd passwd I get an error on all three forms.
With '/' (in my case) for home directories, cd ~ gives the error
'/home/users/lundberg does not exist .. it doesn't in the chroot
environment so cd ~ must be using the real /etc/passwd.  cd ~lundberg
works fine and moves me to '/'(chroot'd) as I'd expect so ~<name> uses the
chroot'd /etc/passwd.  cd ~testuser fails (unknown user name) when it
shouldn't (in my case I expected '/' also, but you might expect
/t/testuser in yours).  It appears there's confusion in the driver about
when to use which /etc/passwd for home directory searches and for ~<user>
lookups.

My testing was on my production server (beta 14) on Linux 2.0.30).  If I
ever get my testbed machine on the network again, I'll be re-testing on
beta 15 and 2.0.31

On Wed, 12 Nov 1997, Michael Douglass wrote:

> Date: Wed, 12 Nov 1997 08:56:22 -0600
> From: Michael Douglass <mikedoug@texas.net>
> To: denise@jrnl.com
> Cc: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
> Subject: Re: minor problem with guestgroup
> 
> On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
> 
> You people don't understand.... You just don't understand, don't tell
> me that I should really pick up the Essential System Administration
> book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
> that came with wu-ftpd.... I states that you use the /./ to separate the
> chrooted dir on the left-hand-side with the new-chrooted-home-dir on
> the right hand side...  Before criticizing someone, make sure you
> understand what they are talking about....
> 
> If there is still confusion, here is what I just sent to someone privately:
> 
> You misunderstand... The users 'test' has a home directory of
> '/web/www/htdocs/users/./t/test'.  When he logs into the ftp
> server, it does a chroot /web/www/htdocs/users, and then cds
> into /t/test.  That works perfectly fine.  The user can cd all
> over the place in the newly chrooted environment...  But cd ~
> (to return to his home directory) causes the error shown below
> because it is tryingo to cd to /web/www/htdocs/users (which
> does not exist in the already chrooted environment).  It should
> try to cd to /t/test as that is the 'full-path home dir' in the
> chrooted environment.
> 
> > Michael Douglass wrote:
> > > 
> > > This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything works
> > > as designed--except for this one command--seems it's trying to use the
> > > wrong side of the /./ for ~. :)
> > > 
> > > ncftp>cd ~
> > > /web/www/htdocs/users: No such file or directory.
> > 
> > Why is his path set to '/web/www/htdocs/users/./t/test' and not to
> > '/web/www/htdocs/users/t/test/./'? Is there a reason for this? The whole
> > problem is that the path is expected to kave the current working dir at
> > the end of the line, ie '.'. putting it in the middle makes the program
> > (whatever is reading into /etc/passwd) think that at '.' the path is
> > complete.
> > 
> > You should pick up the O'Reilly book on Esential System Administration.
> > Reading it will help you understand these problems instead of guessing
> > at paths.
> 
> -- 
> Michael Douglass
> Texas Networking, Inc.
> 
>  "The past is a foreign country; they do things differently there."
>       L. P. Hartley, British author. The Go-Between, Prologue (1953).
> 


----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:36:15 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA23630;
	Wed, 12 Nov 1997 09:28:05 -0600 (CST)
Received: from lynx.astro.umd.edu (wls@lynx.astro.umd.edu [129.2.162.175])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA22088
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:21:34 -0600 (CST)
Received: (wls@localhost) 
	by lynx.astro.umd.edu (8.8.6/8.6.6sWLS)
	id KAA20532; Wed, 12 Nov 1997 10:21:17 -0500 (EST)
Message-Id: <199711121521.KAA20532@lynx.astro.umd.edu>
Date: Wed, 12 Nov 1997 10:21:17 -0500 (EST)
Reply-To: wls@astro.umd.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: wls@astro.umd.edu
To: denise@jrnl.com, mikedoug@texas.net, mlu@privsys.gip.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Michael Douglass wrote:
> This user's home dir is '/web/www/htdocs/users/./t/test'.  Everything work
> as designed--except for this one command--seems it's trying to use the
> wrong side of the /./ for ~. :)
 
> ncftp>cd ~
> /web/www/htdocs/users: No such file or directory.

It sounds like the HOME enviroment variable is not begin set to the correct
directory in wu-ftpd.

Bill Sebok      Computer Software Manager, Univ. of Maryland, Astronomy
	Internet: wls@astro.umd.edu	URL: http://www.astro.umd.edu/~wls/

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:37:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA22896;
	Wed, 12 Nov 1997 09:29:05 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA09515
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:22:11 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id KAA28048; Wed, 12 Nov 1997 10:24:31 -0500
Message-Id: <Pine.GSO.3.96.971112101959.28001A-100000@dinosaur>
Date: Wed, 12 Nov 1997 10:24:31 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: denise@jrnl.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hoops, it should be:

test:x:100:100:restrict user:/web/www/htdocs/users/./test/:/etc/ftponly

_ming
On Wed, 12 Nov 1997, Ming Lu wrote:

->On Wed, 12 Nov 1997, Michael Douglass wrote:
->
->If the restricted user is "test", then it should be:
->
->/web/www/htdocs/users/./test instead of /web/www/htdocs/users/./t/test
->
->_ming
->
->->On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
->->
->->You people don't understand.... You just don't understand, don't tell
->->me that I should really pick up the Essential System Administration
->->book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
[snip]

============================================================================
Ming Lu                                              Email: mlu@hq.si.net
Network Tech Consulting Engineer                     Phone: 703-689-5290 (w)
Engineering Division                                        703-855-4194 (m)
Global One Telecommunications, LLT.                         703-716-0872 (h)
============================================================================  
"Do not pay attention to every word people say, or you may hear your
 servant cursing you ---- for you know in your heart that many times you
 yourself have cursed others."


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:39:00 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA23823;
	Wed, 12 Nov 1997 09:32:59 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA22817
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:23:50 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id QAA42520
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 16:23:37 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 12 Nov 1997 17:34:16 +0200
Message-Id: <01bcef7f$82a57da0$03c27ac2@pcos.cinetic.de>
Date: Wed, 12 Nov 1997 16:27:39 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <denise@jrnl.com>, "Michael Douglass" <mikedoug@texas.net>,
        "WU-FTP discussion" <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


The behavior one would expect from the home directory

/a/./b/

is that:
     cd /      would change to /a/ on the system visible for the user as /
     cd /b   would change to /a/b  on the system visible for the user as /b
     cd ~    woudl change to /a/b on the system visible for the user as /b

Apparently, as Michael states, the "cd ~" doesn't show that behavior.
Instead of trying to "cd" the user to "/b", it tries to cd the user to "/a",
_in_ the chrooted environment, which doesn't exist in the chrooted environment.

Apparently, _wu-ftpd_  doesn't know what "chrooted" implies there.

It should
   1.) be possible to place the chrooted entry point higher than the user's
home
    directory which is possible.
   2.) it should be possible for the user to type "cd ~" which apparently
isn't.

Oliver



-----Ursprüngliche Nachricht-----
Von: Jenice Darner <denise@jrnl.com>
An: Michael Douglass <mikedoug@texas.net>; WU-FTP discussion
<wu-ftpd@wugate.wustl.edu>
Datum: Mittwoch, 12. November 1997 16:24
Betreff: Re: minor problem with guestgroup


>Michael Douglass wrote:
>>
>> On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
>>
>> You people don't understand.... You just don't understand, don't tell
>> me that I should really pick up the Essential System Administration
>> book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
>> that came with wu-ftpd.... I states that you use the /./ to separate the
>> chrooted dir on the left-hand-side with the new-chrooted-home-dir on
>> the right hand side...  Before criticizing someone, make sure you
>> understand what they are talking about....
>
>key phrase here: the new-chrooted-home-dir on the right hand side...
>
>what does chrooted imply?
>
>since you aren't going to take the advice you asked for seriously...and
>as you stated to me, you are a "unix expert", then figure it out
>yourself.


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:44:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA24671;
	Wed, 12 Nov 1997 09:38:52 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA13083
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:27:16 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id KAA28194; Wed, 12 Nov 1997 10:29:38 -0500
Message-Id: <Pine.GSO.3.96.971112102632.28001B-100000@dinosaur>
Date: Wed, 12 Nov 1997 10:29:38 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: denise@jrnl.com, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971112091940.49921@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I am engaging war here..:-) just try to help... I installed three guest
only servsers and had no such problem whatsoever... BTW, I ma using beta
15 and followed advices from:

ftp://ftp.fni.com/pub/wu-ftpd/guest-howto

Cheers

_ming

On Wed, 12 Nov 1997, Michael Douglass wrote:

->On Wed, Nov 12, 1997 at 10:14:01AM -0500, Ming Lu said:
->
->> If the restricted user is "test", then it should be:
->> 
->> /web/www/htdocs/users/./test instead of /web/www/htdocs/users/./t/test
->
->People... READ THIS!  This is from the damned documentation.  After you
->read it, then try replying...  So far, only one person has verfied this
->as a bug, and the rest has told me that I was setting it up wrong...
->
->--DOCUMENTATION--
->     guestgroup <groupname> [<groupname> ...]
->          If a REAL user is a member of any of  <groupname>,  the
->          session  is  set  up exactly as with anonymous FTP.  In
->          other words, a chroot() is done, and  the  user  is  no
->          longer  permitted  to issue the USER and PASS commands.
->          <groupname> is a valid group from /etc/group (or  what-
->          ever mechanism your getgrent(3) library routine uses).
->
->          The user's home directory  must  be  properly  set  up,
->          exactly  as anonymous FTP would be.  The home directory
->          field of the passwd entry is divided  into  two  direc-
->          tories.   The  first  field is the root directory which
->          will be the argument to the chroot(2) call.  The second
->          half  is the user's home directory relative to the root
->          directory.  The two halves are separated by a "/./".
->
->          Example:
->
->          in /etc/passwd, the real entry:
->
->          guest1:<passwd>:100:92:Guest
->          Account:/ftp/./incoming:/etc/ftponly
->
->          When guest1 successfully logs in, the ftp  server  will
->          chroot("/ftp")  and then chdir("/incoming").  The guest
->          user will only be able to access the  directory  struc-
->          ture  under  /ftp  (which  will  look  and  act as / to
->          guest1), just as an anonymous FTP user would.
->--END DOCUMENTATION--
->
->Now, the directory I choose to be the root of the chrooted environment
->is /web/www/htdocs/users--why?  Because it is the highest-common-
->directory in all of the home directories... So instead of setting up
->/dev, /etc/, et al. in everyone's home directories I choose that one
->directory--as it does what I want anyway.
->
->Now, as for the right-hand-side being /t/test, just because the user's
->login name is 'test', that doesn't mean that his home directory must
->be 'test'.  We use the first letter to give a better distribution of
->the home directories...  So the left-hand-side of /web/www/htdocs/users
->tells wu-ftpd to chroot to that directory.  The right-hand-side gives
->the chrooted-home-directory (ie the directory that you cd to for
->that user's home directory)...
->
->Understand?
->
->Either way, I am done trying to get everyone to understand the problem--
->it isn't _that_ big of an issue...  And as long as the people responsible
->for coding understand (which I have a suspicion they will) that's the
->important part.  But these postings have been to the list in an attempt
->to explain the problem to the group at-large instead of answering all
->of the private email I've gotten calling me a 'moron' and a 'lame person
->who can't read FAQs'.
->
->Thank you for your time,
->
->--
->Michael Douglass
->Texas Networking, Inc.
->
-> "The past is a foreign country; they do things differently there."
->      L. P. Hartley, British author. The Go-Between, Prologue (1953).
->

============================================================================
Ming Lu                                              Email: mlu@hq.si.net
Network Tech Consulting Engineer                     Phone: 703-689-5290 (w)
Engineering Division                                        703-855-4194 (m)
Global One Telecommunications, LLT.                         703-716-0872 (h)
============================================================================  
"Do not pay attention to every word people say, or you may hear your
 servant cursing you ---- for you know in your heart that many times you
 yourself have cursed others."


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:51:29 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25133;
	Wed, 12 Nov 1997 09:45:47 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25014
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:40:54 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id KAA28444; Wed, 12 Nov 1997 10:43:15 -0500
Message-Id: <Pine.GSO.3.96.971112103911.28236A-100000@dinosaur>
Date: Wed, 12 Nov 1997 10:43:15 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Gregory A Lundberg <lundberg@vr.net>
Cc: Michael Douglass <mikedoug@texas.net>, denise@jrnl.com,
        WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.LNX.3.95.971112100814.1288B-100000@gaia.vr.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: mlu@dinosaur
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Here are my test results, followed with Gregory's test:

220 server1 FTP server (Version wu-2.4.2-academ[BETA-15](1)
Fri Nov 12:40:31 EST 1997) ready.
Name (19527.50.5:mlu):webuser
331 Password required for webuser.
Password:
230 User webuser logged in.  Access restrictions apply.
ftp> cd ~mlu
550 /home/mlu: No such file or directory.
ftp> pwd
257 "/webuser" is current directory.
ftp> cd ~
550 /home/web: No such file or directory.
ftp> cd ~anyone
550 Unknown user name after ~
ftp>  

Cheers

_ming

On Wed, 12 Nov 1997, Gregory A Lundberg wrote:

->Actually, some of us do look before we leap.
->
->I've been playing and can verify that I'm seeing the same problem, and add
->a little to it.
->
->In the _users_ bin/etc/passwd the home directory should be relative to the
->new chroot'd environment (in your case /t/test).
->
->I played with cd ~, cd ~lundberg and cd ~testuser where all three exist in
->the real system and in the chroot'd group and password files.  Without a
->home directory entry in chroot'd passwd I get an error on all three forms.
->With '/' (in my case) for home directories, cd ~ gives the error
->'/home/users/lundberg does not exist .. it doesn't in the chroot
->environment so cd ~ must be using the real /etc/passwd.  cd ~lundberg
->works fine and moves me to '/'(chroot'd) as I'd expect so ~<name> uses the
->chroot'd /etc/passwd.  cd ~testuser fails (unknown user name) when it
->shouldn't (in my case I expected '/' also, but you might expect
->/t/testuser in yours).  It appears there's confusion in the driver about
->when to use which /etc/passwd for home directory searches and for ~<user>
->lookups.
->
->My testing was on my production server (beta 14) on Linux 2.0.30).  If I
->ever get my testbed machine on the network again, I'll be re-testing on
->beta 15 and 2.0.31
->
[snip]


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:54:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA23745;
	Wed, 12 Nov 1997 09:46:50 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA24309
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:42:52 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id QAA24423
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 16:42:43 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 12 Nov 1997 17:53:22 +0200
Message-Id: <01bcef82$2df10b50$03c27ac2@pcos.cinetic.de>
Date: Wed, 12 Nov 1997 16:46:45 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: "Gregory A Lundberg" <lundberg@vr.net>,
        "Michael Douglass" <mikedoug@texas.net>
Cc: <denise@jrnl.com>, "WU-FTP discussion" <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


>With '/' (in my case) for home directories, cd ~ gives the error
>'/home/users/lundberg does not exist .. it doesn't in the chroot
>environment so cd ~ must be using the real /etc/passwd.  
>  It appears there's confusion in the driver about
>when to use which /etc/passwd for home directory searches and for ~<user>
>lookups.
>


A test on my system also had the result that the path entry in the
chrooted ./etc/passwd is not being consulted, but the one in
/etc/passwd mis-interpreted instead.


Oliver



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:55:07 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA26195;
	Wed, 12 Nov 1997 09:48:27 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA25460
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:42:57 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id JAA19954; Wed, 12 Nov 1997 09:42:54 -0600 (CST)
Message-Id: <19971112094254.34958@texas.net>
Date: Wed, 12 Nov 1997 09:42:54 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Ming Lu <mlu@privsys.gip.net>
Cc: Gregory A Lundberg <lundberg@vr.net>, denise@jrnl.com,
        WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.GSO.3.96.971112103911.28236A-100000@dinosaur>; from Ming Lu on Wed, Nov 12, 1997 at 10:43:15AM -0500
References: <Pine.LNX.3.95.971112100814.1288B-100000@gaia.vr.net> <Pine.GSO.3.96.971112103911.28236A-100000@dinosaur>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 10:43:15AM -0500, Ming Lu said:

I thought that you didn't show the behavior?  Am I correct in saying
that webuser's home directory is listed as "/home/web/./webuser"?
Notice the cd ~ tries to cd to /home/web instead of /webuser.  That
is the error.

> Here are my test results, followed with Gregory's test:
> 
> 220 server1 FTP server (Version wu-2.4.2-academ[BETA-15](1)
> Fri Nov 12:40:31 EST 1997) ready.
> Name (19527.50.5:mlu):webuser
> 331 Password required for webuser.
> Password:
> 230 User webuser logged in.  Access restrictions apply.
> ftp> cd ~mlu
> 550 /home/mlu: No such file or directory.
> ftp> pwd
> 257 "/webuser" is current directory.
> ftp> cd ~
> 550 /home/web: No such file or directory.
> ftp> cd ~anyone
> 550 Unknown user name after ~
> ftp>  

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 09:57:59 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA23977;
	Wed, 12 Nov 1997 09:50:29 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA14140
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:45:00 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id QAA14762
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 16:44:56 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 12 Nov 1997 17:55:36 +0200
Message-Id: <01bcef82$7d624370$03c27ac2@pcos.cinetic.de>
Date: Wed, 12 Nov 1997 16:48:58 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <wls@astro.umd.edu>, <denise@jrnl.com>, <mikedoug@texas.net>,
        <mlu@privsys.gip.net>
Cc: <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

>
>It sounds like the HOME enviroment variable is not begin set to the correct
>directory in wu-ftpd.
>


Looks like it. Even more like that, I wouldn't want a user to be able to find
out where the chrooted environment is. This interpretation of "cd ~" gives
way to that which is a reason to call for a fix alone.

Oliver



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:08:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA27720;
	Wed, 12 Nov 1997 10:02:05 -0600 (CST)
Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA24454
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:46:55 -0600 (CST)
Received: from egate2.mnet.uswest.com (egate-ne1.mnet.uswest.com [151.117.138.135])
	by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id IAA26083
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 08:46:23 -0700 (MST)
Received: from easthub.mnet.uswest.com (easthub.mnet.uswest.com [151.117.26.86]) by egate2.mnet.uswest.com (8.7.1/8.7.1) with SMTP id JAA17726 for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:46:22 -0600 (CST)
Received: from netmail2.mnet.uswest.com (netmail2.mnet.uswest.com [151.119.114.11]) by easthub.mnet.uswest.com (8.6.11/8.6.11) with ESMTP id JAA09665 for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:53:28 -0600
Received: from pcs-chekov ([151.116.59.56]) by netmail2.mnet.uswest.com
          (Netscape Mail Server v2.02) with SMTP id AAA15017;
          Wed, 12 Nov 1997 08:46:19 -0700
Message-Id: <3469CF4C.7506@uswest.com>
Date: Wed, 12 Nov 1997 08:46:20 -0700
Reply-To: bwaite@uswest.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Waite <bwaite@uswest.com>
To: mikedoug@texas.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
References: <19971112085622.19091@texas.net> <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur> <19971112091940.49921@texas.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: bwaite@easthub.mnet.uswest.com
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Michael, thanks for posting the documentation.  I was about to do the
same.  In my opinion, those who publicly (or privately) flame people,
and are found to be in error, should publicly (& privately) express
sincere apologies.  But that's just my opinion based on what I feel to
be common decency.  Of course, if decency was all that common, we
wouldn't have the flames we've seen today.

Now, as to your problem, I'm doing something of the same thing.  Here's
my passwd entries.

/etc/passwd:
    alex:<crypted word here>:2111:999:alex
FTP:/usr/ftpsite/./pub/uploads/users/alex:/dev/nul

/usr/ftpsite/etc/passwd:
    alex:x:2111:999:

When alex logs in, he's sitting in the real dir
"/usr/ftpsite/pub/uploads/users/alex".  cd'ing to "/" gets him to
"/usr/ftpsite".  Everything seems to be working just fine.  I'm running
beta-15, BTW

-Brad


Michael Douglass wrote:
> 
> On Wed, Nov 12, 1997 at 10:14:01AM -0500, Ming Lu said:
> 
> > If the restricted user is "test", then it should be:
> >
> > /web/www/htdocs/users/./test instead of /web/www/htdocs/users/./t/test
> 
> People... READ THIS!  This is from the damned documentation.  After you
> read it, then try replying...  So far, only one person has verfied this
> as a bug, and the rest has told me that I was setting it up wrong...
> 
> --DOCUMENTATION--
>      guestgroup <groupname> [<groupname> ...]
>           If a REAL user is a member of any of  <groupname>,  the
>           session  is  set  up exactly as with anonymous FTP.  In
>           other words, a chroot() is done, and  the  user  is  no
>           longer  permitted  to issue the USER and PASS commands.
>           <groupname> is a valid group from /etc/group (or  what-
>           ever mechanism your getgrent(3) library routine uses).
> 
>           The user's home directory  must  be  properly  set  up,
>           exactly  as anonymous FTP would be.  The home directory
>           field of the passwd entry is divided  into  two  direc-
>           tories.   The  first  field is the root directory which
>           will be the argument to the chroot(2) call.  The second
>           half  is the user's home directory relative to the root
>           directory.  The two halves are separated by a "/./".
> 
>           Example:
> 
>           in /etc/passwd, the real entry:
> 
>           guest1:<passwd>:100:92:Guest
>           Account:/ftp/./incoming:/etc/ftponly
> 
>           When guest1 successfully logs in, the ftp  server  will
>           chroot("/ftp")  and then chdir("/incoming").  The guest
>           user will only be able to access the  directory  struc-
>           ture  under  /ftp  (which  will  look  and  act as / to
>           guest1), just as an anonymous FTP user would.
> --END DOCUMENTATION--
> 
> Now, the directory I choose to be the root of the chrooted environment
> is /web/www/htdocs/users--why?  Because it is the highest-common-
> directory in all of the home directories... So instead of setting up
> /dev, /etc/, et al. in everyone's home directories I choose that one
> directory--as it does what I want anyway.
> 
> Now, as for the right-hand-side being /t/test, just because the user's
> login name is 'test', that doesn't mean that his home directory must
> be 'test'.  We use the first letter to give a better distribution of
> the home directories...  So the left-hand-side of /web/www/htdocs/users
> tells wu-ftpd to chroot to that directory.  The right-hand-side gives
> the chrooted-home-directory (ie the directory that you cd to for
> that user's home directory)...
> 
> Understand?
> 
> Either way, I am done trying to get everyone to understand the problem--
> it isn't _that_ big of an issue...  And as long as the people responsible
> for coding understand (which I have a suspicion they will) that's the
> important part.  But these postings have been to the list in an attempt
> to explain the problem to the group at-large instead of answering all
> of the private email I've gotten calling me a 'moron' and a 'lame person
> who can't read FAQs'.
> 
> Thank you for your time,
> 
> --
> Michael Douglass
> Texas Networking, Inc.
> 
>  "The past is a foreign country; they do things differently there."
>       L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:10:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA24265;
	Wed, 12 Nov 1997 09:40:03 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA22916
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:29:59 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id JAA19765; Wed, 12 Nov 1997 09:29:58 -0600 (CST)
Message-Id: <19971112092958.36613@texas.net>
Date: Wed, 12 Nov 1997 09:29:58 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.GSO.3.96.971112101959.28001A-100000@dinosaur>; from Ming Lu on Wed, Nov 12, 1997 at 10:24:31AM -0500
References: <Pine.GSO.3.96.971112101127.27644B-100000@dinosaur> <Pine.GSO.3.96.971112101959.28001A-100000@dinosaur>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 10:24:31AM -0500, Ming Lu said:
> Hoops, it should be:
> 
> test:x:100:100:restrict user:/web/www/htdocs/users/./test/:/etc/ftponly

Why?  Why would the following not work?  It's just adding one more
directorie's depth.

test:x:100:100:restrict user:/web/www/htdocs/users/./t/test/:/etc/ftponly

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:10:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA23469;
	Wed, 12 Nov 1997 10:00:37 -0600 (CST)
Received: from dinosaur.privsys.gip.net (dinosaur.gip.net [204.59.155.63])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25105
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:45:41 -0600 (CST)
Received: from dinosaur by dinosaur.privsys.gip.net (SMI-8.6/SMI-SVR4)
	id KAA28458; Wed, 12 Nov 1997 10:47:57 -0500
Message-Id: <Pine.GSO.3.96.971112104517.28236B-100000@dinosaur>
Date: Wed, 12 Nov 1997 10:47:57 -0500 (EST)
Reply-To: mlu@privsys.gip.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ming Lu <mlu@privsys.gip.net>
To: Oliver Stoll <os@cinetic.de>
Cc: denise@jrnl.com, Michael Douglass <mikedoug@texas.net>,
        WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <01bcef7f$82a57da0$03c27ac2@pcos.cinetic.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Sender: mlu@dinosaur
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by wugate.wustl.edu id JAA25417
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

The chroot checks file in /home/wharever/users/etc/passwd.

_ming

On Wed, 12 Nov 1997, Oliver Stoll wrote:

->
->The behavior one would expect from the home directory
->
->/a/./b/
->
->is that:
->     cd /      would change to /a/ on the system visible for the user as /
->     cd /b   would change to /a/b  on the system visible for the user as /b
->     cd ~    woudl change to /a/b on the system visible for the user as /b
->
->Apparently, as Michael states, the "cd ~" doesn't show that behavior.
->Instead of trying to "cd" the user to "/b", it tries to cd the user to "/a",
->_in_ the chrooted environment, which doesn't exist in the chrooted environment.
->
->Apparently, _wu-ftpd_  doesn't know what "chrooted" implies there.
->
->It should
->   1.) be possible to place the chrooted entry point higher than the user's
->home
->    directory which is possible.
->   2.) it should be possible for the user to type "cd ~" which apparently
->isn't.
->
->Oliver
->
->
->
->-----Ursprüngliche Nachricht-----
->Von: Jenice Darner <denise@jrnl.com>
->An: Michael Douglass <mikedoug@texas.net>; WU-FTP discussion
-><wu-ftpd@wugate.wustl.edu>
->Datum: Mittwoch, 12. November 1997 16:24
->Betreff: Re: minor problem with guestgroup
->
->
->>Michael Douglass wrote:
->>>
->>> On Wed, Nov 12, 1997 at 07:56:41AM -0500, Jenice Darner said:
->>>
->>> You people don't understand.... You just don't understand, don't tell
->>> me that I should really pick up the Essential System Administration
->>> book...  I am _NOT_ guessing at paths..... ___I___ read the documentation
->>> that came with wu-ftpd.... I states that you use the /./ to separate the
->>> chrooted dir on the left-hand-side with the new-chrooted-home-dir on
->>> the right hand side...  Before criticizing someone, make sure you
->>> understand what they are talking about....
->>
->>key phrase here: the new-chrooted-home-dir on the right hand side...
->>
->>what does chrooted imply?
->>
->>since you aren't going to take the advice you asked for seriously...and
->>as you stated to me, you are a "unix expert", then figure it out
->>yourself.
->
->

============================================================================
Ming Lu                                              Email: mlu@hq.si.net
Network Tech Consulting Engineer                     Phone: 703-689-5290 (w)
Engineering Division                                        703-855-4194 (m)
Global One Telecommunications, LLT.                         703-716-0872 (h)
============================================================================  
"Do not pay attention to every word people say, or you may hear your
 servant cursing you ---- for you know in your heart that many times you
 yourself have cursed others."


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:10:47 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA28350;
	Wed, 12 Nov 1997 10:03:34 -0600 (CST)
Received: from claret.psychology.mcmaster.ca (claret.psychology.McMaster.CA [130.113.218.34])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA25017
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:54:16 -0600 (CST)
Received: by claret.psychology.mcmaster.ca (951211.SGI.8.6.12.PATCH1502/951211.SGI)
	for wu-ftpd@wugate.wustl.edu id KAA16349; Wed, 12 Nov 1997 10:54:13 -0500
Message-Id: <199711121554.KAA16349@claret.psychology.mcmaster.ca>
Date: Wed, 12 Nov 1997 10:54:13 -0500
Reply-To: ajr@claret.psychology.mcmaster.ca
Sender: owner-wu-ftpd@wugate.wustl.edu
From: ajr@claret.psychology.mcmaster.ca (Alan J Rosenthal)
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

"Oliver Stoll" <os@cinetic.de> writes:
>Even more like that, I wouldn't want a user to be able to find
>out where the chrooted environment is. This interpretation of "cd ~" gives
>way to that which is a reason to call for a fix alone.

Good point.  If someone makes this fix, they should also do it for anonymous
ftp, which currently can be made to yield this data too.  (In anonymous ftp,
perhaps "~" is always "/".. but it yields the chroot target currently.)

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:11:10 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA23925;
	Wed, 12 Nov 1997 10:05:00 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA26306
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 09:58:12 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id KAA01744
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:58:10 -0500
Message-Id: <Pine.LNX.3.95.971112104701.1485C-100000@gaia.vr.net>
Date: Wed, 12 Nov 1997 10:58:10 -0500 (EST)
Reply-To: Gregory A Lundberg <lundberg@vr.net>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971112094254.34958@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 12 Nov 1997, Michael Douglass wrote:

> Date: Wed, 12 Nov 1997 09:42:54 -0600
> From: Michael Douglass <mikedoug@texas.net>
> To: Ming Lu <mlu@privsys.gip.net>
> Cc: Gregory A Lundberg <lundberg@vr.net>, denise@jrnl.com,
>     WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
> Subject: Re: minor problem with guestgroup
> 
> On Wed, Nov 12, 1997 at 10:43:15AM -0500, Ming Lu said:
> 
> I thought that you didn't show the behavior?  Am I correct in saying
> that webuser's home directory is listed as "/home/web/./webuser"?
> Notice the cd ~ tries to cd to /home/web instead of /webuser.  That
> is the error.
> 
> > Here are my test results, followed with Gregory's test:
> > 
> > 220 server1 FTP server (Version wu-2.4.2-academ[BETA-15](1)
> > Fri Nov 12:40:31 EST 1997) ready.
> > Name (19527.50.5:mlu):webuser
> > 331 Password required for webuser.
> > Password:
> > 230 User webuser logged in.  Access restrictions apply.
> > ftp> cd ~mlu
> > 550 /home/mlu: No such file or directory.
> > ftp> pwd
> > 257 "/webuser" is current directory.
> > ftp> cd ~
> > 550 /home/web: No such file or directory.
> > ftp> cd ~anyone
> > 550 Unknown user name after ~
> > ftp>  
> 
> -- 
> Michael Douglass
> Texas Networking, Inc.
> 
>  "The past is a foreign country; they do things differently there."
>       L. P. Hartley, British author. The Go-Between, Prologue (1953).
> 

Cool.  Looks like there's two things going on here:

1) A bug in the interpretation of the home directory field of the passwd
   file.

2) A philosophy problem with which etc/passwd should be consulted.  I'd
   expect (more precisely, I'd prefer) the chroot'd etc/passwd be
   consulted.  I'd expect it because otherwise something is reaching
   outside the environment and that makes me a tad nervous.  I'd prefer
   it because that way the view of the environment is internally self-
   consistent and reveals nothing of the external environment.

   I use an automated script to set up new users and it's a rather
   simple thing for me to have it add the appropriate lines to two passwd
   files rather than just the one.

----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653




From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:20:26 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA29314;
	Wed, 12 Nov 1997 10:13:50 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA28815
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:09:59 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id KAA20299; Wed, 12 Nov 1997 10:09:58 -0600 (CST)
Message-Id: <19971112100957.24432@texas.net>
Date: Wed, 12 Nov 1997 10:09:57 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Gregory A Lundberg <lundberg@vr.net>
Cc: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.LNX.3.95.971112104701.1485C-100000@gaia.vr.net>; from Gregory A Lundberg on Wed, Nov 12, 1997 at 10:58:10AM -0500
References: <19971112094254.34958@texas.net> <Pine.LNX.3.95.971112104701.1485C-100000@gaia.vr.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, Nov 12, 1997 at 10:58:10AM -0500, Gregory A Lundberg said:

> Cool.  Looks like there's two things going on here:
> 
> 1) A bug in the interpretation of the home directory field of the passwd
>    file.
> 
> 2) A philosophy problem with which etc/passwd should be consulted.  I'd
>    expect (more precisely, I'd prefer) the chroot'd etc/passwd be
>    consulted.  I'd expect it because otherwise something is reaching
>    outside the environment and that makes me a tad nervous.  I'd prefer
>    it because that way the view of the environment is internally self-
>    consistent and reveals nothing of the external environment.

Agreed on both points.  However, I would ask that any 'fix' would ensure
that 'cd ~' would alway interpret based on the real /etc/passwd (store
the right-hand-side); and `cd ~username` use the chrooted etc/passwd.
Make sense to anyone else?

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:27:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA29405;
	Wed, 12 Nov 1997 10:19:48 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA28574
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:13:29 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id RAA14677
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 17:13:25 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 12 Nov 1997 18:24:04 +0200
Message-Id: <01bcef86$77690a40$03c27ac2@pcos.cinetic.de>
Date: Wed, 12 Nov 1997 17:17:26 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <bwaite@uswest.com>, <mikedoug@texas.net>
Cc: <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


>Now, as to your problem, I'm doing something of the same thing.  Here's
>my passwd entries.
>
>/etc/passwd:
>    alex:<crypted word here>:2111:999:alex
>FTP:/usr/ftpsite/./pub/uploads/users/alex:/dev/nul
>
>/usr/ftpsite/etc/passwd:
>    alex:x:2111:999:
>
>When alex logs in, he's sitting in the real dir
>"/usr/ftpsite/pub/uploads/users/alex".  cd'ing to "/" gets him to
>"/usr/ftpsite".  Everything seems to be working just fine.  I'm running
>beta-15, BTW


That's working fine so far. What we're interested in, is if you manage to
get the user to .../alex via typing "cd ~" after you log in that user
via ftp. We argue that neither does wu-ftp interpret the part after the
/./ in /etc/passwd as home, nor does it consult the etc/passwd in the
chrooted environment.

Oliver



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:32:54 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA28241;
	Wed, 12 Nov 1997 10:26:14 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA29965
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:20:38 -0600 (CST)
Received: from corpmail.kodak.com by kodakr.kodak.com with SMTP id AA19454
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Wed, 12 Nov 1997 11:17:58 -0500
Received: from kodak.com ([150.220.89.71]) by corpmail.kodak.com
          (post.office MTA v1.9.3b ID# 269-16266) with ESMTP id AAA8896;
          Wed, 12 Nov 1997 11:15:11 -0400
Message-Id: <3469D6C5.93F172E2@kodak.com>
Date: Wed, 12 Nov 1997 11:18:13 -0500
Reply-To: vcox@kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Don Cox <vcox@kodak.com>
To: Don Cox <dcox@grandpa.rl.kodak.com>, wu-ftpd@wugate.wustl.edu
Subject: Re: Making some progress
References: <199711121357.IAA26127@grandpa.rl.kodak.com> <3469BBE9.21FBADF@kodak.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: dcox@kodakr.kodak.com
X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 5.5 sun4u)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

OK folks,

I've read all of the FAQ's, and I couldn't find an answer to my most recent problem. :=(
It's ironic that my reason for upgrading to a newer version was because I was spawning too many
children. Now that I am running beta-15, the inverse is true! That is, the processes die too quickly.
By that I mean, if I ftp in as a guest and remain IDLE for a short amount of time, say 5 minutes, my
session is terminated:

421 Service not available, remote server has closed connection

I even got the following message once when I tried to login:

Name (ftp:dcox): dcox
331 Password required for dcox.
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory

Is there a parameter in the code that checks to see how long a session is IDLE before it
terminates the process, or is this more likely to be a HP-UX problem?

TIA.

> All,
>
> I should have read http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html first... I
> needed to add a '-a' in the inetd.conf file. Sorry for not RTM first. Onward!
>
> Don Cox wrote:
>
> > Thanks once again to all who have responded... I have beta-15 compiled
> > and (almost) working under HPUX 10.20. For some reason, I am not reading
> > the ftpaccess file. When I go in as a guest, rather than displaying the
> > welcome message, all I get is:
> >
> > 230 User dcox logged in.
> > Remote system type is UNIX.
> > Using binary mode to transfer files.
> >
> > I ran /bin/ckconfig and discovered that it expects to find ftpaccess in
> > /usr/local/lib/ftpd. I created the directory, copied over the old ftpaccess
> > that I was running under Version wu-2.4(10), and tried again. Still no good.
> > Any ideas why I am not reading ftpaccess (if that is the problem)?
> >
> > As always, thanks much in advance.
> >
> > > All,
> > >
> > > as mentioned in my previous posting:
> > >
> > > > I am running Version wu-2.4(10) on HP-UX B.10.20 A. For
> > > > some reason, my parent process spawns multiple child processes:
> > > >
> > > > root 18944   560  0 08:21:26 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > > root 18945   560  0 08:21:32 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > > root 19195   560  0 08:57:07 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > > > root 19194   560  0 08:56:59 ?  0:07 infpsgw1.abnamrona.com: anonymous/IE30User@: RETR /pub/photo-cd
> > >
> > > and so on. Kent Landfield has been gracious enough to inform me that this bug has been
> > > fixed in version beta15 (thanks again Kent, you have been most helpful! :=) My next question
> > > is, has anyone (successfully) compiled beta15 on HP-UX 10.20, and if so, are there any
> > > "gotcha's" that I should be aware of?
> >
> >  Don Cox   mailto:dcox@kodak.com   <><
> >  Phone: (716) 588-4415, KMX: 258-4415
> >  Pager: (800) SKY-8888, PIN 1989961
> >  FAX:   (716) 722-3885
> >  Webpage: http://www.kodak.com




From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:38:54 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA30609;
	Wed, 12 Nov 1997 10:32:44 -0600 (CST)
Received: from relay.xlink.net (relay.xlink.net [193.141.40.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA30195
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:31:13 -0600 (CST)
Received: from mailwizard.cinetic.de (mailwizard.cinetic.de [194.122.194.14])
	by relay.xlink.net (8.8.6/8.8.6) with ESMTP id RAA10756
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 17:31:03 +0100
Received: from pcos (194.122.194.3) by mailwizard.cinetic.de
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 12 Nov 1997 18:41:39 +0200
Message-Id: <01bcef88$ec801920$03c27ac2@pcos.cinetic.de>
Date: Wed, 12 Nov 1997 17:35:02 +0100
Reply-To: os@cinetic.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Oliver Stoll" <os@cinetic.de>
To: <mikedoug@texas.net>, "Gregory A Lundberg" <lundberg@vr.net>
Cc: "WU-FTP discussion" <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


>Agreed on both points.  However, I would ask that any 'fix' would ensure
>that 'cd ~' would alway interpret based on the real /etc/passwd (store
>the right-hand-side); and `cd ~username` use the chrooted etc/passwd.
>Make sense to anyone else?
>


I don't really like the idea of cd ~ftp and cd ~ (as ftp) going into two
different
directories, if the chrooted etc/passwd differs from /etc/passwd. The
interpretation
which makes the most sense to me would be both cd ~ cd ~username for the
_logged in user_ to be read from /etc/passwd and overridden by the chrooted
etc/passwd.

However, I would not want any "cd ~username" to be a detector for the user
who is logged in to find out if a certain user exists on the system. So if the
userid of the name in cd~username differs from the current user, only the
chrooted /etc/passwd should be consulted and nothing else.

Oliver



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 10:58:26 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id KAA01408;
	Wed, 12 Nov 1997 10:51:59 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA30302
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 10:48:55 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id LAA02215;
	Wed, 12 Nov 1997 11:48:48 -0500
Message-Id: <Pine.LNX.3.95.971112113228.1913A-100000@gaia.vr.net>
Date: Wed, 12 Nov 1997 11:48:48 -0500 (EST)
Reply-To: Gregory A Lundberg <lundberg@vr.net>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Oliver Stoll <os@cinetic.de>
Cc: mikedoug@texas.net, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <01bcef88$ec801920$03c27ac2@pcos.cinetic.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 12 Nov 1997, Oliver Stoll wrote:

> >Agreed on both points.  However, I would ask that any 'fix' would ensure
> >that 'cd ~' would alway interpret based on the real /etc/passwd (store
> >the right-hand-side); and `cd ~username` use the chrooted etc/passwd.
> >Make sense to anyone else?
> 
> I don't really like the idea of cd ~ftp and cd ~ (as ftp) going into two
> different directories, if the chrooted etc/passwd differs from
> /etc/passwd. The interpretation which makes the most sense to me would
> be both cd ~ cd ~username for the _logged in user_ to be read from
> /etc/passwd and overridden by the chrooted etc/passwd. 
> 
> However, I would not want any "cd ~username" to be a detector for the
> user who is logged in to find out if a certain user exists on the
> system. So if the userid of the name in cd~username differs from the
> current user, only the chrooted /etc/passwd should be consulted and
> nothing else.

Maybe what's needed is an option in ftpaccess to disallow the ~ form in
the CWD command.  Something like:

  cdtilde <yes|no> <typelist>

which works like chmod/delete/overwrite/rename/umask then you could

  cdtilde no anonymous

and still allow real and guest users to use cd ~[<user>] based upon the
chroot'd etc/passwd ...


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 12:28:44 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA11048;
	Wed, 12 Nov 1997 12:22:32 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA11965
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 12:17:32 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id NAA03008;
	Wed, 12 Nov 1997 13:17:17 -0500
Message-Id: <Pine.LNX.3.95.971112123508.2656A-100000@gaia.vr.net>
Date: Wed, 12 Nov 1997 13:17:17 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Oliver Stoll <os@cinetic.de>
Cc: mikedoug@texas.net, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.LNX.3.95.971112113228.1913A-100000@gaia.vr.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 12 Nov 1997, Gregory A Lundberg wrote:

> Date: Wed, 12 Nov 1997 11:48:48 -0500 (EST)
> From: Gregory A Lundberg <lundberg@vr.net>
> To: Oliver Stoll <os@cinetic.de>
> Cc: mikedoug@texas.net, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
> Subject: Re: minor problem with guestgroup
> 
> On Wed, 12 Nov 1997, Oliver Stoll wrote:
> 
> > >Agreed on both points.  However, I would ask that any 'fix' would ensure
> > >that 'cd ~' would alway interpret based on the real /etc/passwd (store
> > >the right-hand-side); and `cd ~username` use the chrooted etc/passwd.
> > >Make sense to anyone else?
> > 
> > I don't really like the idea of cd ~ftp and cd ~ (as ftp) going into two
> > different directories, if the chrooted etc/passwd differs from
> > /etc/passwd. The interpretation which makes the most sense to me would
> > be both cd ~ cd ~username for the _logged in user_ to be read from
> > /etc/passwd and overridden by the chrooted etc/passwd. 
> > 
> > However, I would not want any "cd ~username" to be a detector for the
> > user who is logged in to find out if a certain user exists on the
> > system. So if the userid of the name in cd~username differs from the
> > current user, only the chrooted /etc/passwd should be consulted and
> > nothing else.
> 
> Maybe what's needed is an option in ftpaccess to disallow the ~ form in
> the CWD command.  Something like:
> 
>   cdtilde <yes|no> <typelist>
> 
> which works like chmod/delete/overwrite/rename/umask then you could
> 
>   cdtilde no anonymous
> 
> and still allow real and guest users to use cd ~[<user>] based upon the
> chroot'd etc/passwd ...
> 

Looking at the code for beta-15 I see:

1) 'CWD' (no parameters) uses pw->pw_dir which is the home directory for
   the currently logged in user, relative to the real environment not
   the chroot'd environment.  This is passed to a function named cwd() in
   ftpd.c. From earlier email's I'm stating this is not the Right Thing to
   Do (tm).  Worse yet, it was *STOMPED* on by the guestgroup code so we
   can consider it garbage.  CWD without parameters is therefore very
   unreliable. 

2) 'CWD pathname' simply passes 'pathname' to the same internal function
   cwd().  No problem here.

3) The function cwd() starts off by calling the system function chdir().
   How chdir() responds to a tilde-path is unknown (by the man pages from
   my RHL CD and on my HP/UX 10 system) and I'd not want to bet it's the
   same from one system to the next.  This is where we're seeing the
   differing results, but in all cases the results seem incorrect.

Further thought on the problems, considering filenames, etc., leads me to
the following:

   wu-ftpd does not currently support ~[<user>] when referencing
   directories or files.  when they work, if they even do, is entirely
   platform dependent and results of their use are unpredictable. 

and

   wu-ftpd, with guestgroups in use, does not properly handle CWD when
   no parameters are present.  This is (now) a known problem and will be
   fixed in a future release.

The easiest patch I can see is to check for tilde in the directory/file
name supplied and report an error.  This is, at best, simply expediant.  I
consider it a poor long-term solution.

A patch correcting the use of tilde would appear to touch far too many
points in the driver and should be left for the next version (presuming an
end to these interminable 'beta' releases is ever reached). 

The patch to at least get CWD passing a non-stomped-upon copy of pw-pw_dir
to cwd() should be fairly straightforward .. maybe we can get it in beta
16, or 17, or 18 ...

I love that scene where the Pope calls up to Michelaneglo, "When will you
make an end?"

----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 13:29:29 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA18197;
	Wed, 12 Nov 1997 13:23:32 -0600 (CST)
Received: from differential.com (differential.com [204.152.97.192])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA17473
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 13:16:53 -0600 (CST)
Received: (from jevans@localhost) by differential.com (8.8.0/8.6.9) id LAA04041; Wed, 12 Nov 1997 11:16:00 -0800 (PST)
Message-Id: <199711121916.LAA04041@differential.com>
Date: Wed, 12 Nov 1997 11:16:00 -0800 (PST)
Reply-To: jevans@differential.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Dave Jevans <jevans@differential.com>
To: lundberg@vr.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


>   How chdir() responds to a tilde-path is unknown (by the man pages from

chdir on UNIX treats tilde literally.  This is not
what you want.  You want the csh expansion of
tilde.  (eg ~jevans  === /home/gods/jevans).

You must do your own tilde expansion prior to
calling the chdir() function.

I believe you can use the globtilde() routine
from ftpcmd.c


DJ
---
David Jevans                            http://www.differential.com
Email: jevans@differential.com          Phone: (408) 864-0603

         Secure FTP and Extranet data management.
                      www.filedrive.com

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 13:47:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA21621;
	Wed, 12 Nov 1997 13:41:59 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA20853
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 13:40:41 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id OAA03591;
	Wed, 12 Nov 1997 14:40:35 -0500
Message-Id: <Pine.LNX.3.95.971112143646.3549A-100000@gaia.vr.net>
Date: Wed, 12 Nov 1997 14:40:35 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Dave Jevans <jevans@differential.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <199711121916.LAA04041@differential.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 12 Nov 1997, Dave Jevans wrote:

> chdir on UNIX treats tilde literally.  This is not
> what you want.  You want the csh expansion of
> tilde.  (eg ~jevans  === /home/gods/jevans).

Exactly.

> You must do your own tilde expansion prior to
> calling the chdir() function.
> 
> I believe you can use the globtilde() routine
> from ftpcmd.c

In beta-15 of wu-ftpd?  I just downloaded it and

grep tilde *[ch] -- no hits

grep \~ *[ch] -- expand() in glob.c .. I'll have to study it but on first
glance I'd say this is only good in some cases.  It bears further study,
though.  Tanks.

----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 12 20:32:47 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id UAA24146;
	Wed, 12 Nov 1997 20:27:08 -0600 (CST)
Received: from tecoma.mccc.edu (www.mccc.edu [198.133.170.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA25542
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 20:26:27 -0600 (CST)
Received: from tecoma (tecoma [198.133.170.1])
	by tecoma.mccc.edu (8.8.5/8.8.5) with SMTP id VAA11651
	for <wu-ftpd@wugate.wustl.edu>; Wed, 12 Nov 1997 21:26:23 -0500 (EST)
Message-Id: <Pine.SOL.3.96.971112212229.11528A-100000@tecoma>
Date: Wed, 12 Nov 1997 21:26:22 -0500 (EST)
Reply-To: pjh@mccc.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Pete Holsberg <pjh@mccc.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: ftpaccess "limit" puzzle!
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: pjh@tecoma
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I decided to cut back on the number of non-local ftp-ers
permitted, so I edited ftpaccess to this:

========================================================
class   mccc   	anonymous,real	*.mccc.edu
class	nonmccc	anonymous,real	!(*.mccc.edu)

limit   nonmccc   5   Any	/usr/local/etc/msg.toomany
limit   mccc      35   Any      /usr/local/etc/msg.toomany

readme  README*    login
readme  README*    cwd=*

message /welcome.msg            login
message .message                cwd=*

compress        yes             local remote
tar             yes             local remote

log commands real
log transfers anonymous,real inbound,outbound

#shutdown /usr/local/etc/msg.shut

email pjh@mccc.edu

passwd-check	rfc822	enforce

banner	/opt/etc/ftp-banner

loginfails 2

tar		no	mccc,nonmccc
compress	no	mccc,nonmccc
chmod		no	mccc,nonmccc
delete		no	mccc,nonmccc
overwrite	no	mccc,nonmccc
rename		no	mccc,nonmccc
umask		no	mccc,nonmccc
=======================================================

I killed all the current ftpd processes and did a kill -HUP
on inetd and waited a few minutes. When I tried ftpwho, it
showed 13/15 non-local users!

So I killed all the ftpd processes, shut down inetd, and
then restarted it.

Waited a few minutes and tried ftpwho again. Darned  if I
didn't have 12/15 non-local users!

What have I done wrong?

Thanks,
Pete


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 03:50:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id DAA29638;
	Thu, 13 Nov 1997 03:44:07 -0600 (CST)
Received: from ns1.cbu.skyinet.net ([208.142.164.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id DAA23037
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 03:39:16 -0600 (CST)
Received: from skyinet.net (pc03.cbu.skyinet.net [208.142.164.103])
	by ns1.cbu.skyinet.net (8.8.5/8.8.5) with ESMTP id RAA26210
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 17:42:23 +0800
Message-Id: <346ACB3A.6B140694@skyinet.net>
Date: Thu, 13 Nov 1997 17:41:14 +0800
Reply-To: vernie@skyinet.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Vernie T. Gloria" <vernie@skyinet.net>
To: wu-ftpd@wugate.wustl.edu
Subject: ls -l and dir command displays nothing
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (Win95; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I have here a copy of our ftpaccess file.  The passwd entry is

test:x:506:100:Linux User:/home/test:/bin/tcsh

The user test belongs to a group called users.
When the user test login via FTP, all restrictions applied as ftpaccess
file stated and his home directory is /home/test with respect to the
system and seen as / whith respect to user test.

The problem is when we issue a command ls -l or dir, theres no list of
files or directories except for ls without any parameter.

We are using Version wu-2.4.2-academ[BETA-12](1) as what the diplay says
when we login.  Our system is running Red Hat Linux.

Is there any idea what's wrong with our setup?


---------ftpaccess file------------

class   all      real,guest,anonymous,root  *

email root@localhost

loginfails 3

deny !nameserved
guestgroup      users webusers
limit   all     10      Any     /etc/msg/.msg.deny
banner /etc/msg/.readme
readme  README*    login
readme  README*    cwd=*

#message /etc/msg/.message      login
#message /etc/msg/.message      cwd=*

compress        yes             all
tar             yes             all
chmod           no              guest,anonymous
delete          no              anonymous
overwrite       no              anonymous
rename          no              anonymous
umask           no              guest,anonymous

log transfers anonymous,real inbound,outbound

shutdown /etc/shutmsg

passwd-check rfc822 warn

-------end of ftpaccess file-----


-- 
Vernie T. Gloria

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 03:56:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id DAA30693;
	Thu, 13 Nov 1997 03:49:57 -0600 (CST)
Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id DAA31151
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 03:46:19 -0600 (CST)
Received: from seth.mch.sni.de (seth.mch.sni.de [139.25.208.77])
	by thoth.mch.sni.de (8.8.8/8.8.8) with SMTP id KAA10537
	for <@mail.mch.sni.de:wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 10:46:17 +0100 (MET)
Received: (from winfried@localhost) by seth.mch.sni.de (950413.SGI.8.6.12/950213.SGI.AUTOCF) id KAA22523 for wu-ftpd@wugate.wustl.edu; Thu, 13 Nov 1997 10:46:16 +0100
Message-Id: <199711130946.KAA22523@seth.mch.sni.de>
Date: Thu, 13 Nov 1997 10:46:16 +0100 ("MET)
Reply-To: Winfried.Magerl@mch.sni.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Winfried.Magerl@mch.sni.de (Winfried Magerl)
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971112092958.36613@texas.net> from "Michael Douglass" at Nov 12, 97 09:29:58 am
Content-Type: text
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> On Wed, Nov 12, 1997 at 10:24:31AM -0500, Ming Lu said:
> > Hoops, it should be:
> > 
> > test:x:100:100:restrict user:/web/www/htdocs/users/./test/:/etc/ftponly
> 
> Why?  Why would the following not work?  It's just adding one more
> directorie's depth.
> 
> test:x:100:100:restrict user:/web/www/htdocs/users/./t/test/:/etc/ftponly

It works !
I run a server with one chroot-directory and a lot of guest-users
with different home-directories.
It's exactly as described in the manpage and I see no problems.
The only difference to your line is, that I don't have a slash
following the home-directory (I think the only reason to have a
/ on the end ist to chroot to a home-directory, for example:
/web/www/htdocs/users/test/./)

Here a few lines from my /etc/passwd:

mp:x:115:111::/intranet/./intrahost/MP:/bin/true
oeatcit:x:116:112::/intranet/./docs/Mittel/KOeatcit:/bin/true
chestra:x:117:113::/intranet/./intrahost/chestra:/bin/true

regards

	winfried

-- 
Winfried Magerl - Internet Administration
Siemens Business Services, 81739 Munich, Germany
Internet-Mail: Winfried.Magerl@mch.sni.de

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 07:49:51 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA15872;
	Thu, 13 Nov 1997 07:43:44 -0600 (CST)
Received: from biff.stud.ntnu.no (biff.stud.ntnu.no [129.241.56.18])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id HAA15583
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 07:39:21 -0600 (CST)
Received: from ild.stud.ntnu.no (ild.stud.ntnu.no [129.241.56.15])
	by biff.stud.ntnu.no (8.8.8/8.8.8) with ESMTP id OAA08732
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 14:39:20 +0100 (MET)
Received: (from joge@localhost)
	by ild.stud.ntnu.no (8.8.8/8.8.8) id OAA22580
	for wu-ftpd@wugate.wustl.edu; Thu, 13 Nov 1997 14:39:19 +0100 (MET)
Message-Id: <199711131339.OAA22580@ild.stud.ntnu.no>
Date: Thu, 13 Nov 1997 14:39:19 +0100 (MET)
Reply-To: joge@stud.ntnu.no
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Geir Johannessen <joge@stud.ntnu.no>
To: wu-ftpd@wugate.wustl.edu
Subject: Message no anonymous?
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Url: http://www.stud.ntnu.no/~joge/
X-Mailer: ELM [version 2.4ME+ PL37 (25)]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I try to login as anonymous on our ftp-server:

220 storm.stud.ntnu.no FTP server (Version wu-2.4.2.b14-GJ) ready.
Name (ftp.stud.ntnu.no:joge): anonymous
530 User anonymous unknown.
Login failed.

How can I tell the users that we do not allow anonymous logins? The best
would be to have a similare option as with deny !nameserved.

>From syslog:
Nov 13 14:18:37 storm ftpd[7139]: FTP LOGIN REFUSED (ftp not in
/etc/passwd) FROM ild.stud.ntnu.no [129.241.56.15], ftp
Nov 13 14:21:45 storm ftpd[8997]: FTP LOGIN REFUSED (ftp not in
/etc/passwd) FROM ild.stud.ntnu.no [129.241.56.15], anonymous

So if I have a user ftp in /etc/passwd it would allow anonymous logins just
like that? Or am I just misinterpretating the message? I guess it should
demand to have a class anonymous in ftpaccess?

--
Geir Johannessen          #  joge@stud.ntnu.no
E B Schieldropsvei 35-25  #  http://www.stud.ntnu.no/~joge/
N-7033 TRONDHEIM, NORWAY  #  Tlf private +47-73888989, job +47-73598048
"1. Never be first. 2. Never be last. 3. Never volunteer for anything."

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 08:34:10 1997
Received: from relay1.UU.NET by relay1.UU.NET with ESMTP 
	(peer crosschecked as: root@localhost)
	id QQdpmo20624; Thu, 13 Nov 1997 09:33:19 -0500 (EST)
Received: from wugate.wustl.edu by relay1.UU.NET with ESMTP 
	(peer crosschecked as: wugate.wustl.edu [128.252.120.1])
	id QQdpmo20547; Thu, 13 Nov 1997 09:33:16 -0500 (EST)
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA17856;
	Thu, 13 Nov 1997 08:27:32 -0600 (CST)
Received: from att.com (cagw1.att.com [192.128.52.89])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA18187
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 08:26:44 -0600 (CST)
Received: by cagw1.att.com; Thu Nov 13 09:21 EST 1997
Received: from lynxhub.lz.att.com ([135.25.204.10])
	by caig1.att.att.com (AT&T/GW-1.0) with SMTP id JAA11835
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 09:17:46 -0500 (EST)
Received: from ROGERH ([135.25.200.159]) by lynxhub.lz.att.com (5.x/EMS-1.2 sol2)
	id AA12116; Thu, 13 Nov 1997 09:24:14 -0500
Received: by ROGERH with Microsoft Mail
	id <01BCF016.BB206360@ROGERH>; Thu, 13 Nov 1997 09:30:07 -0500
Message-Id: <01BCF016.BB206360@ROGERH>
Date: Thu, 13 Nov 1997 09:30:06 -0500
Reply-To: rah@lynxhub.lz.att.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Roger A. Hanke" <rah@lynxhub.lz.att.com>
To: "'joge@stud.ntnu.no'" <joge@stud.ntnu.no>
Cc: "'WUFTPD List'" <wu-ftpd@wugate.wustl.edu>
Subject: RE: Message no anonymous?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Using the banner command in the ftpaccess file would do the trick.
It is the only thing that comes out prior to the anonymous login.
You could just add a statement that they have reached a ftp server
that does not support anonymous login.
	Roger Hanke

----------
From: 	Geir Johannessen[SMTP:joge@stud.ntnu.no]
Sent: 	Thursday, November 13, 1997 8:39 AM
To: 	wu-ftpd@wugate.wustl.edu
Subject: 	Message no anonymous?

I try to login as anonymous on our ftp-server:

220 storm.stud.ntnu.no FTP server (Version wu-2.4.2.b14-GJ) ready.
Name (ftp.stud.ntnu.no:joge): anonymous
530 User anonymous unknown.
Login failed.

How can I tell the users that we do not allow anonymous logins? The best
would be to have a similare option as with deny !nameserved.

>From syslog:
Nov 13 14:18:37 storm ftpd[7139]: FTP LOGIN REFUSED (ftp not in
/etc/passwd) FROM ild.stud.ntnu.no [129.241.56.15], ftp
Nov 13 14:21:45 storm ftpd[8997]: FTP LOGIN REFUSED (ftp not in
/etc/passwd) FROM ild.stud.ntnu.no [129.241.56.15], anonymous

So if I have a user ftp in /etc/passwd it would allow anonymous logins just
like that? Or am I just misinterpretating the message? I guess it should
demand to have a class anonymous in ftpaccess?

--
Geir Johannessen          #  joge@stud.ntnu.no
E B Schieldropsvei 35-25  #  http://www.stud.ntnu.no/~joge/
N-7033 TRONDHEIM, NORWAY  #  Tlf private +47-73888989, job +47-73598048
"1. Never be first. 2. Never be last. 3. Never volunteer for anything."




From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 09:06:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA17100;
	Thu, 13 Nov 1997 08:59:00 -0600 (CST)
Received: from goon.stg.brown.edu (root@goon.stg.brown.edu [128.148.157.19])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA20079
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 08:52:45 -0600 (CST)
Received: from goon.stg.brown.edu (localhost [127.0.0.1])
	by goon.stg.brown.edu (8.8.5/8.8.5) with ESMTP id JAA15997
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 09:52:44 -0500
Message-Id: <199711131452.JAA15997@goon.stg.brown.edu>
Date: Thu, 13 Nov 1997 09:52:44 -0500
Reply-To: richard@goon.stg.brown.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Richard L. Goerwitz III" <richard@goon.stg.brown.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: ftpaccess "limit" puzzle! 
In-Reply-To: Your message of "Wed, 12 Nov 1997 21:26:22 EST."
             <Pine.SOL.3.96.971112212229.11528A-100000@tecoma> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: exmh version 1.6.9 05/05/96
X-Url: http://www.stg.brown.edu/stg/staff_pages/richard.html
X-Face: #,bgOf7[Z5["^1[?.)k?^vYpV4**Cxrg2'At1vp{+k$#Q-}p?y`'4x8*SscV,hjGeIU&
 0+&e}eRQL/rR'|@y|r[l2?Z#KJ$h-u$vgK6<QO24yaM(2b"hG^})4%nx5$X6h#beJf(Hx
 m,6V*5)mhg+vL%A"B6N]hNDFP},C8/M6Mk.}"5;<1;):c_-S1gX6-^=*MqW$T}[mY*2\d&
 d;77(fvjqy~?XI-2K?&\s8vEjp]4p/R$lcPE>j
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Quick followup:

>I decided to cut back on the number of non-local ftp-ers
>permitted, so I edited ftpaccess to this:
>
>========================================================
>class   mccc   	anonymous,real	*.mccc.edu
>class	nonmccc	anonymous,real	!(*.mccc.edu)
>
>limit   nonmccc   5   Any	/usr/local/etc/msg.toomany
>limit   mccc      35   Any      /usr/local/etc/msg.toomany

Will it work if you do it this way:

class   mccc   	anonymous,real	*.mccc.edu
class	nonmccc	anonymous,real

limit   mccc      35   Any      /usr/local/etc/msg.toomany
limit   nonmccc   5    Any	/usr/local/etc/msg.toomany

-- 

Richard Goerwitz
PGP key fingerprint:    C1 3E F4 23 7C 33 51 8D  3B 88 53 57 56 0D 38 A0
For more info (mail, phone, fax no.):  finger richard@goon.stg.brown.edu



From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 09:43:41 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA27428;
	Thu, 13 Nov 1997 09:38:02 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA26806
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 09:33:34 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id JAA07400; Thu, 13 Nov 1997 09:33:11 -0600 (CST)
Message-Id: <19971113093311.39931@texas.net>
Date: Thu, 13 Nov 1997 09:33:11 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Winfried.Magerl@mch.sni.de
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <199711130946.KAA22523@seth.mch.sni.de>; from Winfried Magerl on Thu, Nov 13, 1997 at 10:46:16AM +0100
References: <19971112092958.36613@texas.net> <199711130946.KAA22523@seth.mch.sni.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, Nov 13, 1997 at 10:46:16AM +0100, Winfried Magerl said:

What happens when you enter `cd ~`?

> > On Wed, Nov 12, 1997 at 10:24:31AM -0500, Ming Lu said:
> > > Hoops, it should be:
> > > 
> > > test:x:100:100:restrict user:/web/www/htdocs/users/./test/:/etc/ftponly
> > 
> > Why?  Why would the following not work?  It's just adding one more
> > directorie's depth.
> > 
> > test:x:100:100:restrict user:/web/www/htdocs/users/./t/test/:/etc/ftponly
> 
> It works !
> I run a server with one chroot-directory and a lot of guest-users
> with different home-directories.
> It's exactly as described in the manpage and I see no problems.
> The only difference to your line is, that I don't have a slash
> following the home-directory (I think the only reason to have a
> / on the end ist to chroot to a home-directory, for example:
> /web/www/htdocs/users/test/./)
> 
> Here a few lines from my /etc/passwd:
> 
> mp:x:115:111::/intranet/./intrahost/MP:/bin/true
> oeatcit:x:116:112::/intranet/./docs/Mittel/KOeatcit:/bin/true
> chestra:x:117:113::/intranet/./intrahost/chestra:/bin/true
> 
> regards
> 
> 	winfried
> 
> -- 
> Winfried Magerl - Internet Administration
> Siemens Business Services, 81739 Munich, Germany
> Internet-Mail: Winfried.Magerl@mch.sni.de

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 11:12:49 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA28342;
	Thu, 13 Nov 1997 11:05:08 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA04600
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 11:03:29 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21]) by proxy.privat.wmo.de (8.8.6/8.6.9) with SMTP id RAA06925 for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 17:12:30 +0100
Message-Id: <Pine.LNX.3.91.971113170633.5766D-100000@proxy.privat.wmo.de>
Date: Thu, 13 Nov 1997 17:12:30 +0100 (MET)
Reply-To: malla@wmo.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Malla, Suman" <malla@wmo.de>
To: WUSTL ListProc <wu-ftpd@wugate.wustl.edu>
Subject: WU-ftpd compilation problem...
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: malla@proxy.privat.wmo.de
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Hi All,

I am trying to compile WU-ftpd on Red Hat 4.2 box and getting the
following error. Could someone pls tell me how to fix them.
Your help will be highly appreciated.


[root@foo wu-ftpd-2.4]# ./build lnx
make args are : 
make opts are : 

Linking Makefiles.

Making support library.
Makefile:13: *** missing separator.  Stop.

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:42:
config.h:25: syntax error before `typedef'
In file included from ftpd.c:46:
/usr/include/sys/stat.h:19: syntax 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'
ftpd.c:386: warning: passing arg 2 of `__bsd_signal' from incompatible pointer type
[snip]...
ftpd.c:469: warning: passing arg 2 of `__bsd_signal' from incompatible pointer type
ftpd.c: At top level:
ftpd.c:560: parse error before `randomsig'
ftpd.c:571: parse error before `lostconn'
ftpd.c: In function `pass':
ftpd.c:1002: warning: assignment makes integer from pointer without a cast
ftpd.c: In function `opt_string':
ftpd.c:1226: warning: comparison between pointer and integer
ftpd.c:1228: warning: comparison between pointer and integer
ftpd.c:1230: warning: comparison between pointer and integer
ftpd.c: In function `retrieve':
ftpd.c:1342: warning: comparison between pointer and integer
ftpd.c: At top level:
ftpd.c:2437: parse error before `myoob'
make: *** [ftpd.o] Error 1

Making ftpcount.
gcc -O -DDEBUG -I.. -I../support -I/usr/include/bsd -L../support -o ftpcount ftpcount.c vers.o -lsupport -lbsd
gcc: vers.o: No such file or directory
In file included from ftpcount.c:32:
config.h:25: syntax error before `typedef'
In file included from /usr/include/libio.h:30,
                 from /usr/include/stdio.h:34,
                 from ftpcount.c:34:
/usr/include/_G_config.h:22: syntax error before `typedef'
ftpcount.c: In function `parsetime':
ftpcount.c:98: warning: comparison between pointer and integer
ftpcount.c:107: warning: comparison between pointer and integer
ftpcount.c: In function `acl_getlimit':
ftpcount.c:159: warning: comparison between pointer and integer
ftpcount.c:162: warning: assignment makes integer from pointer without a cast
ftpcount.c: In function `main':
ftpcount.c:307: warning: comparison between pointer and integer
ftpcount.c:310: warning: assignment makes integer from pointer without a cast
make: *** [ftpcount] Error 1

Making ftpshut.
gcc -O -DDEBUG -I.. -I../support -I/usr/include/bsd -L../support -o ftpshut ftpshut.c vers.o -lsupport -lbsd
gcc: vers.o: No such file or directory
In file included from ftpshut.c:37:
config.h:25: syntax error before `typedef'
In file included from /usr/include/bsd/errno.h:5,
                 from ftpshut.c:39:
/usr/include/errno.h:30: syntax error before `extern'
ftpshut.c: In function `main':
ftpshut.c:188: warning: comparison between pointer and integer
ftpshut.c:191: warning: assignment makes integer from pointer without a cast
make: *** [ftpshut] Error 1

Making ckconfig.
gcc -O -DDEBUG -I.. -I../support -I/usr/include/bsd -L../support -o ckconfig ckconfig.c

Links to executables are in bin directory:
size: bin/ftpd: No such file or directory
size: bin/ftpcount: No such file or directory
size: bin/ftpshut: No such file or directory
size: bin/ftpwho: No such file or directory
text	data	bss	dec	hex	filename
992    	1853   	88     	2933   	b75    	bin/ckconfig

[root@foo wu-ftpd-2.4]# ./build install
make args are : 
make opts are : 
make: *** No rule to make target `bin/ftpd', needed by `install'.  Stop.


TIA.

Rgds,
Suman Malla 

Notice: The only person getting his work done by friday was Robinson Crusoe.



From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 11:16:43 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA05557;
	Thu, 13 Nov 1997 11:11:27 -0600 (CST)
Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA04218
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 11:08:59 -0600 (CST)
Received: from seth.mch.sni.de (seth.mch.sni.de [139.25.208.77])
	by thoth.mch.sni.de (8.8.8/8.8.8) with SMTP id SAA09719
	for <@mail.mch.sni.de:wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 18:08:53 +0100 (MET)
Received: (from winfried@localhost) by seth.mch.sni.de (950413.SGI.8.6.12/950213.SGI.AUTOCF) id SAA23966 for wu-ftpd@wugate.wustl.edu; Thu, 13 Nov 1997 18:08:52 +0100
Message-Id: <199711131708.SAA23966@seth.mch.sni.de>
Date: Thu, 13 Nov 1997 18:08:52 +0100 ("MET)
Reply-To: Winfried.Magerl@mch.sni.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Winfried.Magerl@mch.sni.de (Winfried Magerl)
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971113093311.39931@texas.net> from "Michael Douglass" at Nov 13, 97 09:33:11 am
Content-Type: text
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> On Thu, Nov 13, 1997 at 10:46:16AM +0100, Winfried Magerl said:
> 
> What happens when you enter `cd ~`?

O.k., hier some things I try:

passwd-entry:
internet:x:105:1::/intranet/./intrahost:/bin/ksh

Name (intranet:internet): 
331 Password required for internet.
Password:
230 User internet logged in.  Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd ~
250 CWD command successful.
ftp> pwd
257 "/intranet" is current directory.
ftp> cd /
250 CWD command successful.
ftp> cd ~
250 CWD command successful.
ftp> pwd
257 "/intranet" is current directory.

Hmmmm.....
realy suspicious .....
looks like ~ is expanded to the first part of the homedirectory
(there exist a real directory /intranet/intranet).
cd ~user works if you correct your <chroot>/etc/passwd.

I'm not shure how this problem should be solved.
Maybe something like this:
if you are a guest-user and the passwd has a "/./" then use the
second part of the homedirectory. But on the other side:
You are in a chroot-environment. Why should you reach
others homedirectory with ~user ???
Thats a feature which must only work for real users.
And yes, it works for real users ;-)

>From this point of view the only thing worth to fix is "cd ~".

regards

	winfried

-- 
Winfried Magerl - Internet Administration
Siemens Business Services, 81739 Munich, Germany
Internet-Mail: Winfried.Magerl@mch.sni.de

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 17:01:50 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA08426;
	Thu, 13 Nov 1997 16:49:31 -0600 (CST)
Received: from mailhost.chicago.il.ameritech.net (mpdr0.chicago.il.ameritech.net [206.141.192.243])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA03981
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 16:46:12 -0600 (CST)
Received: from daugherty.content.ameritech.net (dyn-max1-43.chicago.il.ameritech.net [206.141.208.43]) by mailhost.chicago.il.ameritech.net (8.8.3/8.8.3-AIMS) with SMTP id QAA05330 for <wu-ftpd@mail.wustl.edu>; Thu, 13 Nov 1997 16:46:11 -0600 (CST)
Message-Id: <3.0.32.19971113164650.00af46b4@mailhost.chi.ameritech.net>
Date: Thu, 13 Nov 1997 16:46:53 -0600
Reply-To: bsd@ameritech.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Daugherty <bsd@ameritech.net>
To: wu-ftpd@wugate.wustl.edu
Subject: Mac Netscape & WU-Ftpd
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: bsd@mailhost.chi.ameritech.net
X-Mailer: Windows Eudora Pro Version 3.0 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello,

	Has anybody experienced the problem where Mac users can't connect to their
WU-Ftp site using Netscape(3/4) on System(7/8)?  They are getting the error
"Communications Exception (-244)."  They can connect with "Fetch" and other
FTP programs so I wan't to say it's a Mac Netscape issue, however, as an
ISP we would like to be able to support everyone.  I look at the syslog and
they are connecting with the following output:

Nov 13 15:36:28 stormbringer ftpd[1259]: connection from
dyn-max2-184.chicago.il
.ameritech.net [206.141.208.184]
Nov 13 15:36:28 stormbringer ftpd[1259]: USER anonymous
Nov 13 15:36:31 stormbringer ftpd[1259]: PASS spmg@ameritech.net
Nov 13 15:36:31 stormbringer ftpd[1259]: ANONYMOUS FTP LOGIN FROM
dyn-max2-184.c
hicago.il.ameritech.net [206.141.208.184], spmg@ameritech.net
Nov 13 15:36:31 stormbringer ftpd[1259]: SYST
Nov 13 15:36:32 stormbringer ftpd[1259]: PWD
Nov 13 15:36:32 stormbringer ftpd[1259]: PASV
Nov 13 15:36:32 stormbringer ftpd[1259]: FTP session closed

Does anybody have any ideas?

Thanks,
Brad

Brad Daugherty - Ameritech.net - Network Systems Engineer/Integrator
300 S. Riverside, Suite 1800N, Chicago, IL 60606
Phone:(312) 526-8026 | Fax:(312) 526-8772 | Pager:(888) 312-8239
Email: bsd@ameritech.net


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 13 17:13:10 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA13604;
	Thu, 13 Nov 1997 17:07:11 -0600 (CST)
Received: from mailhost.chicago.il.ameritech.net (mpdr0.chicago.il.ameritech.net [206.141.192.243])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id RAA09728
	for <wu-ftpd@wugate.wustl.edu>; Thu, 13 Nov 1997 17:01:46 -0600 (CST)
Received: from daugherty.content.ameritech.net (dyn-max1-43.chicago.il.ameritech.net [206.141.208.43]) by mailhost.chicago.il.ameritech.net (8.8.3/8.8.3-AIMS) with SMTP id RAA13430 for <wu-ftpd@mail.wustl.edu>; Thu, 13 Nov 1997 17:01:45 -0600 (CST)
Message-Id: <3.0.32.19971113170219.006a736c@mailhost.chi.ameritech.net>
Date: Thu, 13 Nov 1997 17:02:27 -0600
Reply-To: bsd@ameritech.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Daugherty <bsd@ameritech.net>
To: wu-ftpd@wugate.wustl.edu
Subject: SORRY! - Mac Netscape & WU-Ftpd
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: bsd@mailhost.chi.ameritech.net
X-Mailer: Windows Eudora Pro Version 3.0 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hey there,

	It was in the FAQ - "chmod 666 ~ftp/dev/tcp"

Thanks,
Brad

Brad Daugherty - Ameritech.net - Network Systems Engineer/Integrator
300 S. Riverside, Suite 1800N, Chicago, IL 60606
Phone:(312) 526-8026 | Fax:(312) 526-8772 | Pager:(888) 312-8239
Email: bsd@ameritech.net


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 14 14:01:05 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA10850;
	Fri, 14 Nov 1997 13:52:36 -0600 (CST)
Received: from cygnus.com (runyon.cygnus.com [205.180.230.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA11391
	for <wu-ftpd@wugate.wustl.edu>; Fri, 14 Nov 1997 13:46:10 -0600 (CST)
Received: from cleric.cygnus.com. (cleric.cygnus.com [205.180.230.50])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id LAA01446
	for <wu-ftpd@wugate.wustl.edu>; Fri, 14 Nov 1997 11:45:37 -0800 (PST)
Received: by cleric.cygnus.com. (SMI-8.6/SMI-SVR4)
	id LAA03482; Fri, 14 Nov 1997 11:45:39 -0800
Message-Id: <199711141945.LAA03482@cleric.cygnus.com.>
Date: Fri, 14 Nov 1997 11:45:38 -0800 (PST)
Reply-To: mrovner@cygnus.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: mrovner@cygnus.com (Marc David Rovner)
To: wu-ftpd@wugate.wustl.edu
Subject: Investigating wu-ftp on various platforms...
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4ME+ PL32 (25)]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Greetings folks,

We are thinking of upgrading our ftp server and I was wondering if anyone
has done or seen any performance/cost comparisons of wu-ftp running on
various platforms, commercial and free.

On a similar note, does any suggestions on an optimal, but not overkill,
system.

Sure, my supervisor is ready to drop a large bundle on a big, overpowered
system, but I was just wondering if there were better ways to get the same
solution.

Thanks in advance.

						- Marc David Rovner

						  Systems Administrator
						  Cygnus Solutions

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 14 17:59:06 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA12891;
	Fri, 14 Nov 1997 17:52:48 -0600 (CST)
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA10130
	for <wu-ftpd@wugate.wustl.edu>; Fri, 14 Nov 1997 17:49:59 -0600 (CST)
Received: from LOCAL (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 4148
          on Fri, 14 Nov 1997 23:49:57 GMT; id XAA04148
          efrom: news@Garfield.IAEhv.nl; eto: wu-ftpd@wugate.wustl.edu
Received: (from news@localhost)
	by Garfield.IAEhv.nl (8.8.5/8.8.5) id OAA21150;
	Fri, 14 Nov 1997 14:45:50 +0100
Message-Id: <64hkme$j1h$2@Garfield.IAEhv.nl>
Date: 14 Nov 1997 13:45:50 GMT
Reply-To: Perry.Rovers@IAE.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Perry.Rovers@IAE.nl
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
References: <Pine.LNX.3.95.971112123508.2656A-100000@gaia.vr.net>
X-no-archive: yes
X-bofh-archive: yes
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970324; i586 Linux 2.0.28]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pink elephants with an attitude inspired Gregory A Lundberg <lundberg@vr.net> to tell garfield.mail.wu-ftpd:

: A patch correcting the use of tilde would appear to touch far too many
: points in the driver and should be left for the next version (presuming an
: end to these interminable 'beta' releases is ever reached). 

You know.. this whole thread could drive a man to drink..

I already reported the ~ behaviour to the list and to Stan Barber on
Wed, 18 Jun 1997. It was filed as ticket [ACADEM-SW-SUPPORT #373]
And I received an answer on Sun, 10 Aug 1997 containing:

> Yes, the "cd ~" with the response you have noted is considered normal.
> What you have suggested is a feature enhancement and will be considered
> when we get to doing enhancements in release 2.5.

Can this thread end now? Please.

-- 
Perry Rovers (Perry.Rovers@IAE.nl)

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 14 18:05:07 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA11246;
	Fri, 14 Nov 1997 17:59:37 -0600 (CST)
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA08237
	for <wu-ftpd@wugate.wustl.edu>; Fri, 14 Nov 1997 17:50:11 -0600 (CST)
Received: from LOCAL (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 4187
          on Fri, 14 Nov 1997 23:50:09 GMT; id XAA04187
          efrom: news@Garfield.IAEhv.nl; eto: wu-ftpd@wugate.wustl.edu
Received: (from news@localhost)
	by Garfield.IAEhv.nl (8.8.5/8.8.5) id OAA20877;
	Fri, 14 Nov 1997 14:34:20 +0100
Message-Id: <64hk0s$j1h$1@Garfield.IAEhv.nl>
Date: 14 Nov 1997 13:34:20 GMT
Reply-To: Perry.Rovers@IAE.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Perry.Rovers@IAE.nl
To: wu-ftpd@wugate.wustl.edu
Subject: Re: WU-ftpd compilation problem...
References: <Pine.LNX.3.91.971113170633.5766D-100000@proxy.privat.wmo.de>
X-no-archive: yes
X-bofh-archive: yes
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970324; i586 Linux 2.0.28]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pink elephants with an attitude inspired "Malla, Suman" <malla@wmo.de> to tell garfield.mail.wu-ftpd:

: I am trying to compile WU-ftpd on Red Hat 4.2 box and getting the
: following error. Could someone pls tell me how to fix them.
: Your help will be highly appreciated.

: Making support library.
: Makefile:13: *** missing separator.  Stop.

I seem to remember this error being caused by trying to use GNU make
with berkeley style Makefiles. Try pmake (pmake-1.0-5.i386.rpm):

Pmake is a particular version of make which supports some
additional syntax not in the standard make program.  Some
berkeley programs have Makefiles written for pmake.

-- 
Perry Rovers (Perry.Rovers@IAE.nl)

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 14 19:12:15 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA20026;
	Fri, 14 Nov 1997 19:06:52 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id TAA17324
	for <wu-ftpd@wugate.wustl.edu>; Fri, 14 Nov 1997 19:03:14 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id TAA01880; Fri, 14 Nov 1997 19:03:10 -0600 (CST)
Message-Id: <19971114190310.43804@texas.net>
Date: Fri, 14 Nov 1997 19:03:10 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Perry.Rovers@IAE.nl
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <64hkme$j1h$2@Garfield.IAEhv.nl>; from Perry.Rovers@IAE.nl on Fri, Nov 14, 1997 at 01:45:50PM +0000
References: <Pine.LNX.3.95.971112123508.2656A-100000@gaia.vr.net> <64hkme$j1h$2@Garfield.IAEhv.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, Nov 14, 1997 at 01:45:50PM +0000, Perry.Rovers@IAE.nl said:

> > Yes, the "cd ~" with the response you have noted is considered normal.
> > What you have suggested is a feature enhancement and will be considered
> > when we get to doing enhancements in release 2.5.

Let me just say that the cd ~ behavior that is noted is __NOT__ normal...
Where in the heck is cd ~ failing considered normal????  I'M CONFUSED!

> Can this thread end now? Please.

Guess not...

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Sat Nov 15 04:34:12 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA21464;
	Sat, 15 Nov 1997 04:28:59 -0600 (CST)
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA26635
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 04:21:22 -0600 (CST)
Received: from LOCAL (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 16345
          on Sat, 15 Nov 1997 10:21:21 GMT; id KAA16345
          efrom: news@Garfield.IAEhv.nl; eto: wu-ftpd@wugate.wustl.edu
Received: (from news@localhost)
	by Garfield.IAEhv.nl (8.8.5/8.8.5) id KAA19410;
	Sat, 15 Nov 1997 10:49:45 +0100
Message-Id: <64jr7p$imp$1@Garfield.IAEhv.nl>
Date: 15 Nov 1997 09:49:45 GMT
Reply-To: Perry.Rovers@IAE.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Perry.Rovers@IAE.nl
To: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
References: <19971114190310.43804@texas.net>
X-no-archive: yes
X-bofh-archive: yes
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970324; i586 Linux 2.0.28]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pink elephants with an attitude inspired Michael Douglass <mikedoug@texas.net> to tell garfield.mail.wu-ftpd:
: On Fri, Nov 14, 1997 at 01:45:50PM +0000, Perry.Rovers@IAE.nl said:

: > > Yes, the "cd ~" with the response you have noted is considered normal.
: > > What you have suggested is a feature enhancement and will be considered
: > > when we get to doing enhancements in release 2.5.

: Let me just say that the cd ~ behavior that is noted is __NOT__ normal...
: Where in the heck is cd ~ failing considered normal????  I'M CONFUSED!

I didn't say it was normal (else I wouldn't have mentioned it to Stan), but
what I am saying is: the problem is known and is being considered for 2.5
(and I sure as hell hope it's going to be in there because I consider it a
security problem. No one needs to know that he's actually in some other
directory than he thinks he is. It confuses the users too :)

-- 
Perry Rovers (Perry.Rovers@IAE.nl)

From owner-wu-ftpd@wugate.wustl.edu  Sat Nov 15 04:45:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id EAA02356;
	Sat, 15 Nov 1997 04:40:13 -0600 (CST)
Received: from mail.twistercom.com (mail.twistercom.com [208.21.180.6])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id EAA01962
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 04:39:02 -0600 (CST)
Received: from helios ([207.235.38.66]) by mail.twistercom.com
          (Netscape Messaging Server 3.01)  with SMTP id AAA4274
          for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 04:39:00 -0600
Message-Id: <01bcf1b2$e7779da0$4226ebcf@helios.twistercom.com>
Date: Sat, 15 Nov 1997 04:40:34 -0600
Reply-To: marius@twistercom.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Marius Strom" <marius@twistercom.com>
To: <wu-ftpd@wugate.wustl.edu>
Subject: Static 'ls' in Solaris 2.5.1
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Ladies and Gents...

Does anyone out there know of either a URL or can someone point me in the
right direction for building a statically linked 'ls' for Solaris?  I got
fileutils-3.16 and compiled the ls from that.  When I ftp in, ls is
succesful, but ls -l displays nothing.  Thanks for your help...

Marius Strom - marius@twistercom.com
Network Administrator, Twister Communications
http://www.twistercom.com


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov 15 13:01:21 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA14564;
	Sat, 15 Nov 1997 12:55:29 -0600 (CST)
Received: from dawn.EUnet.pt (canau@dawn.EUnet.pt [193.126.1.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA14177
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 12:53:38 -0600 (CST)
Received: from localhost (canau@localhost)
	by dawn.EUnet.pt (8.8.5/8.8.5) with SMTP id SAA15585;
	Sat, 15 Nov 1997 18:53:23 GMT
Message-Id: <Pine.LNX.3.95.971115184839.15481A-100000@dawn.EUnet.pt>
Date: Sat, 15 Nov 1997 18:53:23 +0000 (WET)
Reply-To: canau@dawn.EUnet.pt
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Carlos Canau <canau@dawn.EUnet.pt>
To: Marius Strom <marius@twistercom.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Static 'ls' in Solaris 2.5.1
In-Reply-To: <01bcf1b2$e7779da0$4226ebcf@helios.twistercom.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



	Here, for fileutils-3.16 in Solaris 2.5.1:

$ cat INSTALLED/fileutils-3.16.README

configure
make
cd src
gcc -c dlsym.c
gcc -static -o ls  ls.o ls-ls.o dlsym.o ../intl/libintl.a ../lib/libfu.a -lgen
strip ls
cp ls ~ftp/bin
chmod 0111 ~ftp/bin/ls

$ cat dlsym.c

/* $XConsortium: dlsym.c,v 1.1 93/12/06 16:24:15 kaleb Exp $ */
/*
 * Stub interface to dynamic linker routines
 * that SunOS uses but didn't ship with 4.1.
 *
 * The C library routine wcstombs in SunOS 4.1 tries to dynamically
 * load some routines using the dlsym interface, described in dlsym(3x).
 * Unfortunately SunOS 4.1 does not include the necessary library, libdl.
 *
 * The R5 Xlib uses wcstombs.  If you link dynamcally, your program can
 * run even with the unresolved reference to dlsym.  However, if you
 * link statically, you will encounter this bug.  One workaround
 * is to include these stub routines when you link.
 */

void *dlopen()
{
    return 0;
}

void *dlsym()
{
    return 0;
}

int dlclose()
{
    return -1;
}

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

	Hope this helps :)
	</canau


On Sat, 15 Nov 1997, Marius Strom wrote:

> Ladies and Gents...
> 
> Does anyone out there know of either a URL or can someone point me in the
> right direction for building a statically linked 'ls' for Solaris?  I got
> fileutils-3.16 and compiled the ls from that.  When I ftp in, ls is
> succesful, but ls -l displays nothing.  Thanks for your help...
> 
> Marius Strom - marius@twistercom.com
> Network Administrator, Twister Communications
> http://www.twistercom.com
> 


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov 15 13:25:25 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA17066;
	Sat, 15 Nov 1997 13:19:51 -0600 (CST)
Received: from legolas.mdh.se (root@legolas.mdh.se [130.238.251.203])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA14026
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 13:16:10 -0600 (CST)
Received: from legolas.mdh.se (cel95eig@legolas.mdh.se [130.238.251.203])
	by legolas.mdh.se (8.8.7/8.8.7) with SMTP id UAA20441
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 20:16:04 +0100 (MET)
Message-Id: <Pine.GSO.3.95.971115195819.27504R-100000@legolas.mdh.se>
Date: Sat, 15 Nov 1997 20:16:03 +0100 (MET)
Reply-To: Emil Isberg <emil.isberg@mds.mdh.se>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Emil Isberg <cel95eig@mds.mdh.se>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: Static 'ls' in Solaris 2.5.1
In-Reply-To: <Pine.LNX.3.95.971115184839.15481A-100000@dawn.EUnet.pt>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: cel95eig@mds.mdh.se
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Sat, 15 Nov 1997, Carlos Canau wrote:
> 	Here, for fileutils-3.16 in Solaris 2.5.1:

>/* $XConsortium: dlsym.c,v 1.1 93/12/06 16:24:15 kaleb Exp $ */
>/*
> * Stub interface to dynamic linker routines
> * that SunOS uses but didn't ship with 4.1.
> *
> * The C library routine wcstombs in SunOS 4.1 tries to dynamically
> * load some routines using the dlsym interface, described in dlsym(3x).
> * Unfortunately SunOS 4.1 does not include the necessary library, libdl.
> *
> * The R5 Xlib uses wcstombs.  If you link dynamcally, your program can
> * run even with the unresolved reference to dlsym.  However, if you
> * link statically, you will encounter this bug.  One workaround
> * is to include these stub routines when you link.
> */

Hmm .. intressting .. I never knew that R5Xlib used that one .. hmm ..
well .. you're never to old to learn.

But that ls wont show usernames .. only uids .. those functions
(getpwuid() etc) are shared link (Solaris doesn't come with an ar-lib for
those :-( ) ..

So what you must do is to create functions to replace those that open
/etc/passwd and /etc/group and converts from uid to username ..

I was going to append it to this mail (so that it get's in the archive
and such) but since it's roughly 4k I thought it is to large ..
You can get it via
URL:http://www.mds.mdh.se/~cel95eig/static_add_to_ls.txt

Perhaps it is good if it is mirrored on the resource web. :-)
I might have a cleanup forced on me. :-/

It's slighly more complicated, but should be as simple to use.
You do exactly the same as for the dlsym.c 
though some have experienced that you need -lmalloc when you link it all
together. :-( .. But I have not the time to trace down why .. :-(


-- 
/Emil
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 07:50:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA06841;
	Mon, 17 Nov 1997 07:43:50 -0600 (CST)
Received: from bbs.dcoisp.net (bbs.dcoisp.net [208.128.192.226])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA29652
	for <wu-ftpd@mail.wustl.edu>; Sat, 15 Nov 1997 14:43:52 -0600 (CST)
Received: from MHS by bbs.dcoisp.net with MHS
    id ANCNBHEE ; Sat, 15 Nov 1997 13:45:34 -0500
Message-Id: <TCPSMTP.17.11.15.13.45.24.3047923923.5367@bbs.dcoisp.net>
Date: Sat, 15 Nov 1997 13:45:24 -0500 
Reply-To: ringlord@bbs.dcoisp.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: ringlord@bbs.dcoisp.net
To: wu-ftpd@wugate.wustl.edu
Subject: wu-ftpd not disconnecting inactive transfers on fr
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello everyone.
I am having a bit of a problem with my wu-ftpd 2.4.2-beta-15 server.  I
am running on a freebsd 2.2.5-release box.  Every time a user ftps into
their home directory, if for some reason they get disconnected on their
end, IE, they receive an error message saying the upload could not be
completed, they continue the upload by logging back into the server and
doing it again.  Now, here is the problem.  Instead of logging out the
inactive transfer after 15 minutes as the man page suggests, that
session stays on-line.  I woke up this morning to find 20 such processes
still running on my system from 12 hours ago!  In fact at one point, the
client ended up reaching the current limit I had set for all classes in
the ftpaccess file.
Here is the worst part.  When I ftp large files from my pc to the
server for testing purposes, the transfer is completed without a hitch.
What I am saying is, I have been unable to reproduce his problem.  I
have even tried disabling tcp extentions on the freebsd machine, in case
his box just didn't like something with tcp extentions.  I have never
seen this problem before, and it could be I am missing something
entirely.  If so, could someone kindly point me in the right direction?
I am reading all kinds of man pages and faqs, but I feel like I am just
turning circles right now.  I suppose the next thing I can do if nobody
has seen this problem before, is turn on debugging, and hope for some
kind of clue there.
Thanks for any assistance.
Jeremy



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:07:50 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA09316;
	Mon, 17 Nov 1997 08:01:59 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA03204
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 14:58:29 -0600 (CST)
Message-Id: <199711152059.OAA02835@landfield.com>
Date: Sat, 15 Nov 1997 14:59:11 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: emil.isberg@mds.mdh.se
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Static 'ls' in Solaris 2.5.1
In-Reply-To: <Pine.GSO.3.95.971115195819.27504R-100000@legolas.mdh.se> from "Emil Isberg" at Nov 15, 97 08:16:03 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# I was going to append it to this mail (so that it get's in the archive
# and such) but since it's roughly 4k I thought it is to large ..
# You can get it via
# URL:http://www.mds.mdh.se/~cel95eig/static_add_to_ls.txt

It is on the Resource Center at  

  http://www.landfield.com/wu-ftpd/support/static-ls.how-to

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:12:36 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA10140;
	Mon, 17 Nov 1997 08:07:13 -0600 (CST)
Received: from cs.utah.edu (cs.utah.edu [128.110.4.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id UAA02291
	for <wu-ftpd@wugate.wustl.edu>; Sat, 15 Nov 1997 20:20:08 -0600 (CST)
Received: from cadesm0.eng.utah.edu by cs.utah.edu (8.8.4/utah-2.21-cs)
	id TAA15101; Sat, 15 Nov 1997 19:20:04 -0700 (MST)
Received: from scylla.eng.utah.edu by cadesm0.eng.utah.edu (8.6.12/utah-2.15sun-leaf)
	id TAA13497; Sat, 15 Nov 1997 19:20:02 -0700
Received: by scylla.eng.utah.edu (8.6.12/utah-2.15sun-leaf)
	id TAA04670; Sat, 15 Nov 1997 19:20:02 -0700
Message-Id: <9711151920.ZM4668@scylla.eng.utah.edu>
Date: Sat, 15 Nov 1997 19:20:02 -0700
Reply-To: ruefenac@scylla.eng.utah.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Craig R. Ruefenacht" <ruefenac@scylla.eng.utah.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: Q about Solaris 5.5.1 wu-ftpd
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Z-Mail (3.2.0 06sep94)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi all,

This may be related to the recent discussion about the ls program
on Solaris....

I recently installed wu-ftpd on a solaris 5.5.1 machine and was able
to get the anonymous stuff set up correctly, except that when an
anonymous user logs in and does a directory listing, it shows UID
and GID numbers instead of what is in ~ftp/etc/[passwd|group].

Could someone give me a decisive answer as to what the problem
might be?  Both files in ~ftp/etc are world readable and have
the bare minimum, with no info at the machine's real /etc/
files.

-- 
-----------------------------------------------------------------
Craig Ruefenacht                   Department of Computer Science
Email: ruefenac@cs.utah.edu	  	     ENG/CS Facility Oper            
WWW:http://www.cs.utah.edu/~ruefenac           University of Utah
-----------------------------------------------------------------

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:18:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA10959;
	Mon, 17 Nov 1997 08:13:00 -0600 (CST)
Received: from ns1.cbu.skyinet.net (root@[208.142.164.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA30831
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 10:24:03 -0600 (CST)
Received: from skyinet.net (pc03.cbu.skyinet.net [208.142.164.103])
	by ns1.cbu.skyinet.net (8.8.5/8.8.5) with ESMTP id AAA18380;
	Mon, 17 Nov 1997 00:30:08 +0800
Message-Id: <346F1F44.8C4AB7C6@skyinet.net>
Date: Mon, 17 Nov 1997 00:28:52 +0800
Reply-To: vernie@skyinet.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Vernie T. Gloria" <vernie@skyinet.net>
To: Kent Landfield <kent@landfield.com>
Cc: WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: ls -l and dir command displays nothing
References: <199711131509.JAA27249@landfield.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (Win95; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Kent Landfield wrote:
> 
> # The problem is when we issue a command ls -l or dir, theres no list of
> # files or directories except for ls without any parameter.
> 
> # Vernie T. Gloria
> 
> I'd check out the info on the WU-FTPD Resource Center concerning setting
> up an external ls command.  The ls with no parameters is a builtin to wu-ftpd.
> the other ls you are having troubles with is an external ls command that
> needs to be in the ftp bin directory.  Your ftpaccess file does not control
> this.  I suspect that either the ls command itself is missing or one of the
> libraries need is missing.  The FAQ has a pretty good description on how to
> correct this.
> 
> --
> Kent Landfield                        Phone: 1-817-545-2502
> Email: kent@landfield.com             http://www.landfield.com/
> Email: kent@nfr.net                   http://www.nfr.net/
> Please send comp.sources.misc related mail to kent@landfield.com
> Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/


I would like to thank you for answering my email...I got it work now.
I just copied ~ftp/bin, ~ftp/lib and ~ftp/etc directories to the users
chrooted directory.  You were right, its the libraries.


passswd entries now look like:

test:x:506:100:Linux User:/home/./test:/bin/tcsh

the chrooted directory is /home and the user directory is /home/test
with all respect to the system and /test with respect to the user (in
this case the user is test).

-- 
Vernie T. Gloria

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:23:47 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA11797;
	Mon, 17 Nov 1997 08:18:24 -0600 (CST)
Received: from nuernberg.netsurf.de (root@nuernberg.netsurf.de [194.163.174.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA00393
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 10:37:58 -0600 (CST)
Received: from laptopds (maxi15.nuernberg.netsurf.de [194.233.128.239]) by nuernberg.netsurf.de (8.7.5/8.6.12) with SMTP id RAA19401 for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 17:37:54 +0100
Message-Id: <01bcf2af$7adc7c80$LocalHost@laptopds>
Date: Sun, 16 Nov 1997 17:48:35 +0100
Reply-To: thk@nuernberg.netsurf.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Thomas H. Kindt" <thk@nuernberg.netsurf.de>
To: <wu-ftpd@wugate.wustl.edu>
Subject: help
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0035_01BCF2B7.DCA0E480"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

This is a multi-part message in MIME format.

------=_NextPart_000_0035_01BCF2B7.DCA0E480
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

HELP

------=_NextPart_000_0035_01BCF2B7.DCA0E480
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>HELP</FONT></DIV></BODY></HTML>

------=_NextPart_000_0035_01BCF2B7.DCA0E480--


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:29:24 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA12447;
	Mon, 17 Nov 1997 08:23:35 -0600 (CST)
Received: from topelo.lopi.com (root@topelo.lopi.com [199.92.203.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id KAA04600
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 10:50:02 -0600 (CST)
Received: from topelo.lopi.com (localhost [127.0.0.1]) by topelo.lopi.com (whn-1.0) with ESMTP id LAA15034; Sun, 16 Nov 1997 11:49:59 -0500
Message-Id: <199711161649.LAA15034@topelo.lopi.com>
Date: Sun, 16 Nov 1997 11:49:59 -0500
Reply-To: whn@topelo.lopi.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bill Nugent <whn@topelo.lopi.com>
To: Kent Landfield <kent@landfield.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Guestuser bug fix && newvirt-040 now available.
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: exmh version 2.0zeta 7/24/97
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Kent,

Thank you!!  Very nice!

The C compiler warning message from ftpd.c on line 1644 can be eliminated 
by changing:

        if (virtual_mode && !guest && (*virtual_root != NULL)) {

to:

        if (virtual_mode && !guest && *virtual_root != '\0') {

	Bill





From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:34:09 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA13118;
	Mon, 17 Nov 1997 08:28:38 -0600 (CST)
Received: from topelo.lopi.com (root@topelo.lopi.com [199.92.203.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id NAA32163
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 13:08:57 -0600 (CST)
Received: from topelo.lopi.com (localhost [127.0.0.1]) by topelo.lopi.com (whn-1.0) with ESMTP id OAA15709; Sun, 16 Nov 1997 14:08:52 -0500
Message-Id: <199711161908.OAA15709@topelo.lopi.com>
Date: Sun, 16 Nov 1997 14:08:52 -0500
Reply-To: whn@topelo.lopi.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Bill Nugent <whn@topelo.lopi.com>
To: wu-ftpd-bugs@academ.com, wu-ftpd@wugate.wustl.edu
Subject: enhancement to ftpusers file in newvirt-040 & 2.4.2-beta-15
Mime-Version: 1.0
Content-Type: multipart/mixed ;
	boundary="==_Exmh_-17006064260"
X-Mailer: exmh version 2.0zeta 7/24/97
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

This is a multipart MIME message.

--==_Exmh_-17006064260
Content-Type: text/plain; charset=us-ascii

Howdy,

In my setup I need to restrict who can use a given virtual ftp site.  
With a large number users specifying who can use a given virtual ftp site 
with the site specific ftpusers file quickly becomes a maintenance 
headache.  Below is a replacement for checkuser() in ftpd.c which creates 
a superset of the existing ftpusers format.

The enhancement kicks in when there are two words on the line:

  <action> <user>

If <action> is 'allow' then the user will be allowed access.  If action 
is any other word (e.g., 'deny', 'disallow', 'forget', etc.) then user is 
not allowed access.  The default action of allowing access can be changed 
by setting <user> to '*'.  If the default action in a file is changed to 
deny access then backward compatibility with the old format of ftpusers 
will not work as expected.

Example:

ftpaccess:
#
# Only allow access to user1, user2 and user3
#
deny *
allow user1
allow user2
allow user3

The replacement function is attached.  I did not do this as a diff 
because I have many other patches applied to the source (redhat 4.2) and 
I felt this was more readable.

This code can be used with the standard wu-ftpd-2.4.2-beta-15 release by 
changing _path_ftpusers to _PATH_FTPUSERS.

This code comes with no warranty, claims or whatever so use at your own 
risk.  It works for me but your mileage may vary.

Enjoy.

	Bill


--==_Exmh_-17006064260
Content-Type: text/plain ; name="checkuser.replacement"; charset=us-ascii
Content-Description: checkuser.replacement
Content-Disposition: attachment; filename="checkuser.replacement"

/* Check if a user is in the file _path_ftpusers */

int
#ifdef __STDC__
checkuser(char *name)
#else
checkuser(name)
char *name;
#endif
{
    register FILE *fd;
    register char *p;
    char line[BUFSIZ];
    char action[BUFSIZ];
    char user[BUFSIZ];
    int  stat = 0;

    if ((fd = fopen(_path_ftpusers, "r")) == NULL) {
        return(stat);
    }

    while (fgets(line, sizeof(line), fd) != NULL) {
        if ((p = strchr(line, '\n')) == NULL)
            continue;
        *p = '\0';
        if (line[0] == '#')
            continue;
        if (sscanf(line, "%s%s", &action, &user) == 2) {
            if (strcmp(user, "*") == 0) {  /* Set default */
                stat = (strcmp(action, "allow") == 0) ? 0 : 1;
                continue;
            } else if (strcmp(user, name) == 0) {
                stat = (strcmp(action, "allow") == 0) ? 0 : 1;
                break;
            }
        }
        if (strcmp(line, name) == 0) {
            stat = 1;
            break;
        }
    }
    (void) fclose(fd);
    return (stat);
}

--==_Exmh_-17006064260--



From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:40:20 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA13682;
	Mon, 17 Nov 1997 08:33:23 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA16257
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 14:06:27 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id OAA27447; Sun, 16 Nov 1997 14:06:25 -0600 (CST)
Message-Id: <19971116140625.64789@texas.net>
Date: Sun, 16 Nov 1997 14:06:25 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: passive() and seteuid(0)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Okay, I was perusing the wu-ftpd source (beta 15) today.  I was specifically
looking at the passive() function; wanting to impose limits on the ports
that it binds the new socket to so that we can open a firewall with a
limited range of ports--then I stumbled upon the code doing the binding:

    pasv_addr = ctrl_addr;
    pasv_addr.sin_port = 0;
    delay_signaling(); /* we can't allow any signals while euid==0: kinch */
    (void) seteuid((uid_t) 0);          /* XXX: not needed if > 1024 */
    if (bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr)) < 0) {
        (void) seteuid((uid_t) pw->pw_uid);
        enable_signaling(); /* we can allow signals once again: kinch */
        goto pasv_error;
    }
    (void) seteuid((uid_t) pw->pw_uid);
    enable_signaling(); /* we can allow signals once again: kinch */
 
I can't figure out why we are gaining root permissions before calling this
bind() command...  We are not binding to a priveledged port in this code
segment, why do we need root perms?

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:44:04 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA14675;
	Mon, 17 Nov 1997 08:38:54 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id OAA01014
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 14:49:00 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id OAA27813; Sun, 16 Nov 1997 14:48:59 -0600 (CST)
Message-Id: <19971116144859.00829@texas.net>
Date: Sun, 16 Nov 1997 14:48:59 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: Feature Request (passive mode port range)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

For those with an eye to security, I would like to request a feature.  The
feature is the ability to give a range of ports to use when setting up
PASV connections.  The reason is so that we can specify a very specific
range of ports and allow only those ports through our firewall.  Here
is quick hack that I did to beta 15 to give me this functionality.
(Note that I also am not using the seteuid() code in my section, as per
my previous email.)


Note: Instead of deleting the old bind() lines, I simply preprocessored
them out.

diff -c -r1.1 ftpd.c
*** /tmp/T0koRkq_       Sun Nov 16 14:47:28 1997
--- ftpd.c      Sun Nov 16 14:37:20 1997
***************
*** 3293,3298 ****
--- 3293,3300 ----
  #endif
      register char *p,
       *a;
+     long pport = 32000;
+     int  port_range = 1000;

  /* H* fix: if we already *have* a passive socket, close it first.  Prevents
     a whole variety of entertaining clogging attacks. */
***************
*** 3308,3313 ****
--- 3310,3316 ----
          return;
      }
      pasv_addr = ctrl_addr;
+ #if 0
      pasv_addr.sin_port = 0;
      delay_signaling(); /* we can't allow any signals while euid==0: kinch */
      (void) seteuid((uid_t) 0);                /* XXX: not needed if > 1024 */
***************
*** 3318,3323 ****
--- 3321,3338 ----
      }
      (void) seteuid((uid_t) pw->pw_uid);
      enable_signaling(); /* we can allow signals once again: kinch */
+ #else
+     for( ;port_range; port_range-- ) {
+         pasv_addr.sin_port = htons(pport + port_range);
+         if (bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr)) < 0){
+             if( errno != EADDRINUSE ) {
+                 goto pasv_error;
+             }
+         } else {
+             break;
+         }
+     }
+ #endif
      len = sizeof(pasv_addr);
      if (getsockname(pdata, (struct sockaddr *) &pasv_addr, &len) < 0)
          goto pasv_error;

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:49:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA15318;
	Mon, 17 Nov 1997 08:43:47 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA21706
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 22:36:11 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id WAA02697; Sun, 16 Nov 1997 22:36:10 -0600 (CST)
Message-Id: <19971116223610.14554@texas.net>
Date: Sun, 16 Nov 1997 22:36:10 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: busy day--cd ~ solution for guest accounts
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


WARNING: IGNORANT, UNKNOWNING IDIOTS RESPONDING TO THIS WILL NOT GET MY
         EAR THIS TIME....  (Nor will I rush out to buy some stupid book.)

Regardless of what solution you take, this is the one that I declare the
best, most straight-forward solution for 'cd ~'.  It should be 100% correct
to assume that the home directory listed in the real /etc/passwd is the
actual home directory.  Of course, with the /./, and the guestgroup set
in the ftpaccess file, we chroot to the LHS of the /./.  Immediately
upon the chroot, wu-ftpd does a chdir() to the RHS of the /./.  It is
at this point that I thought of the best solution to the 'cd ~' problem...
'cd ~' does a chdir(pw->pw_dir) where the 'pw' here is a global structure
that remains throughout the user's logged-in-time.  Therefore, at
the point of the chroot() and chdir() call we can store the RHS of the
/./ as pw->pw_dir since once we chroot, we remained chroot()ed right?

Here is a patch:

diff -c -r1.2 ftpd.c
*** /tmp/T0arY3T_       Sun Nov 16 22:31:52 1997
--- ftpd.c      Sun Nov 16 22:29:42 1997
***************
*** 1571,1577 ****
      expand_id();

      if (anonymous || guest) {
!         char *sp;
          /* We MUST do a chdir() after the chroot. Otherwise the old current
           * directory will be accessible as "." outside the new root! */
  #ifdef VIRTUAL
--- 1571,1577 ----
      expand_id();

      if (anonymous || guest) {
!         char *sp,*t;
          /* We MUST do a chdir() after the chroot. Otherwise the old current
           * directory will be accessible as "." outside the new root! */
  #ifdef VIRTUAL
***************
*** 1594,1599 ****
--- 1594,1603 ----
            reply(550, "Can't set guest privileges.");
            goto bad;
          }
+           t = strdup( sp );
+           if (pw->pw_dir)
+               free(pw->pw_dir);
+           pw->pw_dir = t;
          }
      }
  #ifdef AIX

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:54:24 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA13348;
	Mon, 17 Nov 1997 08:48:39 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA06408
	for <wu-ftpd@wugate.wustl.edu>; Sun, 16 Nov 1997 22:45:00 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id WAA02762; Sun, 16 Nov 1997 22:44:59 -0600 (CST)
Message-Id: <19971116224459.21850@texas.net>
Date: Sun, 16 Nov 1997 22:44:59 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: wu-ftpd@wugate.wustl.edu
Subject: stale processes
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

It appears that I get a couple 'stale' processes every day.  Here is a
stack-trace on one of the processes:

22449:  wu.ftpd -a -u 027
 ef6385e8 read     (8, efffe880, 400)
 ef6385e8 _libc_read (8, efffe880, 400, 49350, ef6a227c, 18a28) + 8
 00018a28 receive_data (45058, 45048, 2bf48, 2bc00, effff528, ff00) + b8
 00017a64 store    (49350, 2eca8, 0, 2d400, 14, 7e) + 58c
 0001e800 yyparse  (0, 148a0, 43bdc, 40c20, 40c00, 0) + 10fc
 000148a0 main     (4, effffc04, effffc18, 44214, 0, 0) + ca4
 00013b5c _start   (0, 0, 0, 0, 0, 0) + 5c

Is there a reason that there are no timeouts set in receive_data?  I'd
program them in myself, but I figured I'd find out if there is a reason
why there are no timeouts to date.  If, at the very least, setting
SO_KEEPALIVE on the socket might help keep this from happening...

Your thoughts?

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 08:59:51 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA16861;
	Mon, 17 Nov 1997 08:53:59 -0600 (CST)
Received: from maltms1.data.telia.se (maltms1.data.telia.se [131.116.41.116])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id FAA18138
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 05:40:31 -0600 (CST)
Received: from  by maltms1.data.telia.se with SMTP
	(1.37.109.14/16.2) id AA109296436; Mon, 17 Nov 1997 12:33:56 +0100
Message-Id: <H00003ca02a055da@MHS>
Date: Mon, 17 Nov 97 12:33:25 +0100
Reply-To: Per.E.Berger@telia.se
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Per.E.Berger@telia.se
To: wu-ftpd@wugate.wustl.edu
Subject: Anonymous logins and a security question...
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; name="Meddelandetext"
Content-Transfer-Encoding: 7bit
X-Openmail-Hops: 2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi!

Three questions:

1/ I want to disable anonymous login; how do I do? Would it be enough to
remove "anonymous" in ftpaccess so that it does not belong to a class?
Or what is needed?

2/ As default the server at connect time displays the name of the host
and the name of the server (wu-ftpd) and the version of the server. Can
I change that? How? I do only want it to display as little as possible
because I do not want to give away any info regarding what I am running
(for security reasons)...

3/ Are there any special considerations regarding security that should
be dealt with or is the server as safe as it can be if I set it up
"correctly" and use the latest version with the latest patches?

I am running wu-ftpd 2.4.2Beta15 on Redhat Linux...

Thanks!

/Per


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:10:31 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA17963;
	Mon, 17 Nov 1997 09:01:40 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA10636
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 08:10:42 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id JAA11812;
	Mon, 17 Nov 1997 09:10:34 -0500
Message-Id: <Pine.LNX.3.95.971117090903.11725A-100000@gaia.vr.net>
Date: Mon, 17 Nov 1997 09:10:34 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <19971114190310.43804@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, 14 Nov 1997, Michael Douglass wrote:

> > > Yes, the "cd ~" with the response you have noted is considered normal.
> > > What you have suggested is a feature enhancement and will be considered
> > > when we get to doing enhancements in release 2.5.
> 
> Let me just say that the cd ~ behavior that is noted is __NOT__ normal...
> Where in the heck is cd ~ failing considered normal????  I'M CONFUSED!
> 
> > Can this thread end now? Please.
> 
> Guess not...

This patch to BETA 15 should fix things for 'cd ~' ...

--- ftpd.c.orig	Fri Sep 12 11:42:46 1997
+++ ftpd.c	Mon Nov 17 08:59:30 1997
@@ -1593,6 +1593,10 @@
 	  if (chroot(pw->pw_dir) < 0 || chdir(++sp) < 0) {
 	    reply(550, "Can't set guest privileges.");
 	    goto bad;
+          } else {
+            char *pp;
+            pp = pw->pw_dir;
+            do *pp++ = *sp; while (*sp++ != '\0');
 	  }
         }
     }

----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:19:14 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA18583;
	Mon, 17 Nov 1997 09:06:41 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA12857
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 08:47:11 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21]) by proxy.privat.wmo.de (8.8.6/8.6.9) with SMTP id OAA25597 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 14:57:06 +0100
Message-Id: <Pine.LNX.3.91.971117144229.25223B-200000@proxy.privat.wmo.de>
Date: Mon, 17 Nov 1997 14:57:04 +0100 (MET)
Reply-To: malla@wmo.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Malla, Suman" <malla@wmo.de>
To: wu-ftpd@wugate.wustl.edu
Subject: PLS HELP...
In-Reply-To: <199711161649.LAA15034@topelo.lopi.com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-1849486014-1739473810-879775024=:25223"
X-Sender: malla@proxy.privat.wmo.de
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1849486014-1739473810-879775024=:25223
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hi all,

Has someone installed the WU-ftpd on Red Hat Linux 4.2? I am trying to
install it since last week but in vain...getting a lot of errors. I am
sending the outout (from ./build lnx) as an attachment. If you are
interested, have a look. I would be more than happy to get a solution. 

Thank you for your time.

Rgds,
Suman Malla 

Notice: The only person getting his work done by friday was Robinson Crusoe.


---1849486014-1739473810-879775024=:25223
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=err
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.91.971117145704.25223C@proxy.privat.wmo.de>
Content-Description: Error mesg

LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KW3Jv
b3RAZm9vIHd1LWZ0cGQtMi40XSMgLi9idWlsZCBsbngNCm1ha2UgYXJncyBh
cmUgOiANCm1ha2Ugb3B0cyBhcmUgOiANCg0KTGlua2luZyBNYWtlZmlsZXMu
DQoNCk1ha2luZyBzdXBwb3J0IGxpYnJhcnkuDQpNYWtlZmlsZToxMzogKioq
IG1pc3Npbmcgc2VwYXJhdG9yLiAgU3RvcC4NCg0KTWFraW5nIGZ0cGQuDQpn
Y2MgLU8gLURERUJVRyAtRERJUkVOVF9JTExFR0FMX0FDQ0VTUyAtSS4uIC1J
Li4vc3VwcG9ydCAtSS91c3IvaW5jbHVkZS9ic2QgLUwuLi9zdXBwb3J0ICAg
LWMgZnRwZC5jIC1vIGZ0cGQubw0KSW4gZmlsZSBpbmNsdWRlZCBmcm9tIGZ0
cGQuYzo0MjoNCmNvbmZpZy5oOjI1OiBzeW50YXggZXJyb3IgYmVmb3JlIGB0
eXBlZGVmJw0KSW4gZmlsZSBpbmNsdWRlZCBmcm9tIGZ0cGQuYzo0NjoNCi91
c3IvaW5jbHVkZS9zeXMvc3RhdC5oOjE5OiBzeW50YXggZXJyb3IgYmVmb3Jl
IGBzdHJ1Y3QnDQpmdHBkLmM6MjI3OiBwYXJzZSBlcnJvciBiZWZvcmUgYGxv
c3Rjb25uJw0KZnRwZC5jOjIyNzogd2FybmluZzogZGF0YSBkZWZpbml0aW9u
IGhhcyBubyB0eXBlIG9yIHN0b3JhZ2UgY2xhc3MNCmZ0cGQuYzoyMjg6IHBh
cnNlIGVycm9yIGJlZm9yZSBgcmFuZG9tc2lnJw0KZnRwZC5jOjIyODogd2Fy
bmluZzogZGF0YSBkZWZpbml0aW9uIGhhcyBubyB0eXBlIG9yIHN0b3JhZ2Ug
Y2xhc3MNCmZ0cGQuYzoyMjk6IHBhcnNlIGVycm9yIGJlZm9yZSBgbXlvb2In
DQpmdHBkLmM6MjI5OiB3YXJuaW5nOiBkYXRhIGRlZmluaXRpb24gaGFzIG5v
IHR5cGUgb3Igc3RvcmFnZSBjbGFzcw0KZnRwZC5jOiBJbiBmdW5jdGlvbiBg
bWFpbic6DQpmdHBkLmM6MzAxOiB0b28gZmV3IGFyZ3VtZW50cyB0byBmdW5j
dGlvbiBgb3BlbmxvZycNCmZ0cGQuYzozODY6IHdhcm5pbmc6IHBhc3Npbmcg
YXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9p
bnRlciB0eXBlDQpmdHBkLmM6Mzg5OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAy
IG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIg
dHlwZQ0KZnRwZC5jOjM5Mjogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBg
X19ic2Rfc2lnbmFsJyBmcm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUN
CmZ0cGQuYzozOTU6IHdhcm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNk
X3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBk
LmM6Mzk4OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWdu
YWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOjQw
MTogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBgX19ic2Rfc2lnbmFsJyBm
cm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUNCmZ0cGQuYzo0MDc6IHdh
cm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBp
bmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBkLmM6NDEwOiB3YXJuaW5n
OiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21w
YXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOjQxMzogd2FybmluZzogcGFz
c2luZyBhcmcgMiBvZiBgX19ic2Rfc2lnbmFsJyBmcm9tIGluY29tcGF0aWJs
ZSBwb2ludGVyIHR5cGUNCmZ0cGQuYzo0MTY6IHdhcm5pbmc6IHBhc3Npbmcg
YXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9p
bnRlciB0eXBlDQpmdHBkLmM6NDE5OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAy
IG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIg
dHlwZQ0KZnRwZC5jOjQyMjogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBg
X19ic2Rfc2lnbmFsJyBmcm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUN
CmZ0cGQuYzo0MjU6IHdhcm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNk
X3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBk
LmM6NDI4OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWdu
YWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOjQz
MTogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBgX19ic2Rfc2lnbmFsJyBm
cm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUNCmZ0cGQuYzo0MzQ6IHdh
cm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBp
bmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBkLmM6NDM3OiB3YXJuaW5n
OiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21w
YXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOjQ0MDogd2FybmluZzogcGFz
c2luZyBhcmcgMiBvZiBgX19ic2Rfc2lnbmFsJyBmcm9tIGluY29tcGF0aWJs
ZSBwb2ludGVyIHR5cGUNCmZ0cGQuYzo0NDM6IHdhcm5pbmc6IHBhc3Npbmcg
YXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9p
bnRlciB0eXBlDQpmdHBkLmM6NDQ2OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAy
IG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIg
dHlwZQ0KZnRwZC5jOjQ0OTogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBg
X19ic2Rfc2lnbmFsJyBmcm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUN
CmZ0cGQuYzo0NTI6IHdhcm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNk
X3NpZ25hbCcgZnJvbSBpbmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBk
LmM6NDU1OiB3YXJuaW5nOiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWdu
YWwnIGZyb20gaW5jb21wYXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOjQ1
ODogd2FybmluZzogcGFzc2luZyBhcmcgMiBvZiBgX19ic2Rfc2lnbmFsJyBm
cm9tIGluY29tcGF0aWJsZSBwb2ludGVyIHR5cGUNCmZ0cGQuYzo0NjI6IHdh
cm5pbmc6IHBhc3NpbmcgYXJnIDIgb2YgYF9fYnNkX3NpZ25hbCcgZnJvbSBp
bmNvbXBhdGlibGUgcG9pbnRlciB0eXBlDQpmdHBkLmM6NDY5OiB3YXJuaW5n
OiBwYXNzaW5nIGFyZyAyIG9mIGBfX2JzZF9zaWduYWwnIGZyb20gaW5jb21w
YXRpYmxlIHBvaW50ZXIgdHlwZQ0KZnRwZC5jOiBBdCB0b3AgbGV2ZWw6DQpm
dHBkLmM6NTYwOiBwYXJzZSBlcnJvciBiZWZvcmUgYHJhbmRvbXNpZycNCmZ0
cGQuYzo1NzE6IHBhcnNlIGVycm9yIGJlZm9yZSBgbG9zdGNvbm4nDQpmdHBk
LmM6IEluIGZ1bmN0aW9uIGBwYXNzJzoNCmZ0cGQuYzoxMDAyOiB3YXJuaW5n
OiBhc3NpZ25tZW50IG1ha2VzIGludGVnZXIgZnJvbSBwb2ludGVyIHdpdGhv
dXQgYSBjYXN0DQpmdHBkLmM6IEluIGZ1bmN0aW9uIGBvcHRfc3RyaW5nJzoN
CmZ0cGQuYzoxMjI2OiB3YXJuaW5nOiBjb21wYXJpc29uIGJldHdlZW4gcG9p
bnRlciBhbmQgaW50ZWdlcg0KZnRwZC5jOjEyMjg6IHdhcm5pbmc6IGNvbXBh
cmlzb24gYmV0d2VlbiBwb2ludGVyIGFuZCBpbnRlZ2VyDQpmdHBkLmM6MTIz
MDogd2FybmluZzogY29tcGFyaXNvbiBiZXR3ZWVuIHBvaW50ZXIgYW5kIGlu
dGVnZXINCmZ0cGQuYzogSW4gZnVuY3Rpb24gYHJldHJpZXZlJzoNCmZ0cGQu
YzoxMzQyOiB3YXJuaW5nOiBjb21wYXJpc29uIGJldHdlZW4gcG9pbnRlciBh
bmQgaW50ZWdlcg0KZnRwZC5jOiBBdCB0b3AgbGV2ZWw6DQpmdHBkLmM6MjQz
MDogcGFyc2UgZXJyb3IgYmVmb3JlIGBteW9vYicNCm1ha2U6ICoqKiBbZnRw
ZC5vXSBFcnJvciAxDQoNCk1ha2luZyBmdHBjb3VudC4NCmdjYyAtTyAtRERF
QlVHIC1ERElSRU5UX0lMTEVHQUxfQUNDRVNTIC1JLi4gLUkuLi9zdXBwb3J0
IC1JL3Vzci9pbmNsdWRlL2JzZCAtTC4uL3N1cHBvcnQgLW8gZnRwY291bnQg
ZnRwY291bnQuYyB2ZXJzLm8gLWxzdXBwb3J0IC1sYnNkDQpnY2M6IHZlcnMu
bzogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQ0KSW4gZmlsZSBpbmNsdWRl
ZCBmcm9tIGZ0cGNvdW50LmM6MzI6DQpjb25maWcuaDoyNTogc3ludGF4IGVy
cm9yIGJlZm9yZSBgdHlwZWRlZicNCkluIGZpbGUgaW5jbHVkZWQgZnJvbSAv
dXNyL2luY2x1ZGUvbGliaW8uaDozMCwNCiAgICAgICAgICAgICAgICAgZnJv
bSAvdXNyL2luY2x1ZGUvc3RkaW8uaDozNCwNCiAgICAgICAgICAgICAgICAg
ZnJvbSBmdHBjb3VudC5jOjM0Og0KL3Vzci9pbmNsdWRlL19HX2NvbmZpZy5o
OjIyOiBzeW50YXggZXJyb3IgYmVmb3JlIGB0eXBlZGVmJw0KZnRwY291bnQu
YzogSW4gZnVuY3Rpb24gYHBhcnNldGltZSc6DQpmdHBjb3VudC5jOjk4OiB3
YXJuaW5nOiBjb21wYXJpc29uIGJldHdlZW4gcG9pbnRlciBhbmQgaW50ZWdl
cg0KZnRwY291bnQuYzoxMDc6IHdhcm5pbmc6IGNvbXBhcmlzb24gYmV0d2Vl
biBwb2ludGVyIGFuZCBpbnRlZ2VyDQpmdHBjb3VudC5jOiBJbiBmdW5jdGlv
biBgYWNsX2dldGxpbWl0JzoNCmZ0cGNvdW50LmM6MTU5OiB3YXJuaW5nOiBj
b21wYXJpc29uIGJldHdlZW4gcG9pbnRlciBhbmQgaW50ZWdlcg0KZnRwY291
bnQuYzoxNjI6IHdhcm5pbmc6IGFzc2lnbm1lbnQgbWFrZXMgaW50ZWdlciBm
cm9tIHBvaW50ZXIgd2l0aG91dCBhIGNhc3QNCmZ0cGNvdW50LmM6IEluIGZ1
bmN0aW9uIGBtYWluJzoNCmZ0cGNvdW50LmM6MzA3OiB3YXJuaW5nOiBjb21w
YXJpc29uIGJldHdlZW4gcG9pbnRlciBhbmQgaW50ZWdlcg0KZnRwY291bnQu
YzozMTA6IHdhcm5pbmc6IGFzc2lnbm1lbnQgbWFrZXMgaW50ZWdlciBmcm9t
IHBvaW50ZXIgd2l0aG91dCBhIGNhc3QNCm1ha2U6ICoqKiBbZnRwY291bnRd
IEVycm9yIDENCg0KTWFraW5nIGZ0cHNodXQuDQpnY2MgLU8gLURERUJVRyAt
RERJUkVOVF9JTExFR0FMX0FDQ0VTUyAtSS4uIC1JLi4vc3VwcG9ydCAtSS91
c3IvaW5jbHVkZS9ic2QgLUwuLi9zdXBwb3J0IC1vIGZ0cHNodXQgZnRwc2h1
dC5jIHZlcnMubyAtbHN1cHBvcnQgLWxic2QNCmdjYzogdmVycy5vOiBObyBz
dWNoIGZpbGUgb3IgZGlyZWN0b3J5DQpJbiBmaWxlIGluY2x1ZGVkIGZyb20g
ZnRwc2h1dC5jOjM3Og0KY29uZmlnLmg6MjU6IHN5bnRheCBlcnJvciBiZWZv
cmUgYHR5cGVkZWYnDQpJbiBmaWxlIGluY2x1ZGVkIGZyb20gL3Vzci9pbmNs
dWRlL2JzZC9lcnJuby5oOjUsDQogICAgICAgICAgICAgICAgIGZyb20gZnRw
c2h1dC5jOjM5Og0KL3Vzci9pbmNsdWRlL2Vycm5vLmg6MzA6IHN5bnRheCBl
cnJvciBiZWZvcmUgYGV4dGVybicNCmZ0cHNodXQuYzogSW4gZnVuY3Rpb24g
YG1haW4nOg0KZnRwc2h1dC5jOjE4ODogd2FybmluZzogY29tcGFyaXNvbiBi
ZXR3ZWVuIHBvaW50ZXIgYW5kIGludGVnZXINCmZ0cHNodXQuYzoxOTE6IHdh
cm5pbmc6IGFzc2lnbm1lbnQgbWFrZXMgaW50ZWdlciBmcm9tIHBvaW50ZXIg
d2l0aG91dCBhIGNhc3QNCm1ha2U6ICoqKiBbZnRwc2h1dF0gRXJyb3IgMQ0K
DQpNYWtpbmcgY2tjb25maWcuDQpnY2MgLU8gLURERUJVRyAtRERJUkVOVF9J
TExFR0FMX0FDQ0VTUyAtSS4uIC1JLi4vc3VwcG9ydCAtSS91c3IvaW5jbHVk
ZS9ic2QgLUwuLi9zdXBwb3J0IC1vIGNrY29uZmlnIGNrY29uZmlnLmMNCg0K
TGlua3MgdG8gZXhlY3V0YWJsZXMgYXJlIGluIGJpbiBkaXJlY3Rvcnk6DQpz
aXplOiBiaW4vZnRwZDogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQ0Kc2l6
ZTogYmluL2Z0cGNvdW50OiBObyBzdWNoIGZpbGUgb3IgZGlyZWN0b3J5DQpz
aXplOiBiaW4vZnRwc2h1dDogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQ0K
c2l6ZTogYmluL2Z0cHdobzogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQ0K
dGV4dAlkYXRhCWJzcwlkZWMJaGV4CWZpbGVuYW1lDQo5OTIgICAgCTE4OTUg
ICAJODggICAgIAkyOTc1ICAgCWI5ZiAgICAJYmluL2NrY29uZmlnDQotLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tDQo=
---1849486014-1739473810-879775024=:25223--

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:26:36 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA19984;
	Mon, 17 Nov 1997 09:20:50 -0600 (CST)
Received: from gaia.vr.net (lundberg@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA19516
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:15:59 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id KAA12500;
	Mon, 17 Nov 1997 10:15:55 -0500
Message-Id: <Pine.LNX.3.95.971117100405.12420A-100000@gaia.vr.net>
Date: Mon, 17 Nov 1997 10:15:55 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Michael Douglass <mikedoug@texas.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: busy day--cd ~ solution for guest accounts
In-Reply-To: <19971116223610.14554@texas.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Looks like we both got up today and decided to fix this.  I noticed I'd
missed a case, which you also appear to have missed.  My patch is below,
and I'll add somethinsg similar to yours .. it looks to me like it's
choose-your-coding-style with these patches ...

--- ftpd.c.orig	Fri Sep 12 11:42:46 1997
+++ ftpd.c	Mon Nov 17 10:07:28 1997
@@ -1587,12 +1587,31 @@
             if (chroot(pw->pw_dir) < 0 || chdir("/") < 0) {
                 reply(530, "Can't set guest privileges.");
                 goto bad;
+            } else {
+               if ((pw->pw_dir [0] == '\0')
+               ||  ((pw->pw_dir [0] == '/') && (pw->pw_dir[1] == '\0'))) {
+                 /*
+                  * This may be unnecessary, but why set guest privileges
+                  * if we're chroot'd to the root?  Besides, I needed an
+                  * else for the test to be sure ps->pw_dir was long enough
+                  * to set it to "/".  GAL 17NOV97
+                  */
+                 reply(530, "Can't set guest privileges.");
+                 goto bad;
+               } else {
+                 pw->pw_dir [0] = '/';
+                 pw->pw_dir [1] = '\0';
+               }
             }
         } else{
 	  *sp++ = '\0';
 	  if (chroot(pw->pw_dir) < 0 || chdir(++sp) < 0) {
 	    reply(550, "Can't set guest privileges.");
 	    goto bad;
+          } else {
+            char *pp;
+            pp = pw->pw_dir;
+            do *pp++ = *sp; while (*sp++ != '\0');
 	  }
         }
     }

On Sun, 16 Nov 1997, Michael Douglass wrote:

> Date: Sun, 16 Nov 1997 22:36:10 -0600
> From: Michael Douglass <mikedoug@texas.net>
> To: wu-ftpd@wugate.wustl.edu
> Subject: busy day--cd ~ solution for guest accounts
> 
> 
> WARNING: IGNORANT, UNKNOWNING IDIOTS RESPONDING TO THIS WILL NOT GET MY
>          EAR THIS TIME....  (Nor will I rush out to buy some stupid book.)
> 
> Regardless of what solution you take, this is the one that I declare the
> best, most straight-forward solution for 'cd ~'.  It should be 100% correct
> to assume that the home directory listed in the real /etc/passwd is the
> actual home directory.  Of course, with the /./, and the guestgroup set
> in the ftpaccess file, we chroot to the LHS of the /./.  Immediately
> upon the chroot, wu-ftpd does a chdir() to the RHS of the /./.  It is
> at this point that I thought of the best solution to the 'cd ~' problem...
> 'cd ~' does a chdir(pw->pw_dir) where the 'pw' here is a global structure
> that remains throughout the user's logged-in-time.  Therefore, at
> the point of the chroot() and chdir() call we can store the RHS of the
> /./ as pw->pw_dir since once we chroot, we remained chroot()ed right?
> 
> Here is a patch:
> 
> diff -c -r1.2 ftpd.c
> *** /tmp/T0arY3T_       Sun Nov 16 22:31:52 1997
> --- ftpd.c      Sun Nov 16 22:29:42 1997
> ***************
> *** 1571,1577 ****
>       expand_id();
> 
>       if (anonymous || guest) {
> !         char *sp;
>           /* We MUST do a chdir() after the chroot. Otherwise the old current
>            * directory will be accessible as "." outside the new root! */
>   #ifdef VIRTUAL
> --- 1571,1577 ----
>       expand_id();
> 
>       if (anonymous || guest) {
> !         char *sp,*t;
>           /* We MUST do a chdir() after the chroot. Otherwise the old current
>            * directory will be accessible as "." outside the new root! */

Near line 1588 .. 

    reply (530, "Can't set guest privileges.");
    goto bad;
    }
+ t = strdup( "/" );
+ if (ps->pw_dir)
+   free(pw->pw_dir);
+ pw->pw_dir = t;
  } else{
    *sp++ = '\0';

> ***************
> *** 1594,1599 ****
> --- 1594,1603 ----
>             reply(550, "Can't set guest privileges.");
>             goto bad;
>           }
> +           t = strdup( sp );
> +           if (pw->pw_dir)
> +               free(pw->pw_dir);
> +           pw->pw_dir = t;
>           }
>       }
>   #ifdef AIX
> 
> -- 
> Michael Douglass
> Texas Networking, Inc.
> 
>  "The past is a foreign country; they do things differently there."
>       L. P. Hartley, British author. The Go-Between, Prologue (1953).
> 


----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:30:02 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA20277;
	Mon, 17 Nov 1997 09:24:33 -0600 (CST)
Received: from implode.root.com (implode.root.com [198.145.90.17])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA19347
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:17:36 -0600 (CST)
Received: from implode.root.com (localhost [127.0.0.1])
	by implode.root.com (8.8.5/8.8.5) with ESMTP id HAA01444;
	Mon, 17 Nov 1997 07:20:26 -0800 (PST)
Message-Id: <199711171520.HAA01444@implode.root.com>
Date: Mon, 17 Nov 1997 07:20:26 -0800
Reply-To: dg@root.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: David Greenman <dg@root.com>
To: ringlord@bbs.dcoisp.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: wu-ftpd not disconnecting inactive transfers on fr 
In-Reply-To: Your message of "Sat, 15 Nov 1997 13:45:24 EST."
             <TCPSMTP.17.11.15.13.45.24.3047923923.5367@bbs.dcoisp.net> 
X-Sender: root@implode.root.com
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

>Hello everyone.
>I am having a bit of a problem with my wu-ftpd 2.4.2-beta-15 server.  I
>am running on a freebsd 2.2.5-release box.  Every time a user ftps into
>their home directory, if for some reason they get disconnected on their
>end, IE, they receive an error message saying the upload could not be
>completed, they continue the upload by logging back into the server and
>doing it again.  Now, here is the problem.  Instead of logging out the
>inactive transfer after 15 minutes as the man page suggests, that
>session stays on-line.  I woke up this morning to find 20 such processes
>still running on my system from 12 hours ago!  In fact at one point, the
>client ended up reaching the current limit I had set for all classes in
>the ftpaccess file.
>Here is the worst part.  When I ftp large files from my pc to the
>server for testing purposes, the transfer is completed without a hitch.
>What I am saying is, I have been unable to reproduce his problem.  I
>have even tried disabling tcp extentions on the freebsd machine, in case
>his box just didn't like something with tcp extentions.  I have never
>seen this problem before, and it could be I am missing something
>entirely.  If so, could someone kindly point me in the right direction?
>I am reading all kinds of man pages and faqs, but I feel like I am just
>turning circles right now.  I suppose the next thing I can do if nobody
>has seen this problem before, is turn on debugging, and hope for some
>kind of clue there.

   Technically, the ftp session isn't "idle" when it is stalled uploading,
and that is the reason why it doesn't time out. It's possible to fix this
in the code by creating a special timer alarm/watchdog, but as far as I
know, noone has done this.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:37:44 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA21633;
	Mon, 17 Nov 1997 09:32:13 -0600 (CST)
Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id JAA20619
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:24:41 -0600 (CST)
Received: from egate.mnet.uswest.com (egate-co1.mnet.uswest.com [151.119.130.8])
	by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id IAA11876
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 08:24:10 -0700 (MST)
Received: from easthub.mnet.uswest.com (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id IAA23979 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 08:24:08 -0700 (MST)
Received: from netmail2.mnet.uswest.com (netmail2.mnet.uswest.com [151.119.114.11]) by easthub.mnet.uswest.com (8.6.11/8.6.11) with ESMTP id JAA17140 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:31:23 -0600
Received: from pcs-chekov ([151.116.59.56]) by netmail2.mnet.uswest.com
          (Netscape Mail Server v2.02) with SMTP id AAA8342
          for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 08:24:05 -0700
Message-Id: <34706197.2024@uswest.com>
Date: Mon, 17 Nov 1997 08:24:07 -0700
Reply-To: bwaite@uswest.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Waite <bwaite@uswest.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Patches, diffs and other monkeys
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: bwaite@easthub.mnet.uswest.com
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hey all,
  Got a question concerning conventions.  I've modded my ftpd code quite
a bit for several projects.  Now I want to post one of 'em here ("'em"
being the solutions).  Since the code line numbers for project one are
affected by code from project two, how do I get a diff that can be used
by everyone else that doesn't have my project two changes?  Or does it
matter.  Is patch smart enough to put it in the right place?

-Brad

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 09:39:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA21985;
	Mon, 17 Nov 1997 09:34:17 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA21139
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:29:03 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AA02874
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Mon, 17 Nov 1997 10:26:18 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id KAA15387; Mon, 17 Nov 1997 10:41:25 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id KAA29183; Mon, 17 Nov 1997 10:26:34 -0500
Message-Id: <199711171526.KAA29183@grandpa.rl.kodak.com>
Date: Mon, 17 Nov 1997 10:26:34 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Subject: Who's running Beta-15?
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Does anyone know of any large or small corporations that are running Beta-15
on their external ftp server? I maintain the ftp machine for Eastman Kodak,
and we are currently at Version wu-2.4(10). Due to numerous reasons, we have
had to upgrade to Version wu-2.4.2-academ[BETA-15] on an HP running 10.20.
When management sees the word "Beta" in the Version number, they tend to get
nervous. I would like to be able to go to my management and tell them "It must
secure, because xxxxx and yyyyy are running Beta-15!" 

Or, is there such a thing as a CERT advisory recommending Beta-15?

Any help would be (as always) greatly appreciated! 


 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 11:34:46 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA04054;
	Mon, 17 Nov 1997 11:27:17 -0600 (CST)
Received: from gaia.vr.net (root@gaia.vr.net [205.133.13.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA01344
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 11:20:38 -0600 (CST)
Received: from localhost (lundberg@localhost)
	by gaia.vr.net (8.8.5/8.8.5) with SMTP id KAA12860;
	Mon, 17 Nov 1997 10:59:21 -0500
Message-Id: <Pine.LNX.3.95.971117105232.12682C-100000@gaia.vr.net>
Date: Mon, 17 Nov 1997 10:59:21 -0500 (EST)
Reply-To: lundberg@vr.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Gregory A Lundberg <lundberg@vr.net>
To: Brad Waite <bwaite@uswest.com>
Cc: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Re: Patches, diffs and other monkeys
In-Reply-To: <34706197.2024@uswest.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, 17 Nov 1997, Brad Waite wrote:

>   Got a question concerning conventions.  I've modded my ftpd code quite
> a bit for several projects.  Now I want to post one of 'em here ("'em"
> being the solutions).  Since the code line numbers for project one are
> affected by code from project two, how do I get a diff that can be used
> by everyone else that doesn't have my project two changes?  Or does it
> matter.  Is patch smart enough to put it in the right place?

Run diff against known-clean sources from BETA 15 (or whatever is latest
at the time).  To be sure, I usually grab a fresh copy from academ then cp
the original source into  my modified source directory, adding .orig to
the name.  To be verbose, I'd ...

  cd ~
  tar -zvxf ~/.archives/wu-ftpd-2.4.2-beta-15.tar.Z
  cp wu-ftpd-2.4.2-beta-15/src/ftpd.c ~/wuftpd/src/ftpd.c.orig
  cd ~/wuftpd/src
  diff -u ftpd.c.orig ftpd.c > ~/wuftpd/ftpd.c.diff

----

Gregory A Lundberg		Senior Partner, VRnet Company
1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 11:42:10 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA03766;
	Mon, 17 Nov 1997 11:33:10 -0600 (CST)
Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA04298
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 11:30:04 -0600 (CST)
Received: from egate.mnet.uswest.com (egate-co1.mnet.uswest.com [151.119.130.8])
	by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id JAA22036
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:13:18 -0700 (MST)
Received: from easthub.mnet.uswest.com (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id JAA03248 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:13:16 -0700 (MST)
Received: from netmail2.mnet.uswest.com (netmail2.mnet.uswest.com [151.119.114.11]) by easthub.mnet.uswest.com (8.6.11/8.6.11) with ESMTP id KAA12115 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 10:20:31 -0600
Received: from pcs-chekov ([151.116.59.56]) by netmail2.mnet.uswest.com
          (Netscape Mail Server v2.02) with SMTP id AAA25034
          for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 09:13:15 -0700
Message-Id: <34706D1C.F64@uswest.com>
Date: Mon, 17 Nov 1997 09:13:16 -0700
Reply-To: bwaite@uswest.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Waite <bwaite@uswest.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: Re: Patches, diffs and other monkeys
References: <Pine.LNX.3.95.971117105232.12682C-100000@gaia.vr.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: bwaite@easthub.mnet.uswest.com
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

That was my plan of action.  However, what I was getting at is that if I
only want to pull out one modification that I've made, the line numbers
will be offset from what they would be because of the other mods.  For
instance, here's the orig file:

hack.c.orig
main(){
	printf ("Hello World\n");
}

Here's my modifications:

hack.c.new
main(){
	printf ("\n\n");
	printf ("Hello World\n");
	printf ("Goodbye cruel world!\n");
}

And the diff -c:

*** hack.c.orig  Mon Nov 17 09:07:50 1997
--- hack.c.new  Mon Nov 17 09:07:45 1997
***************
*** 1,3 ****
--- 1,5 ----
  main(){
+       printf ("\n\n");
        printf ("Hello World\n");
+       printf ("Goodbye cruel world!\n");
  }

Now let's say that I only want to post the fix on line 5 of hack.c.new. 
How can I post it so that patch can handle just one mod?  If I just take
out line 2 of hack.c.new, now it's no longer "--- 1,5 ---" but "--- 1,4
---".  Do I have to make all those changes, too, or does patch not care?

Hope I've explained it better this time.

-Brad












Gregory A Lundberg wrote:
> 
> On Mon, 17 Nov 1997, Brad Waite wrote:
> 
> >   Got a question concerning conventions.  I've modded my ftpd code quite
> > a bit for several projects.  Now I want to post one of 'em here ("'em"
> > being the solutions).  Since the code line numbers for project one are
> > affected by code from project two, how do I get a diff that can be used
> > by everyone else that doesn't have my project two changes?  Or does it
> > matter.  Is patch smart enough to put it in the right place?
> 
> Run diff against known-clean sources from BETA 15 (or whatever is latest
> at the time).  To be sure, I usually grab a fresh copy from academ then cp
> the original source into  my modified source directory, adding .orig to
> the name.  To be verbose, I'd ...
> 
>   cd ~
>   tar -zvxf ~/.archives/wu-ftpd-2.4.2-beta-15.tar.Z
>   cp wu-ftpd-2.4.2-beta-15/src/ftpd.c ~/wuftpd/src/ftpd.c.orig
>   cd ~/wuftpd/src
>   diff -u ftpd.c.orig ftpd.c > ~/wuftpd/ftpd.c.diff
> 
> ----
> 
> Gregory A Lundberg              Senior Partner, VRnet Company
> 1441 Elmdale Drive              email: lundberg@vr.net [205.133.13.8]
> Kettering, OH 45409-1615 USA    voice: +1 (937) 299-7653

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 11:52:36 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA06970;
	Mon, 17 Nov 1997 11:46:22 -0600 (CST)
Received: from att.com (cagw1.att.com [192.128.52.89])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA05667
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 11:38:05 -0600 (CST)
Received: by cagw1.att.com; Mon Nov 17 10:09 EST 1997
Received: from lynxhub.lz.att.com ([135.25.204.10])
	by caig1.att.att.com (AT&T/GW-1.0) with SMTP id KAA04902
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 10:05:42 -0500 (EST)
Received: from ROGERH ([135.25.200.159]) by lynxhub.lz.att.com (5.x/EMS-1.2 sol2)
	id AA04539; Mon, 17 Nov 1997 10:12:14 -0500
Received: by ROGERH with Microsoft Mail
	id <01BCF342.1EC3F0C0@ROGERH>; Mon, 17 Nov 1997 10:18:16 -0500
Message-Id: <01BCF342.1EC3F0C0@ROGERH>
Date: Mon, 17 Nov 1997 10:18:15 -0500
Reply-To: rah@lynxhub.lz.att.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Roger A. Hanke" <rah@lynxhub.lz.att.com>
To: "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>,
        "'mikedoug@texas.net'" <mikedoug@texas.net>
Subject: RE: passive() and seteuid(0)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pedro Melo has already completed a pasv port patch and submitted it to
Stan. A number of us have been using it for awhile. You just define the
range of ports you want the server to return, so you can only open up
your firewall for that range. Sounded as if you have the same need as
many of us. Please take a look at his patch and lets pick one version and
try to get it in the base product. I have included the last patch email 
I had from Pedro at the end of this mail.
	Roger Hanke

----------
From: 	Michael Douglass[SMTP:mikedoug@texas.net]
Reply To: 	mikedoug@texas.net
Sent: 	Sunday, November 16, 1997 3:06 PM
To: 	wu-ftpd@wugate.wustl.edu
Subject: 	passive() and seteuid(0)

Okay, I was perusing the wu-ftpd source (beta 15) today.  I was specifically
looking at the passive() function; wanting to impose limits on the ports
that it binds the new socket to so that we can open a firewall with a
limited range of ports--then I stumbled upon the code doing the binding:

    pasv_addr = ctrl_addr;
    pasv_addr.sin_port = 0;
    delay_signaling(); /* we can't allow any signals while euid==0: kinch */
    (void) seteuid((uid_t) 0);          /* XXX: not needed if > 1024 */
    if (bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr)) < 0) {
        (void) seteuid((uid_t) pw->pw_uid);
        enable_signaling(); /* we can allow signals once again: kinch */
        goto pasv_error;
    }
    (void) seteuid((uid_t) pw->pw_uid);
    enable_signaling(); /* we can allow signals once again: kinch */
 
I can't figure out why we are gaining root permissions before calling this
bind() command...  We are not binding to a priveledged port in this code
segment, why do we need root perms?

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).


----------------------------------------------------------------------------------
Hi!

Some time ago I made a patch for beta12 that allows you to restrict the
port ranges used by passive mode ftp. 

This is helpfull for people who dont want to open just a part of their port
space in their firewall.

So far, the pacth is compile time only. You cannot specify in the  config
file the port range to use. You have to change the values of PASSIVE_BASE
and PASSIVE_SPAN in the patched ftpd.c and recompile... For ex, if you want
to open ports 4000 to 5000, use PASSIVE_BASE 4000 and PASSIVE_SPAN 1000

Apply to the ftpd.c in the src directory...

I've been working with this patch for a coupple of month now, no problems.

*** ftpd.c.orig	Fri Mar 21 02:15:09 1997
--- ftpd.c	Fri Mar 21 02:19:00 1997
***************
*** 394,399 ****
--- 394,401 ----
      struct sockaddr_in *virtual_ptr;
  #endif
  
+     srandom(getpid());
+ 
  #ifdef AUX
      setcompat(COMPAT_POSIX | COMPAT_BSDSETUGID);
  #endif
***************
*** 3246,3251 ****
--- 3248,3256 ----
   * response by Jon Postel in a telephone conversation with Rick Adams on
25
   * Jan 89. */
  
+ #define PASSIVE_BASE 3000
+ #define PASSIVE_SPAN 500
+ 
  void
  #ifdef __STDC__
  passive(void)
***************
*** 3253,3259 ****
  passive()
  #endif
  {
!     int len;
      register char *p,
       *a;
  
--- 3258,3264 ----
  passive()
  #endif
  {
!     int len, bind_error;
      register char *p,
       *a;
  
***************
*** 3268,3281 ****
          return;
      }
      pasv_addr = ctrl_addr;
!     pasv_addr.sin_port = 0;
      delay_signaling(); /* we can't allow any signals while euid==0: kinch
*/
      (void) seteuid((uid_t) 0);		/* XXX: not needed if >
1024 */
!     if (bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr)) <
0) {
!         (void) seteuid((uid_t) pw->pw_uid);
!         enable_signaling(); /* we can allow signals once again: kinch */
!         goto pasv_error;
      }
      (void) seteuid((uid_t) pw->pw_uid);
      enable_signaling(); /* we can allow signals once again: kinch */
      len = sizeof(pasv_addr);
--- 3273,3293 ----
          return;
      }
      pasv_addr = ctrl_addr;
! 
      delay_signaling(); /* we can't allow any signals while euid==0: kinch
*/
      (void) seteuid((uid_t) 0);		/* XXX: not needed if >
1024 */
!     do {
!         pasv_addr.sin_port = PASSIVE_BASE + random() % PASSIVE_SPAN;
!         if (log_commands) syslog(LOG_DEBUG, "PASV trying %d",
pasv_addr.sin_port);
!         bind_error = bind(pdata, (struct sockaddr *) &pasv_addr,
sizeof(pasv_addr));
!     } while(errno==EADDRINUSE);
!     if (bind_error < 0) {
!               (void) seteuid((uid_t) pw->pw_uid);
!               enable_signaling(); /* we can allow signals once again:
kinch */
!               goto pasv_error;
      }
+     if (log_commands) syslog(LOG_DEBUG, "PASV got %d",
pasv_addr.sin_port);
+ 
      (void) seteuid((uid_t) pw->pw_uid);
      enable_signaling(); /* we can allow signals once again: kinch */
      len = sizeof(pasv_addr);
--
************** Pedro Melo (melo@co.telenet.pt) BOFH ******************
*   TELENET, Servicos de Telecomunicacoes, SA - Tel +351 1 3139190   *
* finger melo@finger.co.telenet.pt or search key servers for PGP key *
*           It's management's job to support the geniuses,           *
*                      not to tell them what to do                   *
**********************************************************************





From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 12:23:38 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA10608;
	Mon, 17 Nov 1997 12:17:28 -0600 (CST)
Received: from pike.ixa.net (root@pike.ixa.net [199.242.19.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id MAA09430
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 12:13:16 -0600 (CST)
Received: from localhost (nikm@localhost)
	by pike.ixa.net with SMTP id IAA22769;
	Mon, 17 Nov 1997 08:12:49 -0800
Message-Id: <MSMail.WinNT.3.96.971117080929.22739C-100000@pike.ixa.net>
Date: Mon, 17 Nov 1997 08:12:49 -0800 (PST)
Reply-To: nikm@ixa.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Nikos Mouat <nikm@ixa.net>
To: Don Cox <dcox@grandpa.rl.kodak.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Who's running Beta-15?
In-Reply-To: <199711171526.KAA29183@grandpa.rl.kodak.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Hi,
   I ran into the same thing with users complaining about a Beta.. since
the academ version is alot less buggy than running the old wuftpd 2.4 I
just take the Beta out of the version string, and all of a sudden everyone
is happy:

220 www1.ixa.net FTP server (Version Academ-15(1) Sat Sep 13 12:43:19 PDT
1997) 
220 ftp.sea.ixa.net FTP server (Version WinNT:5.2-ixa[from Academ 15](2)
Fri Sep  12 10:21:28 PDT 1997) ready.

You can see my made up version numbers which are used for various reasons,
but I just reference Academ-15 as the master version..  no complaints yet
:)

nm

On Mon, 17 Nov 1997, Don Cox wrote:

> Does anyone know of any large or small corporations that are running Beta-15
> on their external ftp server? I maintain the ftp machine for Eastman Kodak,
> and we are currently at Version wu-2.4(10). Due to numerous reasons, we have
> had to upgrade to Version wu-2.4.2-academ[BETA-15] on an HP running 10.20.
> When management sees the word "Beta" in the Version number, they tend to get
> nervous. I would like to be able to go to my management and tell them "It must
> secure, because xxxxx and yyyyy are running Beta-15!" 
> 
> Or, is there such a thing as a CERT advisory recommending Beta-15?
> 
> Any help would be (as always) greatly appreciated! 
> 
> 
>  Don Cox   mailto:dcox@kodak.com   <><
>  Phone: (716) 588-4415, KMX: 258-4415
>  Pager: (800) SKY-8888, PIN 1989961
>  FAX:   (716) 722-3885
>  Webpage: http://www.kodak.com
> 


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 13:21:58 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA17399;
	Mon, 17 Nov 1997 13:14:01 -0600 (CST)
Received: from mail-a.bellatlantic.com (mail-a.bellatlantic.com [198.23.18.30])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA16406
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 13:08:42 -0600 (CST)
Received: from iw012807.bell-atl.com by mail-a.bellatlantic.com (SMI-8.6/SMI-SVR4)
	id OAA03104; Mon, 17 Nov 1997 14:08:21 -0500
Received: from iscorp.bell-atl.com by iw012807.bell-atl.com (SMI-8.6/SMI-SVR4)
	id OAA00584; Mon, 17 Nov 1997 14:16:46 -0500
Received: from TM210 ([141.149.62.167]) by iscorp.bell-atl.com
          (Netscape Mail Server v2.02) with SMTP id AAA19939
          for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 14:07:48 -0500
Received: by TM210 with Microsoft Mail
	id <01BCF362.47C3CC50@TM210>; Mon, 17 Nov 1997 14:08:29 -0500
Message-Id: <01BCF362.47C3CC50@TM210>
Date: Mon, 17 Nov 1997 14:08:28 -0500
Reply-To: Minh.Nguyen@iscorp.bellatlantic.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Minh.Nguyen@iscorp.bellatlantic.com (Minh Nguyen)
To: "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: Comparison differences betw. ftp and wu-ftp
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

To whom it may concern:

Is there a document on comparing ftp and wu-ftp?
Why should one used wu-ftp over ftp?

Thanks-
Minh H. Nguyen


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 13:45:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA21120;
	Mon, 17 Nov 1997 13:38:54 -0600 (CST)
Received: from darwin ([204.158.62.7])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA19849
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 13:34:35 -0600 (CST)
Received: from haldane. by darwin (SMI-8.6/SMI-SVR4)
	id NAA02383; Mon, 17 Nov 1997 13:33:22 -0600
Received: by haldane. (SMI-8.6/SMI-SVR4)
	id NAA00461; Mon, 17 Nov 1997 13:34:59 -0600
Message-Id: <199711171934.NAA00461@haldane.>
Date: Mon, 17 Nov 1997 13:34:59 -0600
Reply-To: gvest@darwin.sfbr.org
Sender: owner-wu-ftpd@wugate.wustl.edu
From: gvest@darwin.sfbr.org (Gerry W. Vest)
To: ruefenac@scylla.eng.utah.edu
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Q about Solaris 5.5.1 wu-ftpd
X-Sun-Charset: US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Monday, Nov 17, 1997 Craig Ruefenacht wrote: 

> Hi all,
> 
> This may be related to the recent discussion about the ls program
> on Solaris....
> 
> I recently installed wu-ftpd on a solaris 5.5.1 machine and was able
> to get the anonymous stuff set up correctly, except that when an
> anonymous user logs in and does a directory listing, it shows UID
> and GID numbers instead of what is in ~ftp/etc/[passwd|group].
> 
> Could someone give me a decisive answer as to what the problem
> might be?  Both files in ~ftp/etc are world readable and have
> the bare minimum, with no info at the machine's real /etc/
> file> 
> --



We are running the Beta 13 version of wuftp on Solaris 2.5.1, but found
the answer in the 'NOTES' file from Beta 15.  

The problem is with the Solaris 2.5.1 libraries that are supposed to go into 
the ~ftp/usr/lib directory.  They don't work properly with the 
dynamically linked version of 'ls'.  The BugID for this is 4018605.
The recommended fix is to copy over Solaris 2.5 versions of the required
library files into the ~ftp/usr/lib.  This cleared up the problem
for us, so we did not pursue the other possible fix, building a
statically linked version of 'ls'.




Gerry Vest				Systems Administrator
Email: gvest@darwin.sfbr.org		SW Foundation for Biomedical Research
    

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 14:34:23 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA26321;
	Mon, 17 Nov 1997 14:23:59 -0600 (CST)
Received: from rhea.as.utexas.edu (rhea.as.utexas.edu [128.83.129.237])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id OAA26471
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 14:21:05 -0600 (CST)
Received: by rhea.as.utexas.edu (SMI-8.6/SMI-SVR4)
	id OAA10246; Mon, 17 Nov 1997 14:20:56 -0600
Message-Id: <199711172020.OAA10246@rhea.as.utexas.edu>
Date: Mon, 17 Nov 1997 14:20:56 -0600
Reply-To: niall@rhea.as.utexas.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: niall@rhea.as.utexas.edu (Niall Gaffney)
To: wu-ftpd@wugate.wustl.edu
Subject: Logging files transfered in tar
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi,

I am using wu-ftpd on a Solaris 2.5 box to do ftp things.  In particular
I am running a data distribution system for astronomical data.  I have
everything setup and working with guests accounts for all the users and 
logging turned on.  I am using the log files to determine what files
have been retrieved by the users.  When I run out of disk space, I will
delete files that have been retrieved.

However I have been asked to add a feature to allow the user to extract
everything as a tar file.  Of course wu-ftpd does this and it works...only
I cannot tell what was in the tar file from the logged information.  Is
there any way/hack to make wu-ftpd log what files went into the tar file
so I can check those off as having been retrieved?  

Please let me know if you have any suggestions.

Thanks

Niall Gaffney

==============================================================
Niall Gaffney                 niall@rhea.as.utexas.edu
HET Operations                http://rhea.as.utexas.edu/~niall

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 15:35:30 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA03241;
	Mon, 17 Nov 1997 15:29:21 -0600 (CST)
Received: from dustas.aswell.com (dustas.aswell.com [206.31.12.38])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA00812
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 15:23:04 -0600 (CST)
Received: from sgii021.sgii.com by dustas.aswell.com id aa13661;
          17 Nov 97 16:23 EST
Message-Id: <9711171623.aa13661@dustas.aswell.com>
Date: Mon, 17 Nov 1997 16:20:46 -0500
Reply-To: msmith@sgii.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Matthew Smith <msmith@sgii.com>
To: wu-ftpd <wu-ftpd@wugate.wustl.edu>
Subject: wu-ftpd ports to non-Unix OS's?
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello.
We are considering integrating ftp with a backup/HSM library which runs on
Windows NT.  Has anyone ever attempted to port wu-ftpd to NT?  Can someone
give me a feel for the amount of work involved to do so?

Thanks in advance.

Matt

------------------
Matthew Smith
Safeguard Interactive, Inc.
msmith@sgii.com

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 16:36:21 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA11143;
	Mon, 17 Nov 1997 16:30:24 -0600 (CST)
Received: from tigger.jvnc.net (tigger.jvnc.net [128.121.50.145])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA09379
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 16:26:13 -0600 (CST)
Received: (from vikas@localhost)
	by tigger.jvnc.net (8.8.7/8.8.7) id RAA04259
	for wu-ftpd@wugate.wustl.edu; Mon, 17 Nov 1997 17:26:12 -0500 (EST)
Message-Id: <199711172226.RAA04259@tigger.jvnc.net>
Date: Mon, 17 Nov 1997 17:26:12 -0500 (EST)
Reply-To: vikas@navya.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Vikas Aggarwal <vikas@navya.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Virtual FTp servers
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4ME+ PL31 (25)]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I have just setup your virtual FTP server in the beta15.

Just wanted to know whether the virtual server's root directory also
needs to have the dev/ bin/ usr/lib  directories  like setting up for
a normal anonymous FTP site ?

Also, in your example, might want to change the 'root' directory of
the site 10.0.0.1  to be /var/ftp/virtual/ftp-serv/data/  or something
(i.e. make it a subdir so that the xferlog and banner are not in the
same directory ?)

        -vikas


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 18:11:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA24832;
	Mon, 17 Nov 1997 18:05:11 -0600 (CST)
Received: from titan.iingen.unam.mx (titan.iingen.unam.mx [132.248.156.245])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA17991
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 18:02:20 -0600 (CST)
Received: by titan.iingen.unam.mx (950911.SGI.8.6.12.PATCH825/940406.SGI)
	for wu-ftpd@wugate.wustl.edu id SAA14692; Mon, 17 Nov 1997 18:09:15 -0800
Message-Id: <199711180209.SAA14692@titan.iingen.unam.mx>
Date: Mon, 17 Nov 1997 18:09:15 -0800
Reply-To: edgar@titan.iingen.unam.mx
Sender: owner-wu-ftpd@wugate.wustl.edu
From: edgar@titan.iingen.unam.mx (Edgar Galicia Barraza)
To: wu-ftpd@wugate.wustl.edu
Subject: Problem whith wu-ftpd....
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



  Hi All,


    Intall WU-ftpd 2.4 in a machine with Solaris 2.5.1 but send the 
    follow message:


     ftpd[1330]: sleeping: fcntl lock of pid file failed: Resource temporarily unava
ilable


   thansko fao all.


    Edgar Galicia Barrza 
  edgar@titan.iingen.unam.mx

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 18:42:33 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA28383;
	Mon, 17 Nov 1997 18:36:09 -0600 (CST)
Received: from micro.internexus.net (R-Foo@internexus.net [206.152.14.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA26964
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 18:31:11 -0600 (CST)
Received: from localhost (master@localhost)
          by micro.internexus.net (8.8.7/8.8.4) with SMTP
	  id PAA28072 for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 15:19:55 -0500
Message-Id: <Pine.LNX.3.96.971117150758.27669A-100000@micro.internexus.net>
Date: Mon, 17 Nov 1997 15:19:55 -0500 (EST)
Reply-To: master@internexus.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Laszlo Vecsey <master@internexus.net>
To: wu-ftpd@wugate.wustl.edu
Subject: Cisco traffic shaping Virtual FTP sites
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'm running IOS 11.2(9) on a Cisco 2511 router, and I set up some traffic
shaping rules for an IP that is used as a Virtual FTP server. 

I found that the Virtual FTP address was not being traffic shaped during
file transfers, instead, I could only restrict the transfer to the Virtual
FTP site if I traffic shaped the real, physical (eth0) IP of the server. 

Is this because the user/login, and other ftp commands are sent over the
Virtual FTP, but the file transfer is actually sent through the real IP?
Will this change in a future release, or is there a patch available, or
any tips on what needs to be done in the src? 

- lv


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 20:52:25 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA08232;
	Mon, 17 Nov 1997 16:05:09 -0600 (CST)
Received: from staff2.texas.net (mikedoug@staff2.texas.net [207.207.0.39])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA08087
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 16:04:20 -0600 (CST)
Received: (from mikedoug@localhost) by staff2.texas.net (8.8.5/8.7.5) id QAA14374; Mon, 17 Nov 1997 16:04:16 -0600 (CST)
Message-Id: <19971117160416.53417@texas.net>
Date: Mon, 17 Nov 1997 16:04:16 -0600
Reply-To: mikedoug@texas.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Douglass <mikedoug@texas.net>
To: Gregory A Lundberg <lundberg@vr.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: minor problem with guestgroup
In-Reply-To: <Pine.LNX.3.95.971117090903.11725A-100000@gaia.vr.net>; from Gregory A Lundberg on Mon, Nov 17, 1997 at 09:10:34AM -0500
References: <19971114190310.43804@texas.net> <Pine.LNX.3.95.971117090903.11725A-100000@gaia.vr.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, Nov 17, 1997 at 09:10:34AM -0500, Gregory A Lundberg said:

> This patch to BETA 15 should fix things for 'cd ~' ...
> 
> --- ftpd.c.orig	Fri Sep 12 11:42:46 1997
> +++ ftpd.c	Mon Nov 17 08:59:30 1997
> @@ -1593,6 +1593,10 @@
>  	  if (chroot(pw->pw_dir) < 0 || chdir(++sp) < 0) {
>  	    reply(550, "Can't set guest privileges.");
>  	    goto bad;
> +          } else {
> +            char *pp;
> +            pp = pw->pw_dir;
> +            do *pp++ = *sp; while (*sp++ != '\0');
>  	  }
>          }
>      }

I just published such a patch to the list yesterday. :)  And I question
your use of 'else' here after an 'if' clause that will clearly never
return...  But that's just me. :)

-- 
Michael Douglass
Texas Networking, Inc.

 "The past is a foreign country; they do things differently there."
      L. P. Hartley, British author. The Go-Between, Prologue (1953).

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 21:07:06 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA19094;
	Mon, 17 Nov 1997 17:19:00 -0600 (CST)
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id RAA17828
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 17:13:28 -0600 (CST)
Received: from LOCAL (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 16859
          on Mon, 17 Nov 1997 23:13:27 GMT; id XAA16859
          efrom: news@Garfield.IAEhv.nl; eto: wu-ftpd@wugate.wustl.edu
Received: (from news@localhost)
	by Garfield.IAEhv.nl (8.8.5/8.8.5) id WAA06250;
	Mon, 17 Nov 1997 22:35:43 +0100
Message-Id: <64qdbf$51j$2@Garfield.IAEhv.nl>
Date: 17 Nov 1997 21:35:43 GMT
Reply-To: Perry.Rovers@IAE.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Perry.Rovers@IAE.nl
To: wu-ftpd@wugate.wustl.edu
Subject: Re: Anonymous logins and a security question...
References: <H00003ca02a055da@MHS>
X-no-archive: yes
X-bofh-archive: yes
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970324; i586 Linux 2.0.28]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Pink elephants with an attitude inspired Per.E.Berger@telia.se to tell garfield.mail.wu-ftpd:
: 1/ I want to disable anonymous login; how do I do? Would it be enough to
: remove "anonymous" in ftpaccess so that it does not belong to a class?
: Or what is needed?
put ftp in /etc/ftpusers (or wherever ftpusers is located on your system)

: 2/ As default the server at connect time displays the name of the host
: and the name of the server (wu-ftpd) and the version of the server. Can
: I change that? How? I do only want it to display as little as possible
: because I do not want to give away any info regarding what I am running
: (for security reasons)...
You can hack the version stuff out of vers.c. As for the hostname.. well,
you need to connect somewhere don't you? ;-) You can take it out of the
source as well.

: 3/ Are there any special considerations regarding security that should
: be dealt with or is the server as safe as it can be if I set it up
: "correctly" and use the latest version with the latest patches?
See the references to the Secure Anonymous FTP FAQ (and other links) in the
wu-ftpd faq. I know you don't want Anonymous FTP, but it's useful anyway.

-- 
Perry Rovers (Perry.Rovers@IAE.nl)

From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 21:14:39 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA12433;
	Mon, 17 Nov 1997 21:08:04 -0600 (CST)
Received: from inorganic5.fdt.net (inorganic5.fdt.net [205.229.48.42])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA11674
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 21:01:51 -0600 (CST)
Received: from localhost (jlewis@localhost)
	by inorganic5.fdt.net  with SMTP id WAA01063;
	Mon, 17 Nov 1997 22:01:40 -0500
Message-Id: <Pine.LNX.3.95.971117220006.600Y-100000@inorganic5.fdt.net>
Date: Mon, 17 Nov 1997 22:01:38 -0500 (EST)
Reply-To: jlewis@inorganic5.fdt.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: ringlord@bbs.dcoisp.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: wu-ftpd not disconnecting inactive transfers on fr
In-Reply-To: <TCPSMTP.17.11.15.13.45.24.3047923923.5367@bbs.dcoisp.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-To-Stop-Spam-See: http://inorganic5.fdt.net/~jlewis/spam.html
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Sat, 15 Nov 1997 ringlord@bbs.dcoisp.net wrote:

> Hello everyone.
> I am having a bit of a problem with my wu-ftpd 2.4.2-beta-15 server.  I
> am running on a freebsd 2.2.5-release box.  Every time a user ftps into
> their home directory, if for some reason they get disconnected on their
> end, IE, they receive an error message saying the upload could not be
> completed, they continue the upload by logging back into the server and
> doing it again.  Now, here is the problem.  Instead of logging out the
> inactive transfer after 15 minutes as the man page suggests, that

Are they hanging idle or hanging while doing a transfer?  I posted a hack
a few months ago that takes care of hung transfers...with it, they no
longer happen.  It was not adopted into the code though.  If the list has
an archive, you might take a look.


------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____


From owner-wu-ftpd@wugate.wustl.edu  Mon Nov 17 21:48:57 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA15486;
	Mon, 17 Nov 1997 21:45:52 -0600 (CST)
Received: from inorganic5.fdt.net (inorganic5.fdt.net [205.229.48.42])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA15093
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 21:40:28 -0600 (CST)
Received: from localhost (jlewis@localhost)
	by inorganic5.fdt.net  with SMTP id WAA01241;
	Mon, 17 Nov 1997 22:40:08 -0500
Message-Id: <Pine.LNX.3.95.971117223949.600a-100000@inorganic5.fdt.net>
Date: Mon, 17 Nov 1997 22:40:07 -0500 (EST)
Reply-To: jlewis@inorganic5.fdt.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: David Greenman <dg@root.com>
Cc: ringlord@bbs.dcoisp.net, wu-ftpd@wugate.wustl.edu
Subject: Re: wu-ftpd not disconnecting inactive transfers on fr 
In-Reply-To: <199711171520.HAA01444@implode.root.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-To-Stop-Spam-See: http://inorganic5.fdt.net/~jlewis/spam.html
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, 17 Nov 1997, David Greenman wrote:

>    Technically, the ftp session isn't "idle" when it is stalled uploading,
> and that is the reason why it doesn't time out. It's possible to fix this
> in the code by creating a special timer alarm/watchdog, but as far as I
> know, noone has done this.

It's been done...and works for me.

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 03:12:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id DAA10839;
	Tue, 18 Nov 1997 03:08:22 -0600 (CST)
Received: from maltms1.data.telia.se (maltms1.data.telia.se [131.116.41.116])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id DAA14108
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 03:05:42 -0600 (CST)
Received: from  by maltms1.data.telia.se with SMTP
	(1.37.109.14/16.2) id AA072503539; Tue, 18 Nov 1997 09:58:59 +0100
Message-Id: <H00003ca02a13d26@MHS>
Date: Tue, 18 Nov 97 10:00:02 +0100
Reply-To: Per.E.Berger@telia.se
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Per.E.Berger@telia.se
To: wu-ftpd@wugate.wustl.edu
Cc: wu-ftpd@wugate.wustl.edu
Subject: PLS HELP...
In-Reply-To: <Pine.LNX.3.91.971117144229.25223B-200000@proxy.privat.wmo.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; name="Meddelandetext"
Content-Transfer-Encoding: 7bit
X-Openmail-Hops: 2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> 
> Hi all,
> 
> Has someone installed the WU-ftpd on Red Hat Linux 4.2? I am trying to
> install it since last week but in vain...getting a lot of errors. I am
> sending the outout (from ./build lnx) as an attachment. If you are
> interested, have a look. I would be more than happy to get a solution.

> 
> Thank you for your time.
> 
> Rgds,
> Suman Malla 
> 
> Notice: The only person getting his work done by friday was Robinson
Crusoe.
> 
> 
> ----------------------------------------
> [root@foo wu-ftpd-2.4]# ./build lnx
> make args are : 
> make opts are : 
> 
> Linking Makefiles.
> 
> Making support library.
> Makefile:13: *** missing separator.  Stop.
> 
> Making ftpd.
> gcc -O -DDEBUG -DDIRENT_ILLEGAL_ACCESS -I.. -I../support
-I/usr/include/bsd -L..
> /support   -c ftpd.c -o ftpd.o
> In file included from ftpd.c:42:
> config.h:25: syntax error before `typedef'
> In file included from ftpd.c:46:
> /usr/include/sys/stat.h:19: syntax 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'
> ftpd.c:386: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:389: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:392: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:395: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:398: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:401: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:407: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:410: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:413: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:416: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:419: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:422: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:425: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:428: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:431: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:434: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:437: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:440: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:443: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:446: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:449: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:452: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:455: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:458: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:462: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c:469: warning: passing arg 2 of `__bsd_signal' from incompatible
pointer t
> ype
> ftpd.c: At top level:
> ftpd.c:560: parse error before `randomsig'
> ftpd.c:571: parse error before `lostconn'
> ftpd.c: In function `pass':
> ftpd.c:1002: warning: assignment makes integer from pointer without a
cast
> ftpd.c: In function `opt_string':
> ftpd.c:1226: warning: comparison between pointer and integer
> ftpd.c:1228: warning: comparison between pointer and integer
> ftpd.c:1230: warning: comparison between pointer and integer
> ftpd.c: In function `retrieve':
> ftpd.c:1342: warning: comparison between pointer and integer
> ftpd.c: At top level:
> ftpd.c:2430: parse error before `myoob'
> make: *** [ftpd.o] Error 1
> 
> Making ftpcount.
> gcc -O -DDEBUG -DDIRENT_ILLEGAL_ACCESS -I.. -I../support
-I/usr/include/bsd -L..
> /support -o ftpcount ftpcount.c vers.o -lsupport -lbsd
> gcc: vers.o: No such file or directory
> In file included from ftpcount.c:32:
> config.h:25: syntax error before `typedef'
> In file included from /usr/include/libio.h:30,
>                  from /usr/include/stdio.h:34,
>                  from ftpcount.c:34:
> /usr/include/_G_config.h:22: syntax error before `typedef'
> ftpcount.c: In function `parsetime':
> ftpcount.c:98: warning: comparison between pointer and integer
> ftpcount.c:107: warning: comparison between pointer and integer
> ftpcount.c: In function `acl_getlimit':
> ftpcount.c:159: warning: comparison between pointer and integer
> ftpcount.c:162: warning: assignment makes integer from pointer without
a cast
> ftpcount.c: In function `main':
> ftpcount.c:307: warning: comparison between pointer and integer
> ftpcount.c:310: warning: assignment makes integer from pointer without
a cast
> make: *** [ftpcount] Error 1
> 
> Making ftpshut.
> gcc -O -DDEBUG -DDIRENT_ILLEGAL_ACCESS -I.. -I../support
-I/usr/include/bsd -L..
> /support -o ftpshut ftpshut.c vers.o -lsupport -lbsd
> gcc: vers.o: No such file or directory
> In file included from ftpshut.c:37:
> config.h:25: syntax error before `typedef'
> In file included from /usr/include/bsd/errno.h:5,
>                  from ftpshut.c:39:
> /usr/include/errno.h:30: syntax error before `extern'
> ftpshut.c: In function `main':
> ftpshut.c:188: warning: comparison between pointer and integer
> ftpshut.c:191: warning: assignment makes integer from pointer without
a cast
> make: *** [ftpshut] Error 1
> 
> Making ckconfig.
> gcc -O -DDEBUG -DDIRENT_ILLEGAL_ACCESS -I.. -I../support
-I/usr/include/bsd -L..
> /support -o ckconfig ckconfig.c
> 
> Links to executables are in bin directory:
> size: bin/ftpd: No such file or directory
> size: bin/ftpcount: No such file or directory
> size: bin/ftpshut: No such file or directory
> size: bin/ftpwho: No such file or directory
> text data bss dec hex filename
> 992     1895    88      2975    b9f     bin/ckconfig
> ----------------------------------------------------------------
> 

Have you made any modifications to the code? If not, why not grab the
latest rpm from redhat and install that? Thats what I did, works fine...

If you want to do something special with it, have you tried the rpm
version of the source?? Often, redhat's versions works best...

/Per


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 05:29:46 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id FAA25111;
	Tue, 18 Nov 1997 05:27:04 -0600 (CST)
Received: from spin.ch (tpo2@server.spin.ch [194.209.46.3])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id FAA24785
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 05:25:18 -0600 (CST)
Received: from localhost (tpo2@localhost)
	by spin.ch (8.8.5/8.8.5) with SMTP id MAA32234;
	Tue, 18 Nov 1997 12:26:52 GMT
Message-Id: <Pine.LNX.3.95q.971118122319.30230C-100000@spin.ch>
Date: Tue, 18 Nov 1997 12:26:52 +0000 (GMT)
Reply-To: tpo2@spin.ch
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "T's Mailing Lists" <tpo2@spin.ch>
To: Laszlo Vecsey <master@internexus.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Cisco traffic shaping Virtual FTP sites
In-Reply-To: <Pine.LNX.3.96.971117150758.27669A-100000@micro.internexus.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Mon, 17 Nov 1997, Laszlo Vecsey wrote:

> I'm running IOS 11.2(9) on a Cisco 2511 router, and I set up some traffic
> shaping rules for an IP that is used as a Virtual FTP server. 
> 
> I found that the Virtual FTP address was not being traffic shaped during
> file transfers, instead, I could only restrict the transfer to the Virtual
> FTP site if I traffic shaped the real, physical (eth0) IP of the server. 
> 
> Is this because the user/login, and other ftp commands are sent over the
> Virtual FTP, but the file transfer is actually sent through the real IP?
> Will this change in a future release, or is there a patch available, or
> any tips on what needs to be done in the src? 

I'm no expert.
I think that ftp chooses random ports in a certain range to open
data-channels to transimt the actual data and has one know port to do the
coordination (i.e. commands, replies etc). Is it maybe that your cisco
can't handle that, that means doesn't know about the randomly choosen
data-channels? It could be the same problem as with
masquerading/firewalling etc...

*
t

--------------------------------------------------------------------------------
                   Tomas Pospisek's mailing-lists mailbox   
           www.SPIN.ch - Internet Services in Graubuenden/Switzerland
--------------------------------------------------------------------------------
Tom: So far, der winter kommt, ich schaff mir glaub ich noch ein paar
Tom: Zyxel traffos an...
Roli: Aber genug davon nehmen. Wenn die Dinger kapput gehen werden sie 
Roli: nicht mehr warm.


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 06:01:07 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id FAA27389;
	Tue, 18 Nov 1997 05:58:29 -0600 (CST)
Received: from att.com (cagw2.att.com [192.128.52.90])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id FAA26736
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 05:51:51 -0600 (CST)
Received: by cagw2.att.com; Mon Nov 17 12:22 EST 1997
Received: from lynxhub.lz.att.com ([135.25.204.10])
	by caig2.att.att.com (AT&T/GW-1.0) with SMTP id MAA08405
	for <wu-ftpd@wugate.wustl.edu>; Mon, 17 Nov 1997 12:38:05 -0500 (EST)
Received: by lynxhub.lz.att.com (5.x/EMS-1.2 sol2)
	id AA13055; Mon, 17 Nov 1997 12:23:03 -0500
Message-Id: <9711171723.AA13055@lynxhub.lz.att.com>
Date: Mon, 17 Nov 1997 12:23:03 -0500 (EST)
Reply-To: dougc@lynxhub.lz.att.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dougc@lynxhub.lz.att.com
To: mikedoug@texas.net
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Feature Request (passive mode port range)
In-Reply-To: <19971116144859.00829@texas.net> from "Michael Douglass" at Nov 16, 97 02:48:59 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL24]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Michael,
There is a patch available via the wuftp patch site that has exactly
what you are looking for. I have attached it below. I am using it now
with a change (not included) where I read the port numbers from the
ftpaccess file.


From: melo@co.telenet.pt (Pedro Melo)
To: wu-ftpd@wugate.wustl.edu
Subject: Patch for passive mode in Beta12

Hi!

I've made a patch (check the attachment) for Beta12 that some of you might
find interesting. So far it is working ok.

When the client ask for PASV, the server must bind to a port and wait the
connection from the client. With the original code, the port would randomly
selected. This patch makes the ftpd bind to a port in a certain range
(defined at compile time for now).

What's the benefit? Basically I only have to open a certain range of ports
in my firewall to allow PASV mode to work.

If you find anything wrong with this patch, please let me know.

Thanks!

Melo

PS: the patch is to the file src/ftpd.c in beta12.
PS2: to change the range of port numbers you want, change PASSIVE_BASE 
     (base port) and PASSIVE_SPAN (number of ports to open). In my patch, I

     open 500 ports from 3000 to 3499
--
************** Pedro Melo (melo@co.telenet.pt) BOFH ******************
*   TELENET, Servicos de Telecomunicacoes, SA - Tel +351 1 3139190   *
* finger melo@finger.co.telenet.pt or search key servers for PGP key *
*           It's management's job to support the geniuses,           *
*                      not to tell them what to do                   *
**********************************************************************

----=_32f772a74898931990505dbd9.MFSBCHJLHS
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

*** ftpd.c.orig	Tue Feb  4 17:11:09 1997
--- ftpd.c	Tue Feb  4 17:09:25 1997
***************
*** 396,401 ****
--- 396,403 ----
      struct sockaddr_in *virtual_ptr;
  #endif
  
+     srandom(getpid());
+ 
  #ifdef AUX
      setcompat(COMPAT_POSIX | COMPAT_BSDSETUGID);
  #endif
***************
*** 3212,3217 ****
--- 3214,3222 ----
   * response by Jon Postel in a telephone conversation with Rick Adams on 25
   * Jan 89. */
  
+ #define PASSIVE_BASE 3000
+ #define PASSIVE_SPAN 500
+ 
  void
  #ifdef __STDC__
  passive(void)
***************
*** 3219,3225 ****
  passive()
  #endif
  {
!     int len;
      register char *p,
       *a;
  
--- 3224,3230 ----
  passive()
  #endif
  {
!     int len, bind_error;
      register char *p,
       *a;
  
***************
*** 3234,3247 ****
          return;
      }
      pasv_addr = ctrl_addr;
!     pasv_addr.sin_port = 0;
      delay_signaling(); /* we can't allow any signals while euid==0: kinch */
      (void) seteuid((uid_t) 0);		/* XXX: not needed if > 1024 */
!     if (bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr)) < 0) {
!         (void) seteuid((uid_t) pw->pw_uid);
!         enable_signaling(); /* we can allow signals once again: kinch */
!         goto pasv_error;
      }
      (void) seteuid((uid_t) pw->pw_uid);
      enable_signaling(); /* we can allow signals once again: kinch */
      len = sizeof(pasv_addr);
--- 3239,3259 ----
          return;
      }
      pasv_addr = ctrl_addr;
! 
      delay_signaling(); /* we can't allow any signals while euid==0: kinch */
      (void) seteuid((uid_t) 0);		/* XXX: not needed if > 1024 */
!     do {
! 	pasv_addr.sin_port = PASSIVE_BASE + random() % PASSIVE_SPAN;
! 	if (log_commands) syslog(LOG_DEBUG, "PASV trying %d", pasv_addr.sin_port);
! 	bind_error = bind(pdata, (struct sockaddr *) &pasv_addr, sizeof(pasv_addr));
!     } while(errno==EADDRINUSE);
!     if (bind_error < 0) {
!        	(void) seteuid((uid_t) pw->pw_uid);
!        	enable_signaling(); /* we can allow signals once again: kinch */
!        	goto pasv_error;
      }
+     if (log_commands) syslog(LOG_DEBUG, "PASV got %d", pasv_addr.sin_port);
+ 
      (void) seteuid((uid_t) pw->pw_uid);
      enable_signaling(); /* we can allow signals once again: kinch */
      len = sizeof(pasv_addr);

----=_32f772a74898931990505dbd9.MFSBCHJLHS--



-- 
Doug Courtney
dougc@lynxhub.att.com
(732)576-5572

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 08:32:36 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA06137;
	Tue, 18 Nov 1997 08:28:03 -0600 (CST)
Received: from maltms1.data.telia.se (maltms1.data.telia.se [131.116.41.116])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA06281
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 08:19:14 -0600 (CST)
Received: from  by maltms1.data.telia.se with SMTP
	(1.37.109.14/16.2) id AA242552350; Tue, 18 Nov 1997 15:12:30 +0100
Message-Id: <H00003ca02a1a698@MHS>
Date: Tue, 18 Nov 97 15:13:45 +0100
Reply-To: Per.E.Berger@telia.se
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Per.E.Berger@telia.se
To: wu-ftpd@wugate.wustl.edu
Subject: Compiling on alpha
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; name="Meddelandetext"
Content-Transfer-Encoding: 7bit
X-Openmail-Hops: 2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi!

I have wu-ftpd 2.4.2b15 running under redhat linux 4.2 on an alpha
server. I used the rpm version when I installed the server. No
problems...

Now I want to make a few changes to the source and now it gets
serious...

I grabbed the source-rpm, made my changes and tried to compile. Tons of
error messages. Then to exclude any mistakes I have made I tried to
recompile the source "as is" without any luck, same errors Too many to
include here...

Have anyone compiled wu-ftpd on an alpha with redhat linux? Any tips
and/or special considerations?? Could there be some other package
missing? It comes so far as building the binaries but as I have all
these errors I do not trust them...

TIA!

/Per


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 11:30:09 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA26969;
	Tue, 18 Nov 1997 11:25:48 -0600 (CST)
Received: from titan.iingen.unam.mx (titan.iingen.unam.mx [132.248.156.245])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id LAA26874
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 11:24:27 -0600 (CST)
Received: by titan.iingen.unam.mx (950911.SGI.8.6.12.PATCH825/940406.SGI)
	 id LAA10035; Tue, 18 Nov 1997 11:31:33 -0800
Message-Id: <Pine.SGI.3.91.971118113127.9914B-100000@titan.iingen.unam.mx>
Date: Tue, 18 Nov 1997 11:31:32 -0800 (PST)
Reply-To: edgar@titan.iingen.unam.mx
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Edgar Galicia Barraza <edgar@titan.iingen.unam.mx>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: Problem whith wu-ftpd....
In-Reply-To: <199711180209.SAA14692@titan.iingen.unam.mx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



On Mon, 17 Nov 1997, Edgar Galicia Barraza wrote:

> 
> 
>   Hi All,
> 
> 
>     Intall WU-ftpd 2.4 in a machine with Solaris 2.5.1 but send the 
>     follow message:
> 
> 
>      ftpd[1330]: sleeping: fcntl lock of pid file failed: Resource temporarily unava
> ilable
> 
> 
>    thansko fao all.
> 
> 
>     Edgar Galicia Barrza 
>   edgar@titan.iingen.unam.mx
> 

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 13:54:30 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA08627;
	Tue, 18 Nov 1997 13:51:00 -0600 (CST)
Received: from kodakr.kodak.com (kodakr.kodak.com [192.232.119.69])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id NAA08737
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 13:46:22 -0600 (CST)
Received: from mail.rl.kodak.com by kodakr.kodak.com with SMTP id AA13385
  (5.67b/IDA-1.5 for <wu-ftpd@wugate.wustl.edu>); Tue, 18 Nov 1997 14:43:43 -0500
Received: from grandpa.rl.kodak.com by mail.rl.kodak.com (8.8.3/1.1.10.5/17Jan97-0515PM)
	id OAA19904; Tue, 18 Nov 1997 14:58:49 -0500 (EST)
Received: by grandpa.rl.kodak.com (SMI-8.6/SMI-SVR4)
	id OAA00041; Tue, 18 Nov 1997 14:44:00 -0500
Message-Id: <199711181944.OAA00041@grandpa.rl.kodak.com>
Date: Tue, 18 Nov 1997 14:44:00 -0500
Reply-To: dcox@grandpa.rl.kodak.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: dcox@grandpa.rl.kodak.com (Don Cox)
To: wu-ftpd@wugate.wustl.edu
Subject: Too many args for ftpaccess
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

wu-ftpd version: Beta-15
OS: HPUX 10.20

Problem: I have about 100 groups under guestgroup in ftpaccess (with more coming).
I am getting an error stating that there are >49 args for guestgroup in ftpaccess.
Is there a way I can increase this number to about 500?

TIA.


 Don Cox   mailto:dcox@kodak.com   <><
 Phone: (716) 588-4415, KMX: 258-4415
 Pager: (800) SKY-8888, PIN 1989961
 FAX:   (716) 722-3885
 Webpage: http://www.kodak.com

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 15:29:31 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA20325;
	Tue, 18 Nov 1997 15:25:42 -0600 (CST)
Received: from titan.iingen.unam.mx (titan.iingen.unam.mx [132.248.156.245])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA13066
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 15:19:37 -0600 (CST)
Received: by titan.iingen.unam.mx (950911.SGI.8.6.12.PATCH825/940406.SGI)
	 id PAA15869; Tue, 18 Nov 1997 15:26:57 -0800
Message-Id: <Pine.SGI.3.91.971118152652.15779B-100000@titan.iingen.unam.mx>
Date: Tue, 18 Nov 1997 15:26:57 -0800 (PST)
Reply-To: edgar@titan.iingen.unam.mx
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Edgar Galicia Barraza <edgar@titan.iingen.unam.mx>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: Problem whith wu-ftpd....
In-Reply-To: <Pine.SGI.3.91.971118113127.9914B-100000@titan.iingen.unam.mx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN



On Tue, 18 Nov 1997, Edgar Galicia Barraza wrote:

> 
> 
> On Mon, 17 Nov 1997, Edgar Galicia Barraza wrote:
> 
> > 
> > 
> >   Hi All,
> > 
> > 
> >     Intall WU-ftpd 2.4 in a machine with Solaris 2.5.1 but send the 
> >     follow message:
> > 
> > 
> >      ftpd[1330]: sleeping: fcntl lock of pid file failed: Resource temporarily unava
> > ilable
> > 
> > 
> >    thansko fao all.
> > 
> > 
> >     Edgar Galicia Barrza 
> >   edgar@titan.iingen.unam.mx
> > 
> 

From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 18 22:35:14 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id WAA02609;
	Tue, 18 Nov 1997 22:32:12 -0600 (CST)
Received: from inorganic5.fdt.net (inorganic5.fdt.net [205.229.48.42])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA03071
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 22:30:35 -0600 (CST)
Received: from localhost (jlewis@localhost)
	by inorganic5.fdt.net  with SMTP id XAA11526
	for <wu-ftpd@wugate.wustl.edu>; Tue, 18 Nov 1997 23:30:27 -0500
Message-Id: <Pine.LNX.3.95.971118232324.600m-100000@inorganic5.fdt.net>
Date: Tue, 18 Nov 1997 23:30:25 -0500 (EST)
Reply-To: jlewis@inorganic5.fdt.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: wu-ftpd@wugate.wustl.edu
Subject: anti-hang patch and more (fwd)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-To-Stop-Spam-See: http://inorganic5.fdt.net/~jlewis/spam.html
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'm forwarding this back to the list since I've had several requests for
the patch recently.  This is against beta14, but will likely apply to 15
without much trouble.

I didn't get much in the way of feedback on this.  All I know is that I've
not seen an ftp session hang during a transfer since making this patch,
and nobody's complained about FTP being broken.

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____

---------- Forwarded message ----------
Date: Sun, 24 Aug 1997 03:33:52 -0400 (EDT)
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: wu-ftpd@wugate.wustl.edu
Subject: anti-hang patch and more

This patch includes the anti-hang patch I posted about a few days ago.  It's
a slightly improved version of what I've been using the past month, so its
actually only very lightly tested...the price of progress.  Looking at
strace output of ascii mode transfers was scarey the way I'd originally done
it...an alarm() after every byte, only it was really just lots and lots of
alarm()s due to stdio buffering.  I've been using -z240.

Perhaps all the new alarm() calls should be replaced with if (zap_xfer_time)
alarm()...or zap_xfer_time should default to non-zero...I don't know.  I'm
open to suggestions.

There are also some changes to syslog's that log the result of ident as well
as remote host name.

Also, I think, a real bug fix, as the possible definition of USE_RUN had no
meaning.


diff -ruN wu-ftpd-2.4.2-beta-14/src/authenticate.h wu-ftpd-2.4.2-beta-14-fdt/src/authenticate.h
--- wu-ftpd-2.4.2-beta-14/src/authenticate.h	Fri Apr  1 14:03:39 1994
+++ wu-ftpd-2.4.2-beta-14-fdt/src/authenticate.h	Sat Aug 23 00:48:57 1997
@@ -1,7 +1,7 @@
 /* When of the supported authentication methods the ftp server will attempt
  * to use.  Define as 1 to enable, 0 to disable. */
 
-#define USE_A_RFC931    0               /* Use RFC931-style authentication */
+#define USE_A_RFC931    1               /* Use RFC931-style authentication */
 
 /* Bitmasks used to identify authentication methods that returned a result */
 #define A_RFC931        1 << 0;         /* RFC931 */
diff -ruN wu-ftpd-2.4.2-beta-14/src/config/config.lnx wu-ftpd-2.4.2-beta-14-fdt/src/config/config.lnx
--- wu-ftpd-2.4.2-beta-14/src/config/config.lnx	Mon Aug 11 23:43:30 1997
+++ wu-ftpd-2.4.2-beta-14-fdt/src/config/config.lnx	Mon Aug 18 15:01:35 1997
@@ -27,7 +27,7 @@
 #define OVERWRITE
 #undef  REGEX
 #define SPT_TYPE SPT_REUSEARGV
-#undef  SHADOW_PASSWORD
+#define SHADOW_PASSWORD
 #define UPLOAD
 #undef  USG
 #define SVR4
@@ -35,10 +35,10 @@
 #define HAVE_SYS_VFS
 #define HAVE_SYMLINK
 #define UTMAXTYPE
-#define USE_ETC
+#define USE_ETC_FTPD
 #define USE_LOG
 #define USE_VAR
-#define USE_RUN
+#define USE_VAR_RUN
 #define VIRTUAL
 #define NEED_SIGFIX
 
diff -ruN wu-ftpd-2.4.2-beta-14/src/ftpd.c wu-ftpd-2.4.2-beta-14-fdt/src/ftpd.c
--- wu-ftpd-2.4.2-beta-14/src/ftpd.c	Mon Aug 11 23:43:08 1997
+++ wu-ftpd-2.4.2-beta-14-fdt/src/ftpd.c	Sun Aug 24 03:01:37 1997
@@ -232,7 +232,9 @@
 int timeout = 900;              /* timeout after 15 minutes of inactivity */
 int maxtimeout = 7200;          /* don't allow idle time to be set beyond 2
                                  * hours */
-
+int zap_xfer_time = 0;		/* timeout after which an xfer is aborted
+				   by killing the session */
+				   
 /* previously defaulted to 1, and -l or -L set them to 1, so that there was
    no way to turn them *off*!  Changed so that the manpage reflects common
    sense.  -L is way noisy; -l we'll change to be "just right".  _H*/
@@ -450,7 +452,7 @@
         envp++;
     LastArgv = envp[-1] + strlen(envp[-1]);
 
-    while ((c = getopt(argc, argv, ":aAvdlLiot:T:u:")) != -1) {
+    while ((c = getopt(argc, argv, ":aAvdlLiot:T:u:z:")) != -1) {
         switch (c) {
 
         case 'a':
@@ -509,7 +511,13 @@
                     defumask = val;
                 break;
             }
-
+            
+	case 'z':
+	    {
+	        zap_xfer_time = atoi(optarg);
+	        break;
+	    }
+	    
         case ':':
             syslog(LOG_ERR, "option -%c requires an argument", optopt);
             break;
@@ -1662,16 +1670,16 @@
                     sizeof(": anonymous/")), passwd);
         setproctitle("%s", proctitle);
         if (logging)
-            syslog(LOG_INFO, "ANONYMOUS FTP LOGIN FROM %s [%s], %s",
-                   remotehost, remoteaddr, passwd);
+            syslog(LOG_INFO, "ANONYMOUS FTP LOGIN FROM %s@%s [%s], %s",
+                   authuser, remotehost, remoteaddr, passwd);
     } else {
         reply(230, "User %s logged in.%s", pw->pw_name, guest ?
               "  Access restrictions apply." : "");
         sprintf(proctitle, "%s: %s", remotehost, pw->pw_name);
         setproctitle(proctitle);
         if (logging)
-            syslog(LOG_INFO, "FTP LOGIN FROM %s [%s], %s",
-                   remotehost, remoteaddr, pw->pw_name);
+            syslog(LOG_INFO, "FTP LOGIN FROM %s@%s [%s], %s",
+                   authuser, remotehost, remoteaddr, pw->pw_name);
 /* H* mod: if non-anonymous user, copy it to "authuser" so everyone can
    see it, since whoever he was @foreign-host is now largely irrelevant. */
 	strcpy (authuser, pw->pw_name);
@@ -2413,8 +2421,10 @@
     switch (type) {
 
     case TYPE_A:
+        alarm(zap_xfer_time);
         while ((c = getc(instr)) != EOF) {
-            byte_count++;
+            if (++byte_count % 4096 == 0)
+            	alarm(zap_xfer_time);
             if (c == '\n') {
                 if (ferror(outstr))
                     goto data_err;
@@ -2422,6 +2432,7 @@
             }
             (void) putc(c, outstr);
         }
+        alarm(0);
         fflush(outstr);
         transflag = 0;
         if (ferror(instr))
@@ -2440,20 +2451,26 @@
         }
         netfd = fileno(outstr);
         filefd = fileno(instr);
+        alarm(zap_xfer_time);
 /* Debian fix: this seems gratuitous somehow, testing ... XXX: */
 #ifdef bogus__linux__
 	while ((cnt = read(filefd, buf, (u_int)blksize)) > 0)
 	{
-	int outcnt=0, newcnt=0;
-	while ((outcnt=write(netfd, buf+newcnt, cnt-newcnt))!= cnt-newcnt)
+	    int outcnt=0, newcnt=0;
+	    alarm(zap_xfer_time);
+	    while ((outcnt=write(netfd, buf+newcnt, cnt-newcnt))!= cnt-newcnt)
 		newcnt+=outcnt;
-	byte_count += cnt;				
+	    byte_count += cnt;				
 	}
 #else
         while ((cnt = read(filefd, buf, (u_int) blksize)) > 0 &&
                write(netfd, buf, cnt) == cnt)
+        {   
+            alarm(zap_xfer_time);
             byte_count += cnt;
+        }
 #endif
+        alarm(0);
         transflag = 0;
         (void) free(buf);
         if (cnt != 0) {
@@ -2471,6 +2488,7 @@
 
   data_err:
     transflag = 0;
+    alarm(0);
     perror_reply(426, "Data connection");
     return;
 
@@ -2507,11 +2525,14 @@
 
     case TYPE_I:
     case TYPE_L:
+        alarm(zap_xfer_time);
         while ((cnt = read(fileno(instr), buf, sizeof buf)) > 0) {
+            alarm(zap_xfer_time);
             if (write(fileno(outstr), buf, cnt) != cnt)
                 goto file_err;
             byte_count += cnt;
         }
+        alarm(0);
         if (cnt < 0)
             goto data_err;
         transflag = 0;
@@ -2523,8 +2544,10 @@
         return (-1);
 
     case TYPE_A:
+        alarm(zap_xfer_time);
         while ((c = getc(instr)) != EOF) {
-            byte_count++;
+            if (++byte_count % 4096 == 0)
+            	alarm(zap_xfer_time);
             if (c == '\n')
                 bare_lfs++;
             while (c == '\r') {
@@ -2539,6 +2562,7 @@
             (void) putc(c, outstr);
           contin2:;
         }
+        alarm(0);
         fflush(outstr);
         if (ferror(instr))
             goto data_err;
@@ -2558,11 +2582,13 @@
 
   data_err:
     transflag = 0;
+    alarm(0);
     perror_reply(426, "Data Connection");
     return (-1);
 
   file_err:
     transflag = 0;
+    alarm(0);
     perror_reply(452, "Error writing file");
     return (-1);
 }
diff -ruN wu-ftpd-2.4.2-beta-14/src/pathnames.h wu-ftpd-2.4.2-beta-14-fdt/src/pathnames.h
--- wu-ftpd-2.4.2-beta-14/src/pathnames.h	Mon Aug 11 04:04:20 1997
+++ wu-ftpd-2.4.2-beta-14-fdt/src/pathnames.h	Mon Aug 18 15:01:38 1997
@@ -56,7 +56,7 @@
 #ifdef USE_PID
 #define _PATH_PIDNAMES  "/var/pid/ftp.pids-%s"
 #else
-#ifdef VAR_RUN
+#ifdef USE_VAR_RUN
 #define _PATH_PIDNAMES  "/var/run/ftp.pids-%s"
 #else
 #define _PATH_PIDNAMES  "/var/adm/ftp.pids-%s"



------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 02:02:59 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id BAA27022;
	Wed, 19 Nov 1997 01:58:43 -0600 (CST)
Received: from maltms1.data.telia.se (maltms1.data.telia.se [131.116.41.116])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id BAA20308
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 01:55:01 -0600 (CST)
Received: from  by maltms1.data.telia.se with SMTP
	(1.37.109.14/16.2) id AA058195700; Wed, 19 Nov 1997 08:48:20 +0100
Message-Id: <H00003ca02a20558@MHS>
Date: Wed, 19 Nov 97 08:49:32 +0100
Reply-To: Per.E.Berger@telia.se
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Per.E.Berger@telia.se
To: wu-ftpd@wugate.wustl.edu
Subject: Compiling on alpha
In-Reply-To: <H00003ca02a1a698@MHS>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; name="Meddelandetext"
Content-Transfer-Encoding: 7bit
X-Openmail-Hops: 2
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> Hi!
> 
> I have wu-ftpd 2.4.2b15 running under redhat linux 4.2 on an alpha
> server. I used the rpm version when I installed the server. No
> problems...
> 
> Now I want to make a few changes to the source and now it gets
> serious...
> 
> I grabbed the source-rpm, made my changes and tried to compile. Tons
of
> error messages. Then to exclude any mistakes I have made I tried to
> recompile the source "as is" without any luck, same errors Too many to
> include here...
> 
> Have anyone compiled wu-ftpd on an alpha with redhat linux? Any tips
> and/or special considerations?? Could there be some other package
> missing? It comes so far as building the binaries but as I have all
> these errors I do not trust them...
> 
> TIA!
> 
> /Per
> 

I want to add that after some research it seems that the problem is in
glibc (I have the versions of glibc and glibc-devel that comes with
redhat 4.2 installed);among other errors it complains about
/usr/include/sys/param.h, problems with "getsockname" etc... What to
do???

/Per


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 05:36:01 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id FAA09904;
	Wed, 19 Nov 1997 05:33:28 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id FAA09538
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 05:27:18 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21]) by proxy.privat.wmo.de (8.8.6/8.6.9) with SMTP id LAA00232 for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 11:37:39 +0100
Message-Id: <Pine.LNX.3.91.971119112938.32756A-100000@proxy.privat.wmo.de>
Date: Wed, 19 Nov 1997 11:37:39 +0100 (MET)
Reply-To: malla@wmo.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Malla, Suman" <malla@wmo.de>
To: WUSTL ListProc <wu-ftpd@wugate.wustl.edu>
Subject: strange things...
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: malla@proxy.privat.wmo.de
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


Hello all,

OS: Red Hat 4.2
WU-ftpd version: wu-ftpd-2.4.2b15-1

When I originate the ftp session from Sun Solaris machines to my red hat
with newly installed wu-ftpd and supply "ls" command, the wu-ftpd shows me
the list of filenames. But, if I do ftp from other machines, the wu-ftpd
does not show the list of files. Any idea? I think some lib files (which 
need to put under ~ftp/lib/) are missing. Will someone pls send me a list 
of files that should be kept under ~ftp/lib/?


TIA.

Rgds,
Suman Malla 



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 06:31:01 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id GAA12825;
	Wed, 19 Nov 1997 06:23:45 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id GAA13227
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 06:22:36 -0600 (CST)
Received: from proxy.privat.wmo.de (proxy.privat.wmo.de [195.145.66.21]) by proxy.privat.wmo.de (8.8.6/8.6.9) with SMTP id MAA01502; Wed, 19 Nov 1997 12:32:31 +0100
Message-Id: <Pine.LNX.3.91.971119122447.32756E-100000@proxy.privat.wmo.de>
Date: Wed, 19 Nov 1997 12:32:30 +0100 (MET)
Reply-To: malla@wmo.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Malla, Suman" <malla@wmo.de>
To: "H.W.K.Robers" <H.W.K.Robers@dsc.tudelft.nl>
Cc: WUSTL ListProc <wu-ftpd@wugate.wustl.edu>
Subject: Re: strange things... 
In-Reply-To: <199711191153.MAA21132@dsc.tudelft.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: malla@proxy.privat.wmo.de
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


On Wed, 19 Nov 1997, H.W.K.Robers wrote:

> > 
> > Hello all,
> > 
> > OS: Red Hat 4.2
> > WU-ftpd version: wu-ftpd-2.4.2b15-1
> > 
> > When I originate the ftp session from Sun Solaris machines to my red hat
> > with newly installed wu-ftpd and supply "ls" command, the wu-ftpd shows me
> > the list of filenames. But, if I do ftp from other machines, the wu-ftpd
> > does not show the list of files. Any idea? I think some lib files (which 
> > need to put under ~ftp/lib/) are missing. Will someone pls send me a list 
> > of files that should be kept under ~ftp/lib/?
> 
> /home/ftp/lib$ ll
> total 774
> drwxr-xr-x   2 root     root         1024 Jun 27  1996 .
> drwxr-xr-x   8 root     root         1024 Jun 23 13:01 ..
> -rwxr-xr-x   1 root     root        21367 Feb 26  1996 ld-linux.so.1
> -rwxr-xr-x   1 root     root        21367 Feb 26  1996 ld-linux.so.1.7.14
> -rwxr-xr-x   1 root     root        24580 Feb 26  1996 ld.so
> -rwxr-xr-x   1 root     root        24580 Feb 26  1996 ld.so.1.7.14
> lrwxrwxrwx   1 root     root           14 Jun 27  1996 libc.so.5 -> libc.so.5.2.18
> -rwxrwxr-x   1 root     root       675187 Feb 26  1996 libc.so.5.2.18
> lrwxrwxrwx   1 root     root           19 Jun 27  1996 libtermcap.so.2 -> libtermcap.so.2.0.5
> -rwxrwxr-x   1 bin      bin         11391 Feb 26  1996 libtermcap.so.2.0.5

Except libc.so.5.2.18 (I have libc.so.5.2.12), I have copied all the 
files under ~ftp/lib. But, still it doesn't show the list of files.
The list of files under ~ftp/

----------
bin:
total 52
d--x--x--x   2 root     root         1024 Nov 18 13:13 .
drwxr-xr-x  12 root     root         1024 Nov 19 14:22 ..
---x--x--x   2 root     root        49432 Nov 18 13:13 ls

etc:
total 4
d--x--x--x   2 root     root         1024 Nov 18 17:21 .
drwxr-xr-x  12 root     root         1024 Nov 19 14:22 ..
-rw-r--r--   1 root     root           32 Nov 18 17:21 group
-rw-r--r--   1 root     root           64 Nov 18 13:21 passwd

lib:
total 805
drwxrwxr-x   2 root     root         1024 Nov 19 14:16 .
drwxr-xr-x  12 root     root         1024 Nov 19 14:22 ..
-rwxr-xr-x   1 root     root        21367 Nov 19 14:13 ld-linux.so.1
-rwxr-xr-x   1 root     root        21367 Nov 19 14:13 ld-linux.so.1.7.14
-rwxr-xr-x   1 root     root        24580 Nov 19 14:14 ld.so
-rwxr-xr-x   1 root     root        24580 Nov 18 16:33 ld.so.1.7.14
lrwxrwxrwx   1 root     root           14 Nov 19 14:15 lib.so.5 -> libc.so.5.3.12
-rwxr-xr-x   1 root     root       706960 Nov 18 16:34 libc.so.5.3.12
lrwxrwxrwx   1 root     root           19 Nov 19 14:16 libtermcap.so.2 -> libtermcap.so.2.0.5
-rwxr-xr-x   1 root     root        11419 Nov 19 14:15 libtermcap.so.2.0.5

msg:
total 3
d--x--x--x   2 root     root         1024 Nov 18 16:43 .
drwxr-xr-x  12 root     root         1024 Nov 19 14:22 ..
-rw-r--r--   1 root     root           26 Nov 18 16:43 .welcome.msg

test:
total 16
drwxrwxr-x   4 test     test         1024 Nov 18 15:20 .
drwxr-xr-x  12 root     root         1024 Nov 19 14:22 ..
-rw-r--r--   1 test     test         3785 Aug 23  1996 .Xdefaults
-rw-r--r--   1 test     test           24 Jul 14  1994 .bash_logout
-rw-r--r--   1 test     test          220 Aug 23  1995 .bash_profile
-rw-r--r--   1 test     test          124 Aug 23  1995 .bashrc
drwxr-xr-x   2 test     test         1024 Nov 10 23:18 .xfm
drwxrwxr-x   2 test     test         1024 Nov 18 15:20 1
-rw-r--r--   1 test     test         4736 Nov 18 15:17 j1

where, test is a test account that I am using to check "ls" command. 

TIA.

Rgds,
Suman Malla

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 09:04:01 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA23828;
	Wed, 19 Nov 1997 08:59:04 -0600 (CST)
Received: from ns1.cbu.skyinet.net ([208.142.164.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA25458
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 08:53:52 -0600 (CST)
Received: from skyinet.net (pc03.cbu.skyinet.net [208.142.164.103])
	by ns1.cbu.skyinet.net (8.8.5/8.8.5) with ESMTP id WAA31016;
	Wed, 19 Nov 1997 22:59:35 +0800
Message-Id: <3472FE82.498D766@skyinet.net>
Date: Wed, 19 Nov 1997 22:58:10 +0800
Reply-To: vernie@skyinet.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Vernie T. Gloria" <vernie@skyinet.net>
To: malla@wmo.de, WU-FTP discussion <wu-ftpd@wugate.wustl.edu>
Subject: Re: strange things...
References: <Pine.LNX.3.91.971119112938.32756A-100000@proxy.privat.wmo.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (Win95; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Malla, Suman wrote:
> 
> Hello all,
> 
> OS: Red Hat 4.2
> WU-ftpd version: wu-ftpd-2.4.2b15-1
> 
> When I originate the ftp session from Sun Solaris machines to my red hat
> with newly installed wu-ftpd and supply "ls" command, the wu-ftpd shows me
> the list of filenames. But, if I do ftp from other machines, the wu-ftpd
> does not show the list of files. Any idea? I think some lib files (which
> need to put under ~ftp/lib/) are missing. Will someone pls send me a list
> of files that should be kept under ~ftp/lib/?
> 
> TIA.
> 
> Rgds,
> Suman Malla

Here's a list of files on our ~/ftp/lib directory

-rwxr-xr-x   1 root     root        19704 Mar  4  1997 ld-linux.so.1
-rwxr-xr-x   1 root     root        19704 Mar  4  1997
ld-linux.so.1.7.14
-rwxr-xr-x   1 root     root        24576 Mar  4  1997 ld.so
-rwxr-xr-x   1 root     root        24576 Mar  4  1997 ld.so.1.7.14
-rwxr-xr-x   1 root     root       644036 Nov 17 00:04 libc.so.5
-rwxr-xr-x   1 root     root       644036 Mar  4  1997 libc.so.5.3.12

It works on our side...:)

-- 
Vernie T. Gloria

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 09:12:23 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id JAA20502;
	Wed, 19 Nov 1997 09:09:14 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA25527
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 08:57:42 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id IAA21445;
	Wed, 19 Nov 1997 08:57:41 -0600
Message-Id: <Pine.LNX.3.96.971119085547.20861C-100000@ns1.fni.com>
Date: Wed, 19 Nov 1997 08:57:41 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: "Malla, Suman" <malla@wmo.de>
Cc: WUSTL ListProc <wu-ftpd@wugate.wustl.edu>
Subject: Re: strange things...
In-Reply-To: <Pine.LNX.3.91.971119112938.32756A-100000@proxy.privat.wmo.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


The problem is the external 'ls'.  When any command line options are
given, the external 'ls' is called, and it must be set up correctly. 
The guest howto and FAQ below will help. 

   -- Michael

On Wed, 19 Nov 1997, Malla, Suman wrote:

> When I originate the ftp session from Sun Solaris machines to my red hat
> with newly installed wu-ftpd and supply "ls" command, the wu-ftpd shows me
> the list of filenames. But, if I do ftp from other machines, the wu-ftpd
> does not show the list of files. Any idea? I think some lib files (which 
> need to put under ~ftp/lib/) are missing. Will someone pls send me a list 
> of files that should be kept under ~ftp/lib/?


This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

There are additional security references in the above docs.


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 21:56:23 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id VAA15848;
	Wed, 19 Nov 1997 21:53:05 -0600 (CST)
Received: from ns1.hiper.net (ns1.hiper.net [207.137.172.11])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id VAA13701
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 21:51:56 -0600 (CST)
Received: from ntrkcasa (pool35.hiper.net [207.137.172.35])
	by ns1.hiper.net (8.8.5/8.8.5) with SMTP id UAA19681
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 20:14:18 GMT
Message-Id: <3.0.5.32.19971119195117.00ac2880@ccsales.com>
Date: Wed, 19 Nov 1997 19:51:17 -0800
Reply-To: randyk@ccsales.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Randy A. Katz" <randyk@ccsales.com>
To: wu-ftpd@wugate.wustl.edu
Subject: BUG??? WU!
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: randyk@ccsales.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

This posted before with only one response. 


 Hello,
 
 I tried to find out how this hacker is doing it on an ISP list and they 
 said I was a hacker...HELP!!!
 
 The hacker ftp's into our server as a valid user (we will cancel him as 
 soon as we know how to keep him out). Hacker copies /etc/master.passwd to 
 his home directory. Hacker modified master.passwd. Hacker copies it back 
 to /etc/master.passwd.
 
 How is he doing this? Is this a wu-ftpd bug?

Thanx,
Randy Katz


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 22:21:26 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id WAA19078;
	Wed, 19 Nov 1997 22:17:40 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA14322
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 22:12:41 -0600 (CST)
Message-Id: <199711200413.WAA10667@landfield.com>
Date: Wed, 19 Nov 1997 22:13:28 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: randyk@ccsales.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <3.0.5.32.19971119195117.00ac2880@ccsales.com> from "Randy A. Katz" at Nov 19, 97 07:51:17 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

#  I tried to find out how this hacker is doing it on an ISP list and they 
#  said I was a hacker...HELP!!!
#  
#  The hacker ftp's into our server as a valid user (we will cancel him as 
#  soon as we know how to keep him out). Hacker copies /etc/master.passwd to 
#  his home directory. Hacker modified master.passwd. Hacker copies it back 
#  to /etc/master.passwd.
#  
#  How is he doing this? Is this a wu-ftpd bug?

Randy,
	Put like that I can easily see why someone mistook you for a person 
simply trolling for information. There are just too many of those types 
around today... sigh...

OK. Need more information before I or anyone here can be of help to you.
The following questions need to be answered.  I suspect that you should 
have no problem answering them here.  The more minds the better. And on
top of that it's an education for us all. You can be pretty generic and 
still give us the background we need...

    1. What type of machine are you running this on ?

    2. What version of the operating system is running on that machine ?

    3. What version of the wu-ftpd software is being used ?

    4. Are you sure that it is ftp that this person is coming 
       through (and why) ?

    5. Does the server in question allow anonymous ftp ?

    6. What steps have been taken to prevent this person that failed 
       to stop them.

    7. Have you been able to watch this happen and do you have the log
       entries ? Are you logging all commands or simply xfers ?

This should give us a basis to start helping you defeat this slimbucket...
And that's before we setup 'noretrieve passwd'.

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 22:22:10 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id WAA18467;
	Wed, 19 Nov 1997 22:18:44 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA18513
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 22:13:56 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id WAA10507;
	Wed, 19 Nov 1997 22:14:05 -0600
Message-Id: <Pine.LNX.3.96.971119220555.9576B-100000@ns1.fni.com>
Date: Wed, 19 Nov 1997 22:14:05 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: "Randy A. Katz" <randyk@ccsales.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <3.0.5.32.19971119195117.00ac2880@ccsales.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 19 Nov 1997, Randy A. Katz wrote:

>  The hacker ftp's into our server as a valid user (we will cancel him as 
>  soon as we know how to keep him out). Hacker copies /etc/master.passwd to 
>  his home directory. Hacker modified master.passwd. Hacker copies it back 
>  to /etc/master.passwd.

Your ftp site does not have a standard wuftpd login, so the version is
not known; did you modify the greeting? 

Almost certainly you have a misconfigured or compromised ftp server,
but without more information no one will be able to help you. 

You may wish to do more reading below.

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

   -- Michael


From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 22:52:25 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id WAA20093;
	Wed, 19 Nov 1997 22:49:18 -0600 (CST)
Received: from ns1.hiper.net (ns1.hiper.net [207.137.172.11])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA22398
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 22:46:45 -0600 (CST)
Received: from ntrkcasa (pool35.hiper.net [207.137.172.35])
	by ns1.hiper.net (8.8.5/8.8.5) with SMTP id VAA23059;
	Wed, 19 Nov 1997 21:09:05 GMT
Message-Id: <3.0.5.32.19971119204603.02dd9e20@ccsales.com>
Date: Wed, 19 Nov 1997 20:46:03 -0800
Reply-To: randyk@ccsales.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Randy A. Katz" <randyk@ccsales.com>
To: Kent Landfield <kent@landfield.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <199711200413.WAA10667@landfield.com>
References: <3.0.5.32.19971119195117.00ac2880@ccsales.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: randyk@ccsales.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

>OK. Need more information before I or anyone here can be of help to you.
>The following questions need to be answered.  I suspect that you should 
>have no problem answering them here.  The more minds the better. And on
>top of that it's an education for us all. You can be pretty generic and 
>still give us the background we need...
>
>    1. What type of machine are you running this on ?
>
	Intel Pentium.

>    2. What version of the operating system is running on that machine ?
>
	FreeBSD 2.2.2 Release.

>    3. What version of the wu-ftpd software is being used ?
>
	I've tried Beta-13,14,15 he seems to get into them all with ease.

>    4. Are you sure that it is ftp that this person is coming 
>       through (and why) ?
>
	Yes. In the logs he comes in as a certain user. Then he get's
/etc/master.passwd which he shouldn't be able to (chmod 600, root/wheel).
And /etc/ is 755.

>    5. Does the server in question allow anonymous ftp ?
>
	Yes. But I even wipe out the upload directory just to see what happened
and the guy still got in.

>    6. What steps have been taken to prevent this person that failed 
>       to stop them.
>
	I reinstalled everything. Made only root, the system users and 2 other
users (mine and his). Gave him the password to his (this guy used to be a
customer and now I just want to keep him around until I get things figured
out) account and told him to go for it...it took him 2 minutes or less.

>    7. Have you been able to watch this happen and do you have the log
>       entries ? Are you logging all commands or simply xfers ?
>
	Just transfers, When I tried to get tcp_wrappers going it didn't produce a
log on the fingerd one so I didn't go on...the docs said to test it on that.

>This should give us a basis to start helping you defeat this slimbucket...
>And that's before we setup 'noretrieve passwd'.
>

Ok.

Thanx,
Randy Katz

From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 23:36:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA25758;
	Wed, 19 Nov 1997 23:33:24 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA23210
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 23:27:46 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id XAA12104;
	Wed, 19 Nov 1997 23:27:55 -0600
Message-Id: <Pine.LNX.3.96.971119232406.9576H-100000@ns1.fni.com>
Date: Wed, 19 Nov 1997 23:27:55 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: "Randy A. Katz" <randyk@ccsales.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <3.0.5.32.19971119204603.02dd9e20@ccsales.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


> >    4. Are you sure that it is ftp that this person is coming 
> >       through (and why) ?
> >
> 	Yes. In the logs he comes in as a certain user. Then he get's
> /etc/master.passwd which he shouldn't be able to (chmod 600, root/wheel).
> And /etc/ is 755.

Are you sure that the ftp login you gave him is chroot'd?  Can you
login to his account and duplicate the results? 


> >    6. What steps have been taken to prevent this person that failed 
> >       to stop them.
> >
> 	I reinstalled everything. Made only root, the system users and 2 other
> users (mine and his). Gave him the password to his (this guy used to be a
> customer and now I just want to keep him around until I get things figured
> out) account and told him to go for it...it took him 2 minutes or less.

Do you allow root to login by ftp to the box?  I would disallow that
in all cases. 

This is a different slant, but the best secure remote login tool I
know of, and the only one I use, is ssh: http://www.ssh.fi/

   -- Michael



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 19 23:42:20 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA26490;
	Wed, 19 Nov 1997 23:39:39 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA26368
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 23:34:19 -0600 (CST)
Message-Id: <199711200535.XAA11484@landfield.com>
Date: Wed, 19 Nov 1997 23:35:11 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: randyk@ccsales.com
Cc: kent@landfield.com, wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <3.0.5.32.19971119204603.02dd9e20@ccsales.com> from "Randy A. Katz" at Nov 19, 97 08:46:03 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

So we have a PC running FreeBSD 2.2.2 and the current ftpd server on the
machine is wu-ftpd beta-15 with a modified banner message.  Is this correct ?

# >    4. Are you sure that it is ftp that this person is coming 
# >       through (and why) ?
# >
# 	Yes. In the logs he comes in as a certain user. Then he get's
# /etc/master.passwd which he shouldn't be able to (chmod 600, root/wheel).
# And /etc/ is 755.

# >    5. Does the server in question allow anonymous ftp ?
# >
# 	Yes. But I even wipe out the upload directory just to see what happened
# and the guy still got in.

Not sure what you mean here... Do you mean you disabled anonymous ftp in the
passwd file ? Or just removed the anonymous ftp directory ?  Is he comming
in as a real user or as an anonymous one ?

# >    6. What steps have been taken to prevent this person that failed 
# >       to stop them.
# >
# 	I reinstalled everything. Made only root, the system users and 2 other
# users (mine and his). Gave him the password to his (this guy used to be a
# customer and now I just want to keep him around until I get things figured
# out) account and told him to go for it...it took him 2 minutes or less.

OK... Here's a _real_ dumb question... He wasn't suspicous when you reinstalled
the system ? I take it this is not a friend who has challenged you to a test
is it ?  Sorry for the dumb questions (can only go on the words above) but if 
that's the case, ask him (and then tell us so we can correct it...:)) 

More (hopefully, not so dumb) questions:

   - Does he have simply an ftp account or does he also have telnet access ?

   - Have you found any core files that were generated by wu-ftpd or an
     associated utility ?

   - Is he using gnutar at any point ?

# >    7. Have you been able to watch this happen and do you have the log
# >       entries ? Are you logging all commands or simply xfers ?
# >
# 	Just transfers, ...

Start up your server in the inetd.conf file with a "in.ftpd -la" so you can
get more info.

Put the following entries in your syslog.conf file making sure the following
are tab separated columns.

#
# FTPD Server Log Entries
#
daemon.debug                                    /var/log/daemon.log
daemon.info                                     /var/log/daemon.log
daemon.err                                      /var/log/daemon.log
daemon.notice                                   /var/log/daemon.log
daemon.warning                                  /var/log/daemon.log
daemon.warning                                  /dev/console

Restart or SIGHUP your current syslogd process and then see what more you 
can actually see.  It will show you the commands entered. (Well most I 
think...)

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 00:02:06 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA27828;
	Wed, 19 Nov 1997 23:58:17 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA28236
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 23:54:37 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id XAA12613;
	Wed, 19 Nov 1997 23:54:44 -0600
Message-Id: <Pine.LNX.3.96.971119234850.9576K-100000@ns1.fni.com>
Date: Wed, 19 Nov 1997 23:54:44 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: Kent Landfield <kent@landfield.com>
Cc: randyk@ccsales.com, wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <199711200535.XAA11484@landfield.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


I wonder if this is not either a core dump / pick the passwords out of
the dump exploit or a hole in a utility in the guest account tree that
ftp can run.  As Kent mentioned, gnu tar should not be available to a
guest account. 

   -- Michael

> # >    6. What steps have been taken to prevent this person that failed 
> # >       to stop them.
> # >
> # 	I reinstalled everything. Made only root, the system users and 2 other
> # users (mine and his). Gave him the password to his (this guy used to be a
> # customer and now I just want to keep him around until I get things figured
> # out) account and told him to go for it...it took him 2 minutes or less.
> 
> OK... Here's a _real_ dumb question... He wasn't suspicous when you reinstalled
> the system ? I take it this is not a friend who has challenged you to a test
> is it ?  Sorry for the dumb questions (can only go on the words above) but if 
> that's the case, ask him (and then tell us so we can correct it...:)) 


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 00:02:27 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA28489;
	Wed, 19 Nov 1997 23:59:40 -0600 (CST)
Received: from ns1.hiper.net (ns1.hiper.net [207.137.172.11])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA28734
	for <wu-ftpd@wugate.wustl.edu>; Wed, 19 Nov 1997 23:56:14 -0600 (CST)
Received: from ntrkcasa (pool35.hiper.net [207.137.172.35])
	by ns1.hiper.net (8.8.5/8.8.5) with SMTP id WAA27775;
	Wed, 19 Nov 1997 22:18:39 GMT
Message-Id: <3.0.5.32.19971119215535.00bf88f0@ccsales.com>
Date: Wed, 19 Nov 1997 21:55:35 -0800
Reply-To: randyk@ccsales.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Randy A. Katz" <randyk@ccsales.com>
To: mbrennen@fni.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <Pine.LNX.3.96.971119232406.9576H-100000@ns1.fni.com>
References: <3.0.5.32.19971119204603.02dd9e20@ccsales.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: randyk@ccsales.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

These double postings are really interesting...I get to read it twice...

At 11:27 PM 11/19/97 -0600, Michael Brennen wrote:
>
>> >    4. Are you sure that it is ftp that this person is coming 
>> >       through (and why) ?
>> >
>> 	Yes. In the logs he comes in as a certain user. Then he get's
>> /etc/master.passwd which he shouldn't be able to (chmod 600, root/wheel).
>> And /etc/ is 755.
>
>Are you sure that the ftp login you gave him is chroot'd?  Can you
>login to his account and duplicate the results? 
>
>
>> >    6. What steps have been taken to prevent this person that failed 
>> >       to stop them.
>> >
>> 	I reinstalled everything. Made only root, the system users and 2 other
>> users (mine and his). Gave him the password to his (this guy used to be a
>> customer and now I just want to keep him around until I get things figured
>> out) account and told him to go for it...it took him 2 minutes or less.
>
>Do you allow root to login by ftp to the box?  I would disallow that
>in all cases. 
>
>This is a different slant, but the best secure remote login tool I
>know of, and the only one I use, is ssh: http://www.ssh.fi/
>
>   -- Michael
>
>
>

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 00:34:47 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id AAA04277;
	Thu, 20 Nov 1997 00:29:53 -0600 (CST)
Received: from comback.login.net (root@comback.login.qc.ca [192.219.254.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id AAA04132
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 00:26:20 -0600 (CST)
Received: from fil (m2l5.login.net [199.84.138.157]) by comback.login.net (8.6.12/8.6.5) with SMTP id BAA13773 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 01:24:58 -0500
Message-Id: <3.0.3.32.19971120012634.0352f8f4@pophost.login.net>
Date: Thu, 20 Nov 1997 01:26:34 -0500
Reply-To: gwynp@artware.qc.ca
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Philip Gwyn <gwynp@artware.qc.ca>
To: wu-ftpd@wugate.wustl.edu
Subject: tar and compress for guest users
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: fil@pophost.login.net
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On the fly compression works for normal users, but not guest users.  This
is a FAQ, I know.  I read the FAQ, couldn't solve it.

Command : 
get web.tar.gz
The error message is :
550 bin.zip: No such file or directory.

Running RedHat Linux 2.0.30

In /etc/ftpd/ftpaccess (abridged):
class   all     real  *
class   invite  guest *
class   anon    anonymous *
[snip]
compress        yes             all invite
tar             yes             all invite
[snip]
guestgroup clients

/etc/ftpd/ftpcompress shouldn't be a problem, because it works 

ftpck 1.11 reports no errors.

The FAQ says I should look at needed libraries.  So I did.
zip, tar and gzip needed /lib/libc.so.5, it is present, along with an
updated /lib/ld.so.cache.
ls works (it also needs /lib/libc.so.5)
chroot ~user bin/zip -r t.zip bin worked fine.

Any and all help would be very much apreciated

TIA,

-Philip
-------------------------------------------------------
Philip Gwyn             http://www.interlinx.qc.ca/~fil
fil@login.net                     Internet ARTware inc.
gwynp@artware.qc.ca                         Programmeur  

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 00:53:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id AAA06299;
	Thu, 20 Nov 1997 00:50:44 -0600 (CST)
Received: from landfield.com (ns.landfield.com [208.196.145.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id AAA05140
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 00:45:46 -0600 (CST)
Message-Id: <199711200646.AAA11851@landfield.com>
Date: Thu, 20 Nov 1997 00:46:40 -0600 (CST)
Reply-To: kent@landfield.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kent Landfield <kent@landfield.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <3.0.5.32.19971119214401.00be04c0@ccsales.com> from "Randy A. Katz" at Nov 19, 97 09:44:01 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: ELM [version 2.4 PL25]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

# He's an X customer...as soon as I know how to really keep him out. He got
# access to 12 or more servers and I just need to be sure before I anger him.

I can understand that. ;) Is there are real need for him to access that 
set of systems ?  I'd slowly wall off those facilities he has no need to
access and call it a policy change... or a site re-configuration...

# He won't answer straight questions. His English isn't so good...then he
# goes Hehehehehe and it really pisses me off.

It's nice that you are trying to work this out by understanding things
but what he is doing could be quite illegal.  If I was you, while you're
trying to understand the means, document what he is doing and try to
get some proof it is him (such as someone else witnessing him agreeing
it is him).  Hard proof that will stand up in court can be difficult to
obtain but witness testimony is quite useful. (For what it's worth...)

# >   - Does he have simply an ftp account or does he also have telnet access ?
# >
# FTP and telnet.

Hmmm.  I'll bet that he has found a loophole in the interactive setup.  (In 
otherwords a hole on your system that he must have telnet access to exploit.)

Any chance of limiting him to just ftp ?

# >   - Is he using gnutar at any point ?
# >
# He could use tar (which is GNU I believe), why? Is there a problem with tar?

This is an oldy but a baddy and is for everyone to pay attention to.
-------------------------------
  Alan Cox (coxa@cableol.net) 
  Mon, 19 Aug 1996 14:09:19 +0100 
  Subject: WU.FTPD vulnerability: gnu tar possibly others

   quote site exec tar  -c -v --rsh-command=commandtorunasftp -f somebox:foo foo
 
  Gnu tar allows you to specify which binary you wish to run.
 
  Fix:
        Use a dumber tar. Also carefully evaluate any other binaries
  you have to avoid unpleasant and similar suprises.

  Better Fix:
      Disable site exec. You can give the tar benefits without site exec. See
  ftpconversions, if I'm not mistaken...

  or have no binaries in the _PATH_EXECPATH.
-------------------------------

# >Start up your server in the inetd.conf file with a "in.ftpd -la" so you can
# >get more info.
# >
# OK. Good. I'll do it. Why the [in.]ftpd? my ftpd is just
# /usr/local/libexec/ftpd, is this correct?

Oh, sorry. That is simply my configuration.  The key there is the '-la'.

# PS - These are the first straight answers I've gotten...

Hey, if there is a bug in wu-ftpd that he is getting in through at your site,
chances are there are others of us vunerable to that type of attack.  The
key here is to make sure he is not coming through wu-ftpd.  I don't mind
helping with any type of attack but especially a wu-ftpd one. ;)

Oh... Just a thought... ;) Do you have a copy of tcpdump handy ? :) A little
session watching might just be in order. :)

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent@landfield.com             http://www.landfield.com/
Email: kent@nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent@landfield.com
Search the Usenet Hypertext FAQ Archive at http://www.faqs.org/faqs/

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 01:25:22 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id BAA09154;
	Thu, 20 Nov 1997 01:22:34 -0600 (CST)
Received: from malmo.trab.se (malmo.trab.se [131.115.48.10])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id BAA07647
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 01:18:10 -0600 (CST)
Received: from linkoping.trab.se (helios.linkoping.trab.se [131.115.46.4]) by malmo.trab.se (8.7.5/TRAB-primary-2) with ESMTP id IAA29648 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 08:17:35 +0100 (MET)
Received: from helios.linkoping.trab.se (helios.linkoping.trab.se [131.115.46.4]) by linkoping.trab.se (8.8.3/TRAB-secondary-1) with SMTP id IAA15867 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 08:17:34 +0100 (MET)
Message-Id: <Roam.SIMC.2.0.6.880010254.21230.ath@helios>
Date: Thu, 20 Nov 1997 08:17:34 +0100 (MET)
Reply-To: Anders Thulin <Anders.X.Thulin@telia.se>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Anders Thulin <Anders.X.Thulin@telia.se>
To: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: "Your message with ID" <3.0.5.32.19971119204603.02dd9e20@ccsales.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


> >    5. Does the server in question allow anonymous ftp ?
> >
> 	Yes. But I even wipe out the upload directory just to see what happened
> and the guy still got in.

  I'm reading this literally -- deleting the home directory of the
account. A recent post in this list noted that standard behaviour in WU-FTP
was to use / as CWD in case the home directory was inaccessible, which
seem somewhat odd.

  There's not any problem with the user's home directory that might produce
such behaviour?

> >    7. Have you been able to watch this happen and do you have the log
> >       entries ? Are you logging all commands or simply xfers ?
> >
> 	Just transfers, When I tried to get tcp_wrappers going it didn't produce a
> log on the fingerd one so I didn't go on...the docs said to test it on that.

  Turn on command logging -- then at least you'll see what commands are being
used. That should be information enough.

  Do you get any syslog warnings or error messages from the session? (Assuming
syslog is configured so that such messages are logged.)  


Anders Thulin       Anders.X.Thulin@telia.se        013-23 55 32
Telia Engineering AB, Teknikringen 6, S-583 30 Linkoping, Sweden



From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 05:54:55 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id FAA01748;
	Thu, 20 Nov 1997 05:51:24 -0600 (CST)
Received: from gate.teledata.co.uk (root@gate-isdn.teledata.co.uk [194.152.83.193])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id FAA01145
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 05:39:26 -0600 (CST)
Received: from defcon1.prestel.net(really [193.114.49.208]) by gate.teledata.co.uk
	via rsmtp with esmtp
	id <m0xYUx7-000L9pC@gate.teledata.co.uk>
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 97 11:39:21 +0000 (GMT)
	(/\##/\ Smail3.1.30.13 #30.13 built 31-aug-95)
Message-Id: <34742311.54429F1E@prestel.net>
Date: Thu, 20 Nov 1997 11:46:25 +0000
Reply-To: webadmin@prestel.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: webadmin <webadmin@prestel.net>
To: wu-ftpd@wugate.wustl.edu
Subject: problem with permissions
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.0 [en] (Win95; I)
X-Priority: 3 (Normal)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi

I have wiftpd beta 13 installed on IRIX 6.3
I have the following lines in my ftpaccess file

upload /usr/local/web/ /iqbal/* yes www iqbal 0460 dirs
 upload /usr/local/web/ /iqbal yes www iqbal 0460 dirs

When I upload to my directory the permission are

460 and owner www.iqbal which is fine

Now if i creat a subdirectory

~iqbal/a/b/c

and place a file in sub dir a , then again the permission are fine
BUT

if I place a file in b, or c etc then the permission are

rw-r--r-- iqbal.iqbal testfile

How can i fix this, I'm not sure if its a problem with the daemon or
the  operating system.

The thing is I have another machine with IRIX 5.2 which works fine.

On the second machine which doe snot work the only difference is that I
have about 1300 users, and have installed the bigpasswd patch.

Any pointers would be appreciated

Iqbal

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 12:08:54 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA08142;
	Thu, 20 Nov 1997 12:05:15 -0600 (CST)
Received: from montana.okisemi.com (ns.okisemi.com [209.36.222.66])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA07227
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 11:59:27 -0600 (CST)
Received: (from smap@localhost) by montana.okisemi.com - id KAA19269 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 10:05:49 -0800 (PST)
Received: from shark.okisemi.com(172.17.27.21) by montana 
	id xma019264; Thu, 20 Nov 97 10:05:09 -0800
Received: from orion.osgdomain (orion [172.17.27.4]) by shark.okisemi.com - id JAA01253 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 09:55:19 -0800 (PST)
Received: from ferrari.osgdomain by orion.osgdomain (5.0/SMI-SVR4)
	id AA13258; Thu, 20 Nov 1997 09:48:09 +0800
Received: by ferrari.osgdomain (SMI-8.6/SMI-SVR4)
	id JAA01373; Thu, 20 Nov 1997 09:57:46 -0800
Message-Id: <199711201757.JAA01373@ferrari.osgdomain>
Date: Thu, 20 Nov 1997 09:57:46 -0800
Reply-To: nancy@okisemi.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: nancy@okisemi.com ( 3104 Nancy.Liu)
To: wu-ftpd@wugate.wustl.edu
Subject: Re: mail list
X-Sun-Charset: US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello,


Please remove me from the distribution list.



Thanks much,


-Nancy

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 15:57:34 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id PAA03754;
	Thu, 20 Nov 1997 15:52:59 -0600 (CST)
Received: from caraway.simmonsbank.com (root@caraway.simmonsbank.com [208.21.148.5])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id PAA02736
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 15:46:27 -0600 (CST)
Received: from ws10.simmonsbank.com (ws10.simmonsbank.com [208.21.148.10])
	by caraway.simmonsbank.com (8.8.8/8.8.8) with SMTP id QAA01606
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 16:07:08 -0600
Message-Id: <3.0.5.32.19971120150701.00831dc0@simmonsbank.com>
Date: Thu, 20 Nov 1997 15:07:01 -0600
Reply-To: nelsonb@simmonsbank.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Nelson <nelsonb@simmonsbank.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Guest FTP
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: nelsonb@simmonsbank.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi, my name is Brad Nelson and I am running a Linux system with Apache as
my web server.  I downloaded your file on Guest Howto, and I have set it up
completely. I have only one problem. When I connect to it using a ftp
program, it connects fine without a problem but I cannot view what is in
the directory.. It is like the ls command is not sending the directory
listing.  I am not sure that ls is "statically linked" or not.. Could you
please tell me how to set up my bin and my 
 lib directories again.. I don't know what you mean by "static link".

Thank You!
Brad Nelson (nelsonb@simmonsbank.com

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 18:31:43 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA23426;
	Thu, 20 Nov 1997 18:28:38 -0600 (CST)
Received: from wunet.wustl.edu (wunet.wustl.edu [128.252.120.2])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA22671
	for <wu-ftpd@mail.wustl.edu>; Thu, 20 Nov 1997 18:22:07 -0600 (CST)
Received: from ns1.eds.com by wunet.wustl.edu (PMDF V4.3-10 #26974)
 id <01IQ8QCUGRWW000T64@wunet.wustl.edu>; Thu, 20 Nov 1997 18:20:30 -0500 (CDT)
Received: from nnsa.eds.com (nnsa.eds.com [130.174.31.78])
 by ns1.eds.com (8.8.6/8.8.5) with ESMTP id TAA30879 for
 <wu-ftpd@wunet.wustl.edu>; Thu, 20 Nov 1997 19:22:03 -0500 (EST)
Received: from geronimo.inm.eds.com (geronimo.inm.eds.com [148.94.210.57])
 by nnsa.eds.com (8.8.5/8.8.5) with ESMTP id TAA32179 for
 <wu-ftpd@wunet.wustl.edu>; Thu, 20 Nov 1997 19:21:32 -0500 (EST)
Received: from BDIGGS01 (samson [148.94.35.58])
 by geronimo.inm.eds.com (8.7.5/8.7.3) with SMTP id SAA12823 for
 <wu-ftpd@wunet.wustl.edu>; Thu, 20 Nov 1997 18:20:16 -0600 (CST)
Received: by BDIGGS01 with Microsoft Mail id <01BCF5E1.1B8885F0@BDIGGS01>; Thu,
 20 Nov 1997 18:21:23 -0600
Message-Id: <01BCF5E1.1B8885F0@BDIGGS01>
Date: Thu, 20 Nov 1997 18:21:16 -0600
Reply-To: bdiggs@inm.eds.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Diggs <bdiggs@inm.eds.com>
To: "'wu-ftpd@wunet.wustl.edu'" <wu-ftpd@wunet.wustl.edu>
Subject: HELP!
MIME-version: 1.0
Content-type: text/plain; charset="us-ascii"
Content-transfer-encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Is there a way to enable a guest user to be able to see a directory listing
when they ftp in using wu-fptd?

When I login as bob with the following wu-ftpd configuration file entries,
I cannot get a listing of files.

Here are the contents of the significant configuration files:

Operating System:
Sun Solaris 2.51

Ftpaccess:
class   all   real,guest,anonymous *
guestgroup staff 

/etc/passwd:
bob:x:65536:10:User:/usr/ftp/./bob:/bin/false

/etc/shells:
/bin/false

/etc/inetd.conf:
ftp     stream  tcp     nowait  root    /usr1/ftp/etc/ftpd      ftpd -l


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 18:33:18 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA23636;
	Thu, 20 Nov 1997 18:30:31 -0600 (CST)
Received: from ns1.eds.com (ns1.eds.com [192.85.154.78])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA23122
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 18:26:30 -0600 (CST)
Received: from nnsa.eds.com (nnsa.eds.com [130.174.31.78])
	by ns1.eds.com (8.8.6/8.8.5) with ESMTP id TAA00152
	for <wu-ftpd@mail.wustl.edu>; Thu, 20 Nov 1997 19:26:30 -0500 (EST)
Received: from geronimo.inm.eds.com (geronimo.inm.eds.com [148.94.210.57])
	by nnsa.eds.com (8.8.5/8.8.5) with ESMTP id TAA31106
	for <wu-ftpd@mail.wustl.edu>; Thu, 20 Nov 1997 19:25:59 -0500 (EST)
Received: from BDIGGS01 (samson [148.94.35.58]) by geronimo.inm.eds.com (8.7.5/8.7.3) with SMTP id SAA12886 for <wu-ftpd@mail.wustl.edu>; Thu, 20 Nov 1997 18:24:43 -0600 (CST)
Received: by BDIGGS01 with Microsoft Mail
	id <01BCF5E1.BA56F900@BDIGGS01>; Thu, 20 Nov 1997 18:25:50 -0600
Message-Id: <01BCF5E1.BA56F900@BDIGGS01>
Date: Thu, 20 Nov 1997 18:25:48 -0600
Reply-To: bdiggs@inm.eds.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Brad Diggs <bdiggs@inm.eds.com>
To: "'wu-ftpd@mail.wustl.edu'" <wu-ftpd@wugate.wustl.edu>
Subject: HELP!
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

----------
Is there a way to enable a guest user to be able to see a directory listing
when they ftp in using wu-fptd?

When I login as bob with the following wu-ftpd configuration file entries,
I cannot get a listing of files.

Here are the contents of the significant configuration files:

Operating System:
Sun Solaris 2.51

Ftpaccess:
class   all   real,guest,anonymous *
guestgroup staff 

/etc/passwd:
bob:x:65536:10:User:/usr/ftp/./bob:/bin/false

/etc/shells:
/bin/false

/etc/inetd.conf:
ftp     stream  tcp     nowait  root    /usr1/ftp/etc/ftpd      ftpd -l


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 18:43:42 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id SAA24766;
	Thu, 20 Nov 1997 18:40:42 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id SAA24445
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 18:37:33 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id SAA28266;
	Thu, 20 Nov 1997 18:37:30 -0600
Message-Id: <Pine.LNX.3.96.971120183544.15660P-100000@ns1.fni.com>
Date: Thu, 20 Nov 1997 18:37:29 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: Brad Diggs <bdiggs@inm.eds.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: HELP!
In-Reply-To: <01BCF5E1.1B8885F0@BDIGGS01>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, 20 Nov 1997, Brad Diggs wrote:

> Is there a way to enable a guest user to be able to see a directory listing
> when they ftp in using wu-fptd?

The guest howto and FAQ will tell you how; see the Resource Center
also. 

This is the location for the latest wu-ftpd.  You can't see the
directory contents, but get the file anyway.  It's there.

ftp://ftp.academ.com/pub/wu-ftpd/private/wu-ftpd-2.4.2-beta-15.tar.Z

wu-ftpd FAQ:  http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
              OR
              send mail to wu-ftpd-faq@pizza.hvu.nl
              with a subject line: send faq

guest howto:  ftp://ftp.fni.com/pub/wu-ftpd/guest-howto
              OR
              send mail to "guesthowto@fni.com"
              (immediate autoresponder; subject does not matter)

wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

There are additional security references in the above docs.


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 18:53:11 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA05956;
	Thu, 20 Nov 1997 16:05:35 -0600 (CST)
Received: from mistral.wh.uni-stuttgart.de (root@mistral.wh.uni-stuttgart.de [129.69.164.87])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA05237
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 16:01:39 -0600 (CST)
Received: from deathstar (deathstar [192.168.1.2]) by mistral.wh.uni-stuttgart.de (8.7.6/8.7.3) with SMTP id XAA08783; Thu, 20 Nov 1997 23:00:53 +0100
Message-Id: <3.0.32.19971120230032.0094a3b0@mistral.wh.uni-stuttgart.de>
Date: Thu, 20 Nov 1997 23:00:58 +0100
Reply-To: dieterrf@mistral.wh.uni-stuttgart.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Ralf Dieterle <dieterrf@mistral.wh.uni-stuttgart.de>
To: nelsonb@simmonsbank.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: Guest FTP
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: dieterrf@mistral.wh.uni-stuttgart.de
X-Mailer: Windows Eudora Pro Version 3.0 (32)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello Brad,

At 15:07 20.11.97 -0600, you wrote:
>Hi, my name is Brad Nelson and I am running a Linux system with Apache as
>my web server.  I downloaded your file on Guest Howto, and I have set it up
>completely. I have only one problem. When I connect to it using a ftp
>program, it connects fine without a problem but I cannot view what is in
>the directory.. It is like the ls command is not sending the directory
>listing.  I am not sure that ls is "statically linked" or not.. Could you
>please tell me how to set up my bin and my 
> lib directories again.. I don't know what you mean by "static link".
>

you need to have the following files in the /lib directory of your guest path

-r-xr-xr-x   1 root     bin         20859 Nov 14 10:48 ld-linux.so.1*
-r-xr-xr-x   1 root     bin         20859 Nov 14 10:48 ld-linux.so.1.7.14*
-r-xr-xr-x   1 root     bin         24580 Nov 14 10:48 ld.so*
-r-xr-xr-x   1 root     bin        558615 Nov 13 00:50 libc.so.5*

Then it should work!

>Thank You!
>Brad Nelson (nelsonb@simmonsbank.com
>
Greetings

Ralf
-----------------------------------------------
If at first you don't succeed, redefine success
   dieterrf@mistral.wh.uni-stuttgart.de
   dieterrf@tick.informatik.uni-stuttgart.de
-----------------------------------------------

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 22:12:57 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id WAA11524;
	Thu, 20 Nov 1997 22:10:05 -0600 (CST)
Received: from setsuna.chibi.lionsgate.com (pc-9158.bc.rogers.wave.ca [24.113.50.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id WAA03156
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 22:08:09 -0600 (CST)
Received: from setsuna.chibi.lionsgate.com ([127.0.0.1]) by setsuna.chibi.lionsgate.com
	 with esmtp (ident chrisb using rfc1413) id m0xYkO1-0000XvC
	(Debian Smail-3.2 1996-Jul-4 #2); Thu, 20 Nov 1997 20:08:09 -0800 (PST)
Message-Id: <m0xYkO1-0000XvC@setsuna.chibi.lionsgate.com>
Date: Thu, 20 Nov 1997 20:08:08 -0800
Reply-To: chrisb@setsuna.chibi.lionsgate.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Chris Brown <chrisb@setsuna.chibi.lionsgate.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Bandwidth Extension
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I'm attempting to prepare a bandwidth control extension to wu-ftpd and I'm
wondering if anyone has any advice regarding licenses and other matters...

Anyone out there remember me from 6 months ago?  :)

Chris...

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 20 23:15:38 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id XAA17237;
	Thu, 20 Nov 1997 23:12:51 -0600 (CST)
Received: from inorganic5.fdt.net (inorganic5.fdt.net [205.229.48.42])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id XAA15809
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 23:07:50 -0600 (CST)
Received: from localhost (jlewis@localhost)
	by inorganic5.fdt.net  with SMTP id AAA27703;
	Fri, 21 Nov 1997 00:07:31 -0500
Message-Id: <Pine.LNX.3.95.971121000400.600o-100000@inorganic5.fdt.net>
Date: Fri, 21 Nov 1997 00:07:29 -0500 (EST)
Reply-To: jlewis@inorganic5.fdt.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: Ralf Dieterle <dieterrf@mistral.wh.uni-stuttgart.de>
Cc: nelsonb@simmonsbank.com, wu-ftpd@wugate.wustl.edu
Subject: Re: Guest FTP
In-Reply-To: <3.0.32.19971120230032.0094a3b0@mistral.wh.uni-stuttgart.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-To-Stop-Spam-See: http://inorganic5.fdt.net/~jlewis/spam.html
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, 20 Nov 1997, Ralf Dieterle wrote:

> you need to have the following files in the /lib directory of your guest path
> 
> -r-xr-xr-x   1 root     bin         20859 Nov 14 10:48 ld-linux.so.1*
> -r-xr-xr-x   1 root     bin         20859 Nov 14 10:48 ld-linux.so.1.7.14*
> -r-xr-xr-x   1 root     bin         24580 Nov 14 10:48 ld.so*
> -r-xr-xr-x   1 root     bin        558615 Nov 13 00:50 libc.so.5*

I was trying to setup some virtual ftp sites on a RH 4.2 box just
recently, and just having ld and libc was not enough.  I actually had to
play games with ldconfig and chroot to create a etc/ld.so.cache before ls
would work. This seems a major PITA...why not just use staticly linked ls
and friends? 

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 01:16:15 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id BAA00564;
	Fri, 21 Nov 1997 01:12:49 -0600 (CST)
Received: from bogis01.bogw.de (bogis01.bogw.de [195.30.110.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id BAA00141
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 01:09:08 -0600 (CST)
Received: from huette ([195.30.110.30]) by bogis01.bogw.de
          (Netscape Mail Server v2.02) with ESMTP id AAA27468
          for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 08:08:20 +0100
Message-Id: <3475418F.523C9420@bogw.de>
Date: Fri, 21 Nov 1997 08:08:47 +0000
Reply-To: huettemann@bogw.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: huettemann@bogw.de (Dirk Huettemann)
To: "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: [Fwd: mail list]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------D9860CD705A01D8096600801"
X-Mailer: Mozilla 4.01 [de] (WinNT; I)
X-Priority: 3 (Normal)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------D9860CD705A01D8096600801
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


--------------D9860CD705A01D8096600801
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <owner-wu-ftpd@wugate.wustl.edu>
Received: from wugate.wustl.edu ([128.252.120.1]) by bogis01.bogw.de
          (Netscape Mail Server v2.02) with ESMTP id AAA25751
          for <huettemann@bogw.de>; Thu, 20 Nov 1997 19:05:03 +0100
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id MAA08058;
	Thu, 20 Nov 1997 12:04:32 -0600 (CST)
Received: from montana.okisemi.com (ns.okisemi.com [209.36.222.66])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id LAA07227
	for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 11:59:27 -0600 (CST)
Received: (from smap@localhost) by montana.okisemi.com - id KAA19269 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 10:05:49 -0800 (PST)
Received: from shark.okisemi.com(172.17.27.21) by montana 
	id xma019264; Thu, 20 Nov 97 10:05:09 -0800
Received: from orion.osgdomain (orion [172.17.27.4]) by shark.okisemi.com - id JAA01253 for <wu-ftpd@wugate.wustl.edu>; Thu, 20 Nov 1997 09:55:19 -0800 (PST)
Received: from ferrari.osgdomain by orion.osgdomain (5.0/SMI-SVR4)
	id AA13258; Thu, 20 Nov 1997 09:48:09 +0800
Received: by ferrari.osgdomain (SMI-8.6/SMI-SVR4)
	id JAA01373; Thu, 20 Nov 1997 09:57:46 -0800
Message-Id: <199711201757.JAA01373@ferrari.osgdomain>
Date: Thu, 20 Nov 1997 09:57:46 -0800
Reply-To: nancy@okisemi.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: nancy@okisemi.com ( 3104 Nancy.Liu)
To: wu-ftpd@wugate.wustl.edu
Subject: Re: mail list
X-Sun-Charset: US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN
X-Status: 
X-IMAP-Date: 20-Nov-1997 19:05:04 +0000
X-UID: 192

Hello,


Please remove me from the distribution list.



Thanks much,


-Nancy

--------------D9860CD705A01D8096600801--


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 02:31:26 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id CAA06286;
	Fri, 21 Nov 1997 02:28:38 -0600 (CST)
Received: from xr1-gw.atlas.fr (xr1-b.atlas.fr [194.51.9.18])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id CAA05807
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 02:24:49 -0600 (CST)
Message-Id: <199711210821.JAA18830@musun95029.>
Date: Fri, 21 Nov 1997 09:21:18 +0100
Reply-To: satch@espace.aerospatiale.fr
Sender: owner-wu-ftpd@wugate.wustl.edu
From: satch@espace.aerospatiale.fr
To: wu-ftpd@wugate.wustl.edu (Non Receipt Notification Requested)
Subject: Help, remove me from the list
Content-Identifier: RFC-822:PRMD=int
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello,

I think that i tried everything i could to be removed from the distribution 
list.


Please remove me from the distribution list.



Thanks much,

jean-pierre.margeot@espace.aerospatiale.fr

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 07:42:49 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA30674;
	Fri, 21 Nov 1997 07:39:33 -0600 (CST)
Received: from internet.pncbank.com ([170.201.1.45])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id HAA29669
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 07:28:34 -0600 (CST)
Received: from vwall1.pncbank.com (vwall1.pncbank.com [170.201.2.20]) by internet.pncbank.com (AIX4.2/UCB 8.7/1.0.0) with SMTP id IAA20416 for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 08:28:32 -0500 (EST)
Received: from its.pncbank.com by vwall1.pncbank.com (SMI-8.6/8.6)
	id IAA27090; Fri, 21 Nov 1997 08:21:52 -0500
Received: from its.pncbank.com by its.pncbank.com (SMI-8.6/SMI-SVR4)
	id IAA20603; Fri, 21 Nov 1997 08:28:49 -0500
Message-Id: <34758DFE.D853A064@its.pncbank.com>
Date: Fri, 21 Nov 1997 08:34:55 -0500
Reply-To: cheryl.yevak@its.pncbank.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Cheryl Yevak <cheryl.yevak@its.pncbank.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Unscribe
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (Win95; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Unscribe, moving to a new address


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 08:13:52 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA00737;
	Fri, 21 Nov 1997 08:10:46 -0600 (CST)
Received: from bogis01.bogw.de (bogis01.bogw.de [195.30.110.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id IAA32743
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 08:05:16 -0600 (CST)
Received: from huette ([195.30.110.30]) by bogis01.bogw.de
          (Netscape Mail Server v2.02) with ESMTP id AAA29191
          for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 15:04:39 +0100
Message-Id: <3475A321.1EDB7A00@bogw.de>
Date: Fri, 21 Nov 1997 15:05:05 +0000
Reply-To: huettemann@bogw.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: huettemann@bogw.de (Dirk Huettemann)
To: "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: [Fwd: Unscribe]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------FEC0D0B9C9505048A2EF83AA"
X-Mailer: Mozilla 4.01 [de] (WinNT; I)
X-Priority: 3 (Normal)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------FEC0D0B9C9505048A2EF83AA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


--------------FEC0D0B9C9505048A2EF83AA
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <owner-wu-ftpd@wugate.wustl.edu>
Received: from wugate.wustl.edu ([128.252.120.1]) by bogis01.bogw.de
          (Netscape Mail Server v2.02) with ESMTP id AAA29074
          for <huettemann@bogw.de>; Fri, 21 Nov 1997 14:37:25 +0100
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id HAA29994;
	Fri, 21 Nov 1997 07:31:38 -0600 (CST)
Received: from internet.pncbank.com ([170.201.1.45])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id HAA29669
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 07:28:34 -0600 (CST)
Received: from vwall1.pncbank.com (vwall1.pncbank.com [170.201.2.20]) by internet.pncbank.com (AIX4.2/UCB 8.7/1.0.0) with SMTP id IAA20416 for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 08:28:32 -0500 (EST)
Received: from its.pncbank.com by vwall1.pncbank.com (SMI-8.6/8.6)
	id IAA27090; Fri, 21 Nov 1997 08:21:52 -0500
Received: from its.pncbank.com by its.pncbank.com (SMI-8.6/SMI-SVR4)
	id IAA20603; Fri, 21 Nov 1997 08:28:49 -0500
Message-Id: <34758DFE.D853A064@its.pncbank.com>
Date: Fri, 21 Nov 1997 08:34:55 -0500
Reply-To: cheryl.yevak@its.pncbank.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Cheryl Yevak <cheryl.yevak@its.pncbank.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Unscribe
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (Win95; I)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN
X-Status: 
X-IMAP-Date: 21-Nov-1997 15:04:08 +0000
X-UID: 189

Unscribe, moving to a new address


--------------FEC0D0B9C9505048A2EF83AA--


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 08:57:17 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA04678;
	Fri, 21 Nov 1997 08:52:27 -0600 (CST)
Received: from mail-a.bellatlantic.com (mail-a.bellatlantic.com [198.23.18.30])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id IAA04737
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 08:51:53 -0600 (CST)
Received: from iw012807.bell-atl.com by mail-a.bellatlantic.com (SMI-8.6/SMI-SVR4)
	id JAA04204; Fri, 21 Nov 1997 09:51:23 -0500
Received: from iscorp.bell-atl.com by iw012807.bell-atl.com (SMI-8.6/SMI-SVR4)
	id JAA19632; Fri, 21 Nov 1997 09:59:57 -0500
Received: from TM210 ([141.149.62.167]) by iscorp.bell-atl.com
          (Netscape Mail Server v2.02) with SMTP id AAA23378
          for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 09:50:52 -0500
Received: by TM210 with Microsoft Mail
	id <01BCF663.01523050@TM210>; Fri, 21 Nov 1997 09:51:14 -0500
Message-Id: <01BCF663.01523050@TM210>
Date: Fri, 21 Nov 1997 09:51:08 -0500
Reply-To: Minh.Nguyen@iscorp.bellatlantic.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Minh.Nguyen@iscorp.bellatlantic.com (Minh Nguyen)
To: "wu-ftpd@wugate.wustl.edu" <wu-ftpd@wugate.wustl.edu>
Subject: Can't do a put command!
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello all:

It seem that when I log in as guest, put 
command is not working properly.  The 
command said it was successful, but
when I look at the file, the contents is 
incorrect.  I have the following configuration
in my ftpaccess for upload directory:

upload <guest-dir> *   no
upload <guest-dir> /incoming  yes <uid> <group> 0600 dirs

where <guest-dir> = home directory of guest
<uid> = guest user id 
<group> = group that guest belong to

Thanks in advance-
Minh H. Nguyen



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 17:58:38 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id QAA04187;
	Fri, 21 Nov 1997 16:37:04 -0600 (CST)
Received: from sod.off.net (pschwan@sod.off.net [207.54.131.82])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id QAA03636
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 16:32:51 -0600 (CST)
Received: from localhost (pschwan@localhost) by sod.off.net (8.8.5/8.6.9) with SMTP id RAA26270 for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 17:32:31 -0500
Message-Id: <Pine.LNX.3.96.971121171254.26061D-100000@sod.off.net>
Date: Fri, 21 Nov 1997 17:32:31 -0500 (EST)
Reply-To: pschwan@apk.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Phil Schwan <pschwan@apk.net>
To: wu-ftpd mailing list <wu-ftpd@wugate.wustl.edu>
Subject: xferstats v1.15
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: pschwan@sod.off.net
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hurrah hurrah, I'm finally finished with xferstats 1.15.  A rundown of
what's new, what's fixed, and what's planned:

Fixed in version 1.15:

* Variable sizes increased to handle the biggest of logfiles
* Several miscellaneous bugs fixed that only reared their heads on
  gigantic logfiles (and logs with entries older than 02/01/97)
* Fixed a typo that only affected debug output, but in a big way
* Using an internal replacement for getopt, to avoid some (namely Solaris)
  compatibility issues
* Fixed dotted quad recognition such that they are now correctly
  identified as unresolved.

New in version 1.15:

* Added the "Most Downloaded Files" section
* Added a corresponding parameter for specifying its output
* Added a skillion more configurable options (namely default settings) to
  config.h
* Added the highly-requested HTML output option
* Added GIF graphs to go along with the HTML output
* Domain totals are now sorted (by bytes transferred)
* Added the ability to limit the number of lines of output (on
  daily, directory, and domain sections) and added corresponding config.h
  entries for their defaults
* It accepts logfiles from stdin -- just add a single hyphen anywhere on
  the command line
* Added ncftpd logfile support

Planned for the next version:

* Jael (a small, nice webserver: http://linux.mit.edu/jael) and ftp-gw
  support.  Possibly support for other web/ftp servers, drop me a note if
  you want me to include others.
* More graphs.  If you can think of a way to work some more graphs in, let
  me know.  I don't really see, however, any other sections that really
  lend themselves to graphical output (other than hourly, of course)
* Some more adherance to the GNU coding standards.  Namely, less reliance
  on ANSI C, switching to getopt_long, variable sizes, blah blah blah.
  Some of this will be visible in the way xferstats processes command line
  arguments, some of it won't be

All versions of xferstats (except 1.10 which was unstable and never really
released) are available at ftp://fuck.off.net/xferstats

Drop me a note at pschwan@apk.net if you have a comment, suggestion,
request, gripe, bug, or whatever.

Phil

--------------------------------------------------------------------------
'The ultimate seal on any software product is not any sort of kite mark or
standards conformance certificate, it's that label that says, "Destruction
tested by Alan Cox.... Survived."' -- Clive Dolphin (3Com PDD)


From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 21 19:24:39 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with SMTP id TAA10063;
	Fri, 21 Nov 1997 19:21:52 -0600 (CST)
Received: from tecoma.mccc.edu (www.mccc.edu [198.133.170.1])
	by wugate.wustl.edu (8.8.5/8.8.5) with ESMTP id TAA18240
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 19:20:02 -0600 (CST)
Received: from tecoma (tecoma [198.133.170.1])
	by tecoma.mccc.edu (8.8.5/8.8.5) with SMTP id UAA16341
	for <wu-ftpd@wugate.wustl.edu>; Fri, 21 Nov 1997 20:20:01 -0500 (EST)
Message-Id: <Pine.SOL.3.96.971121201830.16312A-100000@tecoma>
Date: Fri, 21 Nov 1997 20:20:01 -0500 (EST)
Reply-To: pjh@mccc.edu
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Pete Holsberg <pjh@mccc.edu>
To: wu-ftpd@wugate.wustl.edu
Subject: CAn't use ftpcount/who anymore!
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: pjh@tecoma
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Suddenly, only root can use ftpcount/who. Others get

ftpcount: could not open() access file: Permission denied

What access file is it trying to open? I was pretty sure
that I had read permission on the right ones, but ...

Thanks,
Pete


From owner-wu-ftpd@wugate.wustl.edu  Tue Nov 25 21:31:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id VAA09182;
	Tue, 25 Nov 1997 21:26:52 -0600 (CST)
Received: from giga.star.net.il (jago@Giga.Star.net.il [195.8.204.11])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id VAA31906
	for <wu-ftpd@wugate.wustl.edu>; Tue, 25 Nov 1997 21:25:01 -0600 (CST)
Received: from localhost (jago@localhost)
	by giga.star.net.il (8.8.5/8.8.5) with SMTP id FAA17933
	for <wu-ftpd@mail.wustl.edu>; Wed, 26 Nov 1997 05:24:54 +0200
Message-Id: <Pine.LNX.3.93.971126050934.17602A-100000@giga.star.net.il>
Date: Wed, 26 Nov 1997 05:24:54 +0200 (IST)
Reply-To: Guy Cohen <jago@giga.star.net.il>
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Guy Cohen <jago@giga.star.net.il>
To: wu-ftpd@wugate.wustl.edu
Subject: prolems compiling
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


hello.
i'm working on a slackware 3.2 and just installes shadow passwd.
now i cant compile wu-ftpd again.
i used wu-ftpd-2.4-fixed.tar.gz
and followed the instractions at the faq.

im gettin this error :

Making ftpd.
gcc -O2 -I.. -I../support -I/usr/include/bsd -I/usr/include/netinet
-L../support -DDIRENT_ILLEGAL_ACCESS -o ftpd vers.o ftpd.o ftpcmd.o glob.o
logwtmp.o popen.o access.o extensions.o realpath.o acl.o private.o
authenticate.o conversions.o hostacc.o -lbsd -lsupport
ftpd.o: In function `dataconn':
ftpd.o(.text+0x25eb): undefined reference to `__inet_ntoa'
ftpd.o: In function `statcmd':
ftpd.o(.text+0x2d76): undefined reference to `__inet_ntoa'
ftpd.o: In function `dolog':
ftpd.o(.text+0x3591): undefined reference to `__inet_ntoa'
make: *** [ftpd] Error 1


anyone ?

thanks , guy.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The more we disagree, The more chance there is that at least
one of us is right.
jago@spice.co.il    http://giga.star.net.il/~jago




From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 26 08:38:57 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA00376;
	Wed, 26 Nov 1997 08:35:56 -0600 (CST)
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA04954
	for <wu-ftpd@wugate.wustl.edu>; Wed, 26 Nov 1997 08:30:14 -0600 (CST)
Received: from STARKILLER.MIT.EDU by MIT.EDU with SMTP
	id AA01069; Wed, 26 Nov 97 09:30:08 EST
Received: by starkiller.MIT.EDU (SMI-8.6/4.7) id JAA08673; Wed, 26 Nov 1997 09:30:07 -0500
Message-Id: <199711261430.JAA08673@starkiller.MIT.EDU>
Date: Wed, 26 Nov 1997 09:30:07 EST
Reply-To: klmitch@MIT.EDU
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Kev <klmitch@MIT.EDU>
To: sob@academ.com (Stan Barber), wu-ftpd-bugs@academ.com,
        wu-ftpd@wugate.wustl.edu, sw-support@owlman.academ.com
Subject: reply2.patch
X-Sender: klmitch@MIT.EDU
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I sent the reply patch in, then remembered that I had wanted to change the
(v)sprintf() calls to use (v)snprintf().  This patch makes that change, and
as an added bonus, changes all the printf()'s and putc()'s that I could
find to redirect through lreply(0,...) as appropriate.

------ Patch begins ------
Index: wu-ftpd/src/ftpcmd.y
diff -u wu-ftpd/src/ftpcmd.y:1.1.1.2 wu-ftpd/src/ftpcmd.y:1.2
--- wu-ftpd/src/ftpcmd.y:1.1.1.2	Mon Sep 15 21:54:05 1997
+++ wu-ftpd/src/ftpcmd.y	Tue Nov 25 13:23:17 1997
@@ -1454,20 +1454,27 @@
             columns = 1;
         lines = (NCMDS + columns - 1) / columns;
         for (i = 0; i < lines; i++) {
-            printf("   ");
+	    char line[BUFSIZ], *ptr = line;
+
+            /*printf("   ");*/
+	    strcpy(ptr, "   ");
+	    ptr += 3;
             for (j = 0; j < columns; j++) {
                 c = ctab + j * lines + i;
-                printf("%s%c", c->name,
-                    c->implemented ? ' ' : '*');
+                ptr += sprintf(ptr, "%s%c", c->name,
+			       c->implemented ? ' ' : '*');
                 if (c + lines >= &ctab[NCMDS])
                     break;
                 w = strlen(c->name) + 1;
                 while (w < width) {
-                    putc(' ',stdout);
+		    /*putc(' ',stdout);*/
+		    *(ptr++) = ' ';
                     w++;
                 }
             }
-            printf("\r\n");
+            /*printf("\r\n");*/
+	    *ptr = '\0';
+	    lreply(0, "%s", line);
         }
         (void) fflush(stdout);
         if ( (getaclentry("email", &entry)) && ARG0 )
@@ -1618,7 +1625,7 @@
     lreply(214, "The following aliases are available.");
 
     while (getaclentry("alias", &entry) && ARG0 && ARG1 != NULL)
-        printf ("   %-8s %s\r\n", ARG0, ARG1);
+        lreply (0, "   %-8s %s", ARG0, ARG1);
     (void) fflush (stdout);
 
     reply(214, "");
@@ -1630,7 +1637,7 @@
 
     lreply(214, "The cdpath is:");
     while (getaclentry("cdpath", &entry) && ARG0 != NULL)
-        printf ("  %s\r\n", ARG0);
+        lreply (0, "  %s", ARG0);
     (void) fflush (stdout);
     reply(214, "");
 }
Index: wu-ftpd/src/ftpd.c
diff -u wu-ftpd/src/ftpd.c:1.2 wu-ftpd/src/ftpd.c:1.4
--- wu-ftpd/src/ftpd.c:1.2	Fri Oct 31 16:23:31 1997
+++ wu-ftpd/src/ftpd.c	Wed Nov 26 09:00:51 1997
@@ -2554,7 +2554,7 @@
         transflag = 0;
         if (bare_lfs) {
             lreply(226, "WARNING! %d bare linefeeds received in ASCII mode", bare_lfs);
-            printf("   File may not have transferred correctly.\r\n");
+            lreply(0, "   File may not have transferred correctly.");
         }
         return (0);
     default:
@@ -2582,7 +2582,7 @@
 char *filename;
 #endif
 {
-    char line[BUFSIZ];
+    char line[BUFSIZ], *ptr;
     FILE *fin;
     int c;
 
@@ -2592,13 +2592,14 @@
         (void) snprintf(line, sizeof(line), ls_short, filename);
     fin = ftpd_popen(line, "r", 0);
     lreply(213, "status of %s:", filename);
+    /*
     while ((c = getc(fin)) != EOF) {
         if (c == '\n') {
             if (ferror(stdout)) {
                 perror_reply(421, "control connection");
                 (void) ftpd_pclose(fin);
                 dologout(1);
-                /* NOTREACHED */
+                / * NOTREACHED * /
             }
             if (ferror(fin)) {
                 perror_reply(551, filename);
@@ -2609,6 +2610,12 @@
         }
         (void) putc(c, stdout);
     }
+    */
+    while (fgets(line, sizeof(line), fin) != NULL) {
+        if ((ptr = strchr(line, '\n'))) /* clip out unnecessary newline */
+            *ptr = '\0';
+	lreply(0, "%s", line);
+    }
     (void) ftpd_pclose(fin);
     reply(213, "End of Status");
 }
@@ -2625,20 +2632,37 @@
      *p;
 
     lreply(211, "%s FTP server status:", hostname);
-    printf("     %s\r\n", version);
-    printf("     Connected to %s", remotehost);
+    lreply(0, "     %s", version);
     if (!isdigit(remotehost[0]))
-        printf(" (%s)", inet_ntoa(his_addr.sin_addr));
-    printf("\r\n");
+        lreply(0, "     Connected to %s (%s)", remotehost,
+	       inet_ntoa(his_addr.sin_addr));
+    else
+        lreply(0, "     Connected to %s", remotehost);
+
     if (logged_in) {
         if (anonymous)
-            printf("     Logged in anonymously\r\n");
+            lreply(0, "     Logged in anonymously");
         else
-            printf("     Logged in as %s\r\n", pw->pw_name);
+            lreply(0, "     Logged in as %s", pw->pw_name);
     } else if (askpasswd)
-        printf("     Waiting for password\r\n");
+        lreply(0, "     Waiting for password");
+    else
+        lreply(0, "     Waiting for user name");
+
+    if (type == TYPE_L)
+#ifdef NBBY
+        lreply(0, "     TYPE: %s %d; STRUcture: %s; transfer MODE: %s",
+	       typenames[type], NBBY, strunames[stru], modenames[mode]);
+#else
+        lreply(0, "     TYPE: %s %d; STRUcture: %s; transfer MODE: %s",
+	       typenames[type], bytesize, strunames[stru], modenames[mode]);
+#endif /* NBBY */
     else
-        printf("     Waiting for user name\r\n");
+        lreply(0, "     TYPE: %s%s%s; STRUcture: %s; transfer MODE: %s",
+	       typenames[type], (type == TYPE_A || type == TYPE_E) ?
+	       ", FORM: " : "", (type == TYPE_A || type == TYPE_E) ?
+	       formnames[form] : "", strunames[stru], modenames[mode]);
+    /*
     printf("     TYPE: %s", typenames[type]);
     if (type == TYPE_A || type == TYPE_E)
         printf(", FORM: %s", formnames[form]);
@@ -2646,12 +2670,20 @@
 #ifdef NBBY 
         printf(" %d", NBBY);
 #else
-        printf(" %d", bytesize);/* need definition! */
+        printf(" %d", bytesize);/ * need definition! * /
 #endif
     printf("; STRUcture: %s; transfer MODE: %s\r\n",
            strunames[stru], modenames[mode]);
+	   */
     if (data != -1)
-        printf("     Data connection open\r\n");
+        lreply(0, "     Data connection open");
+    else if (pdata != -1 || usedefault == 0)
+#define UC(b) (((int) b) & 0xff)
+      lreply(0, "     %s (%d,%d,%d,%d,%d,%d)",
+	     usedefault == 0 ? "PORT" : "in Passive mode",
+	     UC(a[0]), UC(a[1]), UC(a[2]), UC(a[3]), UC(p[0]), UC(p[1]));
+#undef UC
+    /*
     else if (pdata != -1) {
         printf("     in Passive mode");
         sin = &pasv_addr;
@@ -2666,8 +2698,9 @@
         printf(" (%d,%d,%d,%d,%d,%d)\r\n", UC(a[0]),
                UC(a[1]), UC(a[2]), UC(a[3]), UC(p[0]), UC(p[1]));
 #undef UC
-    } else
-        printf("     No data connection\r\n");
+    } */
+    else
+        lreply(0, "     No data connection");
     reply(211, "End of status");
 }
 
@@ -2704,15 +2737,15 @@
   flags &= USE_REPLY_NOTFMT | USE_REPLY_LONG;
 
   if (n) /* if numeric is 0, don't output one; use n==0 in place of printf's */
-    sprintf(buf, "%d%c", n, flags & USE_REPLY_LONG ? '-' : ' ');
+    sprintf(buf, "%03d%c", n, flags & USE_REPLY_LONG ? '-' : ' ');
 
   /* This is somewhat of a kludge for autospout.  I personally think that
    * autospout should be done differently, but that's not my department. -Kev
    */
   if (flags & USE_REPLY_NOTFMT)
-    sprintf(buf + (n ? 4 : 0), "%s", fmt);
+    snprintf(buf + (n ? 4 : 0), n ? sizeof(buf) - 4 : sizeof(buf), "%s", fmt);
   else
-    vsprintf(buf + (n ? 4 : 0), fmt, ap);
+    vsnprintf(buf + (n ? 4 : 0), n ? sizeof(buf) - 4 : sizeof(buf), fmt, ap);
 
   if (debug) /* debugging output :) */
     syslog(LOG_DEBUG, "<--- %s", buf);

-- 
Kevin L. Mitchell                                            klmitch@mit.edu
-------------------------  -. .---- --.. ..- -..-  -------------------------
MIT Kerberos Development Team                           Work: (617) 253-9483
http://web.mit.edu/klmitch/www/              PGP keys available upon request



From owner-wu-ftpd@wugate.wustl.edu  Wed Nov 26 15:57:13 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id PAA07522;
	Wed, 26 Nov 1997 15:54:03 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id PAA11708
	for <wu-ftpd@wugate.wustl.edu>; Wed, 26 Nov 1997 15:48:19 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id PAA17893;
	Wed, 26 Nov 1997 15:48:15 -0600
Message-Id: <Pine.LNX.3.96.971126154205.16485G-100000@ns1.fni.com>
Date: Wed, 26 Nov 1997 15:48:15 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: Becki Kain <beckers@josephus.furph.com>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <Pine.OSF.3.95.971126162630.3305C-100000@josephus.furph.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


--rsh-command=COMMAND      use remote COMMAND instead of rsh

This is the nasty option in GNU tar; lets people run anything they
want, I suspect anything they upload.  oosp.  I've not worked out the
details; it is something I picked up a long time ago on a list far far
away, so I just don't make it available. 

   -- Michael

On Wed, 26 Nov 1997, Becki Kain wrote:

> What do you mean, gnu tar should not be available?  I thougth it was
> supposed to be used so that we could use static tar on fly?


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 27 02:37:20 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id CAA03654;
	Thu, 27 Nov 1997 02:34:41 -0600 (CST)
Received: from inorganic5.fdt.net (inorganic5.fdt.net [205.229.48.42])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id CAA19820
	for <wu-ftpd@wugate.wustl.edu>; Thu, 27 Nov 1997 02:31:37 -0600 (CST)
Received: from localhost (jlewis@localhost)
	by inorganic5.fdt.net  with SMTP id DAA22876;
	Thu, 27 Nov 1997 03:31:27 -0500
Message-Id: <Pine.LNX.3.95.971127032716.3895X-100000@inorganic5.fdt.net>
Date: Thu, 27 Nov 1997 03:31:25 -0500 (EST)
Reply-To: jlewis@inorganic5.fdt.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Jon Lewis <jlewis@inorganic5.fdt.net>
To: Michael Brennen <mbrennen@fni.com>
Cc: Becki Kain <beckers@josephus.furph.com>, wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <Pine.LNX.3.96.971126154205.16485G-100000@ns1.fni.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-To-Stop-Spam-See: http://inorganic5.fdt.net/~jlewis/spam.html
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Wed, 26 Nov 1997, Michael Brennen wrote:

> --rsh-command=COMMAND      use remote COMMAND instead of rsh
> 
> This is the nasty option in GNU tar; lets people run anything they
> want, I suspect anything they upload.  oosp.  I've not worked out the
> details; it is something I picked up a long time ago on a list far far
> away, so I just don't make it available. 

Assuming gnu tar is not in a directory for which the remote user can do
"site exec" how is a remote user going to cause tar to attempt to operate
on a remote file (in which case it would run rsh or --rsh-command)?

--rsh-command is useful when doing something like 
tar --rsh-command=/usr/local/bin/ssh -cf user@host:/dev/st0

to backup to a remote tape via ssh instead of rsh....So how will you via
ftp cause tar to execute a command like the above?

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/message.
 Florida Digital Turnpike    |  
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____


From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 27 08:29:45 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA08440;
	Thu, 27 Nov 1997 08:26:48 -0600 (CST)
Received: from Homer.ocas.on.ca ([192.139.140.15])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA08022
	for <wu-ftpd@wugate.wustl.edu>; Thu, 27 Nov 1997 08:20:34 -0600 (CST)
Received: from ocas.on.ca (admin.ocas.on.ca [192.139.140.10]) by Homer.ocas.on.ca (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA17596 for <wu-ftpd@wugate.wustl.edu>; Thu, 27 Nov 1997 09:22:15 -0800
Received: from ADMIN/SMTP_Q by ocas.on.ca (Mercury 1.21);
    27 Nov 97 09:38:15 GMT+5
Received: from SMTP_Q by ADMIN (Mercury 1.21); 27 Nov 97 09:38:10 GMT+5
Message-Id: <4F2EBCD3728@ocas.on.ca>
Date: Thu, 27 Nov 1997 09:38:02 GMT+5
Reply-To: zhan@admin.ocas.on.ca
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Kaijun Zhan" <ZHAN@ocas.on.ca>
To: wu-ftpd@wugate.wustl.edu
Subject: How to disable get for guestgroup?
X-mailer: Pegasus Mail v3.22
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I want to disbale the function of GET for guestgroup,
how?

I tried:

noretrieve /guest/home/*


but it did not work.
--
Kaijun Zhan
Senior System Engineer
OCAS

From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 27 10:36:23 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id KAA14445;
	Thu, 27 Nov 1997 10:33:41 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id KAA14650
	for <wu-ftpd@wugate.wustl.edu>; Thu, 27 Nov 1997 10:28:32 -0600 (CST)
Received: from ns1.fni.com (ns1.fni.com [204.181.104.1])
	by ns1.fni.com (8.8.8/8.8.8) with SMTP id KAA02868;
	Thu, 27 Nov 1997 10:28:29 -0600
Message-Id: <Pine.LNX.3.96.971127101550.1162G-100000@ns1.fni.com>
Date: Thu, 27 Nov 1997 10:28:29 -0600 (CST)
Reply-To: mbrennen@fni.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Michael Brennen <mbrennen@fni.com>
To: Jon Lewis <jlewis@inorganic5.fdt.net>
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
In-Reply-To: <Pine.LNX.3.95.971127032716.3895X-100000@inorganic5.fdt.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Thu, 27 Nov 1997, Jon Lewis wrote:

> Assuming gnu tar is not in a directory for which the remote user can do
> "site exec" how is a remote user going to cause tar to attempt to operate
> on a remote file (in which case it would run rsh or --rsh-command)?
> 
> --rsh-command is useful when doing something like 
> tar --rsh-command=/usr/local/bin/ssh -cf user@host:/dev/st0
> 
> to backup to a remote tape via ssh instead of rsh....So how will you via
> ftp cause tar to execute a command like the above?

I'm not sure....  This is why I said "I've not worked out the
details".  I knew it sounded cheesy when I posted it. :)

I use ssh exclusively for interhost communication, but I run a
different variant of your above command to do cross LAN backup. 

It would be interesting to define better how tar could be exploited in
an anonymous / guest environment.  It may only be practical in a real
user environment, with access to suid root tools. 

   -- Michael



From owner-wu-ftpd@wugate.wustl.edu  Thu Nov 27 10:54:49 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id KAA04089;
	Thu, 27 Nov 1997 10:51:44 -0600 (CST)
Received: from differential.com (differential.com [204.152.97.192])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id KAA16613
	for <wu-ftpd@wugate.wustl.edu>; Thu, 27 Nov 1997 10:47:19 -0600 (CST)
Received: (from jevans@localhost) by differential.com (8.8.0/8.6.9) id IAA02308; Thu, 27 Nov 1997 08:46:55 -0800 (PST)
Message-Id: <199711271646.IAA02308@differential.com>
Date: Thu, 27 Nov 1997 08:46:55 -0800 (PST)
Reply-To: jevans@differential.com
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Dave Jevans <jevans@differential.com>
To: mbrennen@fni.com
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: BUG??? WU!
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN


With regard to the tar --rsh-command  feature of GNU tar,
and possible security problems....

When we designed our secure ftpd, we spent many months designing
a more secure and flexible extensibility engine than that provided
in wu-ftpd.  Basically, our ActiveAgents replaces the wu-ftpd
conversion capability with a separate server that can run the
extended programs such as tar, gzip and others that are user
defined.   The ActiveAgents server can run in its own "sandboxed"
environment, even on another machine, so you can effectively 
isolate programs and avoid potential --rsh-command security holes.

Also, because these commands are run by a server that is separate
from the ftpd, even anonymous users can use it without the tar
command being accessible in their chrooted environment.

My $0.02.   :-)    Happy Thanksgiving!

David Jevans, President
Differential Inc.  -  Software For Extranet Business Communities
jevans@differential.com
(408) 864-0603
www.differential.com       

  * Try FileDrive EX: Commerce-grade FTP Server And Client Software *

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 08:40:35 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA25016;
	Fri, 28 Nov 1997 08:36:57 -0600 (CST)
Received: from monster.igd.fhg.de (monster.igd.fhg.de [153.97.128.43])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA24719
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 08:31:19 -0600 (CST)
Received: from HeinrichSchiff.igd.fhg.de by monster.igd.fhg.de (5.x/SMI-4.1)
	id AA27807; Fri, 28 Nov 1997 15:31:05 +0100
Received: from igd.fhg.de by HeinrichSchiff.igd.fhg.de (SMI-8.6/SMI-SVR4)
	id PAA09365; Fri, 28 Nov 1997 15:30:56 +0100
Message-Id: <199711281430.PAA09365@HeinrichSchiff.igd.fhg.de>
Date: Fri, 28 Nov 1997 15:30:56 +0100
Reply-To: holzapfel@igd.fhg.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Roland Holzapfel <holzapfe@igd.fhg.de>
To: wu-ftpd@wugate.wustl.edu
Subject: owner/group names not shown in "dir"
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-Mailer: exmh version 2.0gamma 1/27/96
X-Organization: Fraunhofer Institute for Computer Graphics (IGD), Darmstadt, Germany
X-Uri: http://www.igd.fhg.de/~holzapfel/
X-Face: *`;PH5<>+:?.m.-[q;6`<eAB_bV%BVu:fr?,=(I{iv1#fr@/lRk0Id[I<E~*{m4>Vha4dFIKxvF%"03Ro7=_/(^nxDEE*tv8L`N|xe*]c+om`?@%$++yF{eFMol}C4r>Io)v@CZ5%mk;<Co4(f\T6$8TfIP6>J'ku1-H03vaW:PW4M$,=yIlLbiX[E\jyl?.b%aXP5eJm7.4OZ#e
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id IAA24433
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hi,

I've problems with basic setup:

I created all the directoories, and configured ftpaccess. Works fine.

I can log in (by ftp ;-), anonymous login accepted, msg.login shown.

The command "dir" works, too, but doesn't show owner and group names:

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 18
drwxr-sr-x   9 0        3            512 Nov 26 10:22 .
drwxr-sr-x   9 0        3            512 Nov 26 10:22 ..
d--x--s--x   2 0        1            512 Nov 26 09:24 bin
d--x--s--x   2 0        3            512 Nov 26 09:39 dev
dr-xr-sr-x   2 0        3            512 Nov 28 14:19 etc
drwxrwxrwx   2 0        3            512 Nov 26 14:46 incoming
drwxrwxrwx   2 0        3            512 Nov 26 10:22 outgoing
drwxrwsr-x   2 0        290          512 Nov 26 09:20 pub
d--x--s--x   4 0        3            512 Nov 26 09:44 usr
226 Transfer complete.
548 bytes received in 0.0083 seconds (65 Kbytes/s)

Directory setup as following:

court: ftp-home/pub] {22} # ls -lR
.:
total 14
dr-xr-sr-x   2 root     other        512 Nov 26 10:24 bin
dr-xr-sr-x   2 root     sys          512 Nov 26 10:39 dev
dr-xr-sr-x   2 root     sys          512 Nov 28 15:20 etc
drwxrwxrwx   2 root     sys          512 Nov 26 15:46 incoming
drwxrwxrwx   2 root     sys          512 Nov 26 11:22 outgoing
drwxrwsr-x   2 root     grz          512 Nov 26 10:20 pub
dr-xr-sr-x   4 root     sys          512 Nov 26 10:44 usr

./bin:
total 36
-r-xr-xr-x   1 root     sys        17440 Nov 26 10:24 ls

./dev:
total 0
crw-rw-r--   1 root     other     13,  2 Nov 26 10:38 null
crw-rw-r--   1 root     other     11, 42 Nov 26 10:38 tcp
crw-rw-r--   1 root     other    105,  1 Nov 26 10:38 ticotsord
crw-rw-r--   1 root     other     11, 41 Nov 26 10:39 udp
crw-rw-r--   1 root     other     13, 12 Nov 26 10:39 zero

./etc:
total 10
-r--r--r--   1 root     root          70 Nov 26 11:21 group
-r--r--r--   1 root     other        639 Nov 26 12:28 msg.login
-r--r--r--   1 root     root        1064 Nov 26 10:28 netconfig
-r--r--r--   1 root     root         101 Nov 26 10:32 passwd

./incoming:
total 0

./outgoing:
total 0

./pub:
total 0

./usr:
total 6
lrwxrwxrwx   1 root     sys            6 Nov 26 10:44 bin -> ../bin
dr-xr-sr-x   2 root     other        512 Nov 26 10:54 lib
dr-xr-sr-x   3 root     other        512 Nov 26 11:03 share

./usr/lib:
total 4114
-r-xr-xr-x   1 root     other      24576 Jul 16 06:35 ld.so
-r-xr-xr-x   1 root     other     174844 Jul 16 06:36 ld.so.1
lrwxrwxrwx   1 root     root          11 Nov 26 10:54 libc.so -> ./libc.so.1
-r-xr-xr-x   1 root     other    1000252 Jul 16 05:56 libc.so.1
lrwxrwxrwx   1 root     root          12 Nov 26 10:54 libdl.so -> ./libdl.so.1

... continued libs and zoneinfo.

any hints ?

Thanks, Roland.
-- 
           \|/
          (o-o)
------oOO--(_)--OOo------------------------------------------------------
Roland Holzapfel    | Fraunhofer-Institut f. Graphische Datenverarbeitung
                    | Rundeturmstrasse 6       phone: ++49 (0)6151 155315
                    | 64283 Darmstadt          fax:   ++49 (0)6151 155399
holzapfel@igd.fhg.de| Germany           http://www.igd.fhg.de/~holzapfel/
---------ooO-------------------------------------------------------------
>>      (   ) Ooo      This space intentionally left blank             <<
---------\ (-(   )-------------------------------------------------------
          \_) ) /
             (_/



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 09:01:57 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id IAA25115;
	Fri, 28 Nov 1997 08:58:52 -0600 (CST)
Received: from mgate.uni-hannover.de (mgate.uni-hannover.de [130.75.2.3])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id IAA25930
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 08:58:03 -0600 (CST)
Received: from helios (actually helios.tnt.uni-hannover.de) by mgate 
          with LocalSMTP (PP); Fri, 28 Nov 1997 15:57:22 +0100
Received: from tnt.uni-hannover.de by helios (SMI-8.6/SMI-SVR4) id PAA19894;
          Fri, 28 Nov 1997 15:57:18 +0100
Message-Id: <347EDBCD.FD0D30AC@tnt.uni-hannover.de>
Date: Fri, 28 Nov 1997 15:57:18 +0100
Reply-To: kirscht@tnt.uni-hannover.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Martin Kirscht <kirscht@tnt.uni-hannover.de>
To: wu-ftpd@wugate.wustl.edu
Cc: holzapfel@igd.fhg.de
Subject: Re: owner/group names not shown in "dir"
References: <199711281430.PAA09365@HeinrichSchiff.igd.fhg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: kirscht@helios.cis.wustl.edu
X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 5.5.1 sun4m)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Roland Holzapfel wrote:
> 
> Hi,
> 
> I've problems with basic setup:
> 
> I created all the directoories, and configured ftpaccess. Works fine.
> 
> I can log in (by ftp ;-), anonymous login accepted, msg.login shown.
> 
> The command "dir" works, too, but doesn't show owner and group names:

Hi, 

I have the same problem than Roland, so please answer to the mailing 
list, too.

Martin
-- 
  /| /|                   mailto:kirscht@tnt.uni-hannover.de
 / |/ | /                 phone: +49-511-762-5305, fax: +49-511-762-5333
/artin|/\irscht           http://www.tnt.uni-hannover.de/~kirscht

Institut f. Theoretische Nachrichtentechnik und Informationsverarbeitung
Universitaet Hannover, Appelstrasse 9A, D-30167 Hannover, Germany

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 10:11:40 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id KAA29128;
	Fri, 28 Nov 1997 10:08:25 -0600 (CST)
Received: from dsc.tudelft.nl (dsc.tudelft.nl [130.161.180.129])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id KAA25820
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 10:04:29 -0600 (CST)
Received: from dsc.tudelft.nl by dsc.tudelft.nl (8.8.8/8.8.8)
           id RAA08010; Fri, 28 Nov 1997 17:03:11 +0100
Message-Id: <199711281603.RAA08010@dsc.tudelft.nl>
Date: Fri, 28 Nov 1997 17:03:10 +0100
Reply-To: H.W.K.Robers@dsc.tudelft.nl
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "H.W.K.Robers" <H.W.K.Robers@dsc.tudelft.nl>
To: holzapfel@igd.fhg.de
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: owner/group names not shown in "dir" 
In-Reply-To: Your message of "Fri, 28 Nov 1997 15:30:56 +0100."
             <199711281430.PAA09365@HeinrichSchiff.igd.fhg.de> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: exmh version 1.6.9 05/05/96
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> Hi,
> 
> I've problems with basic setup:
> 
> I created all the directoories, and configured ftpaccess. Works fine.
> 
> I can log in (by ftp ;-), anonymous login accepted, msg.login shown.
> 
> The command "dir" works, too, but doesn't show owner and group names:

> 
> ./etc:
> total 10
> -r--r--r--   1 root     root          70 Nov 26 11:21 group
> -r--r--r--   1 root     other        639 Nov 26 12:28 msg.login
> -r--r--r--   1 root     root        1064 Nov 26 10:28 netconfig
> -r--r--r--   1 root     root         101 Nov 26 10:32 passwd

In etc/passwd a userid -> usermapping is done

Copy your /etc/passwd to ~ftp/etc/passwd
copy your /etc/group to ~ftp/etc/group

Replace the encrypted passwords by a * and cut away field 4 until the rest of 
the line.

i.e. in your /etc/passwd the line:
robers:lPfds432f6EU:500:500:H.W.K.Robers,,015-2578623,,:/home/robers:/bin/bash

in your ~ftp/etc/passwd change it to:
robers:*:500:500

This will prevent remote users from getting your encrypted password and run a 
password cracker on it..


-- 
Herman Robers

  E-mail: H.W.K.Robers@DSC.TUDelft.NL
Telefoon: 015-2578623
     WWW: http://www.et.tudelft.nl/~robers

Delftsch Studenten Corps                http://dsc.tudelft.nl
Delftsche Studenten Societeit Phoenix   http://phoenix.tudelft.nl



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 10:23:48 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id KAA30811;
	Fri, 28 Nov 1997 10:20:52 -0600 (CST)
Received: from monster.igd.fhg.de (monster.igd.fhg.de [153.97.128.43])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id KAA31262
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 10:14:48 -0600 (CST)
Received: from HeinrichSchiff.igd.fhg.de by monster.igd.fhg.de (5.x/SMI-4.1)
	id AA28875; Fri, 28 Nov 1997 17:14:46 +0100
Received: from igd.fhg.de by HeinrichSchiff.igd.fhg.de (SMI-8.6/SMI-SVR4)
	id RAA09734; Fri, 28 Nov 1997 17:14:26 +0100
Message-Id: <199711281614.RAA09734@HeinrichSchiff.igd.fhg.de>
Date: Fri, 28 Nov 1997 17:14:26 +0100
Reply-To: holzapfel@igd.fhg.de
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Roland Holzapfel <holzapfe@igd.fhg.de>
To: wu-ftpd@wugate.wustl.edu, holzapfe@igd.fhg.de
Subject: Re: owner/group names not shown in "dir" 
In-Reply-To: H.W.K.Robers's message of Fri, 28 Nov 1997 17:03:10 +0100.
	     <199711281603.RAA08010@dsc.tudelft.nl> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-Mailer: exmh version 2.0gamma 1/27/96
X-Organization: Fraunhofer Institute for Computer Graphics (IGD), Darmstadt, Germany
X-Uri: http://www.igd.fhg.de/~holzapfel/
X-Face: *`;PH5<>+:?.m.-[q;6`<eAB_bV%BVu:fr?,=(I{iv1#fr@/lRk0Id[I<E~*{m4>Vha4dFIKxvF%"03Ro7=_/(^nxDEE*tv8L`N|xe*]c+om`?@%$++yF{eFMol}C4r>Io)v@CZ5%mk;<Co4(f\T6$8TfIP6>J'ku1-H03vaW:PW4M$,=yIlLbiX[E\jyl?.b%aXP5eJm7.4OZ#e
X-MIME-Autoconverted: from quoted-printable to 8bit by wugate.wustl.edu id KAA30504
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

Hello Herman,

I'd done this already, except for cutting the passwd entries.
I tried this, but it didn't work, too.

btw, I'm running on Sparc Ultra, Solaris 2.6.

Thanks, Roland.

H.W.K.Robers@dsc.tudelft.nl said:
> Copy your /etc/passwd to ~ftp/etc/passwd copy your /etc/group to ~ftp/
> etc/group

> Replace the encrypted passwords by a * and cut away field 4 until the
> rest of  the line.

> i.e. in your /etc/passwd the line: robers:lPfds432f6EU:500:500:H.W.K.Ro
> bers,,015-2578623,,:/home/robers:/bin/bash 


-- 
-------------------------------------------------------------------------
Roland Holzapfel    | Fraunhofer-Institut f. Graphische Datenverarbeitung
                    | Rundeturmstrasse 6       phone: ++49 (0)6151 155315
                    | 64283 Darmstadt          fax:   ++49 (0)6151 155399
holzapfel@igd.fhg.de| Germany           http://www.igd.fhg.de/~holzapfel/
-------------------------------------------------------------------------



From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 14:39:31 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id OAA13336;
	Fri, 28 Nov 1997 14:35:56 -0600 (CST)
Received: from msgpacbh1.PAC.DFO.CA (msgpacbh1.pac.dfo.ca [199.60.88.34])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id OAA04203
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 14:28:52 -0600 (CST)
Received: by MSGPACBH1 with Internet Mail Service (5.0.1458.49)
	id <XFAS0ACT>; Fri, 28 Nov 1997 12:28:20 -0800
Message-Id: <F100AE5FB1C8D011AA820000F8031329AC41@MSGPACIOS1>
Date: Fri, 28 Nov 1997 12:28:41 -0800
Reply-To: GreenW@dfo-mpo.gc.ca
Sender: owner-wu-ftpd@wugate.wustl.edu
From: "Green, William" <GreenW@dfo-mpo.gc.ca>
To: "'wu-ftpd@wugate.wustl.edu'" <wu-ftpd@wugate.wustl.edu>
Subject: command line options are not read correctly.
MIME-Version: 1.0
Content-Type: text/plain
X-Priority: 3
X-Mailer: Internet Mail Service (5.0.1458.49)
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

I've placed the options -alio in file /etc/inetd.conf
but they are not used correctly in the program.
If I set the options in the c code in file ftpd.c the
program works except for the ftphosts deny.
When I deny user abc on xyz@domain,
users abc on all systems are denied.

I am using a Sun OS 4.1.2 system and Version wu-2.4.2-academ[BETA-15].
The line from /etc/inetd.conf is:
ftp  stream  tcp  nowait  root  /usr/etc/in.tcpd  /usr/etc/in.ftp
in.ftpd -alio

Any thoughts on either of these two problems?
Thankyou for your time.
Bill Green
greenw@dfo-mpo.gc.ca

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 15:10:03 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id PAA14686;
	Fri, 28 Nov 1997 15:07:14 -0600 (CST)
Received: from nuinfo.nwu.edu (nuinfo.nwu.edu [129.105.212.72])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id PAA13944
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 15:02:55 -0600 (CST)
Received: by nuinfo.nwu.edu
	(1.39.111.2/16.2) id AA047010970; Fri, 28 Nov 1997 15:02:50 -0600
Message-Id: <199711282102.PAA13944@wugate.wustl.edu>
Date: Fri, 28 Nov 1997 15:02:49 CST
Reply-To: albert-lunde@nwu.edu (Albert Lunde)
Sender: owner-wu-ftpd@wugate.wustl.edu
From: albert-lunde@nwu.edu (Albert Lunde)
To: GreenW@dfo-mpo.gc.ca
Cc: wu-ftpd@wugate.wustl.edu
Subject: Re: command line options are not read correctly.
In-Reply-To: <F100AE5FB1C8D011AA820000F8031329AC41@MSGPACIOS1>; from "Green, William" at Nov 28, 97 12:28 (noon)
X-Sender: lunde@nuinfo.nwu.edu (Albert Lunde)
X-Mailer: Elm [revision: 112.6]
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

> 
> I've placed the options -alio in file /etc/inetd.conf
> but they are not used correctly in the program.
> If I set the options in the c code in file ftpd.c the
> program works except for the ftphosts deny.
> When I deny user abc on xyz@domain,
> users abc on all systems are denied.
> 
> I am using a Sun OS 4.1.2 system and Version wu-2.4.2-academ[BETA-15].
> The line from /etc/inetd.conf is:
> ftp  stream  tcp  nowait  root  /usr/etc/in.tcpd  /usr/etc/in.ftp
> in.ftpd -alio

Some inetd versions have a rather short limit on the number of
command-line arguements they support.

I wound up writing a C wrapper program:
= =
/* wrapper for wuftpd to add command line arguments
   that don't fit under inetd */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <syslog.h>

int main(argc,argv)
int argc;
char **argv;
{
    char *path="/local-adm/bin/ftpd";
    char *cmd="ftpd";

    fflush(stderr);
    fflush(stdout);
    errno=0;
    execl(path,cmd,"-a","-l","-L","-u002","-t900","-T7200",NULL);

    openlog("wrapftpd",LOG_PID, LOG_LOCAL6);
    syslog(LOG_WARNING,(const char *)strerror(errno));
    closelog();
    exit(EXIT_FAILURE);

}

= =


--
    Albert Lunde                      Albert-Lunde@nwu.edu

From owner-wu-ftpd@wugate.wustl.edu  Fri Nov 28 20:33:17 1997
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id UAA30595;
	Fri, 28 Nov 1997 20:29:37 -0600 (CST)
Received: from ultra.ionet.net (ultra.ionet.net [206.41.128.4])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id UAA00630
	for <wu-ftpd@wugate.wustl.edu>; Fri, 28 Nov 1997 20:17:16 -0600 (CST)
Received: from localhost (dustenm@localhost) by ultra.ionet.net (8.7.5/8.7.5) with SMTP id UAA21347; Fri, 28 Nov 1997 20:07:03 -0600 (CST)
Message-Id: <Pine.SOL.3.95.971128195115.20427A-100000@ultra.ionet.net>
Date: Fri, 28 Nov 1997 20:07:02 -0600 (CST)
Reply-To: dustenm@ionet.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: Dusten McKee <dustenm@ionet.net>
To: "Green, William" <GreenW@dfo-mpo.gc.ca>
Cc: "'wu-ftpd@wugate.wustl.edu'" <wu-ftpd@wugate.wustl.edu>
Subject: Re: command line options are not read correctly.
In-Reply-To: <F100AE5FB1C8D011AA820000F8031329AC41@MSGPACIOS1>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

On Fri, 28 Nov 1997, Green, William wrote:

->I am using a Sun OS 4.1.2 system and Version wu-2.4.2-academ[BETA-15].
->The line from /etc/inetd.conf is:
->ftp  stream  tcp  nowait  root  /usr/etc/in.tcpd  /usr/etc/in.ftp
->in.ftpd -alio

I will assume that the line wrapped and you do indeed have these three
entries on the end of that line:

	/usr/etc/in.tcpd  /usr/etc/in.ftp  in.ftpd -alio

This is not a correct entry. Assuming your wu-ftpd is in your /usr/etc
directory, the entry in your inetd.conf file should look like this:

 ftp  stream  tcp  nowait  root  /usr/etc/in.tcpd  /usr/etc/in.ftpd -alio

If your ftp daemon is named in.ftp, then replace the in.ftpd with
in.ftp...you get the idea.



  ..:
 ::.: |,-.|\  |,-- ---        Dusten McKee
 ..:: || || \ ||--  |         System Administrator
 :::: |`-'|  \|`--  |         ioNET, Inc.
 ::.:.....                    dustenm@ionet.net
 .:::.::.: INTERNETWORKING    Tel: (405) 270.0999
 ::.::.:.: SERVICES           Fax: (405) 270.7055
 ::.:..:.:
 : :.:..::
  .   :  .
     . .
 . 
     .


From owner-wu-ftpd@wugate.wustl.edu  Sat Nov 29 15:39:00 1997
Received: from wugate.wustl.edu (wugate.wustl.edu [128.252.120.1])
	by landfield.com (8.8.8/8.8.8) with ESMTP id PAA24510;
	Sat, 29 Nov 1997 15:38:59 -0600 (CST)
Received: from host (wugate.wustl.edu [128.252.120.1])
	by wugate.wustl.edu (8.8.8/8.8.5) with SMTP id PAA06916;
	Sat, 29 Nov 1997 15:34:33 -0600 (CST)
Received: from postoffice.Reston.mci.net (postoffice.Reston.mci.net [204.70.128.20])
	by wugate.wustl.edu (8.8.8/8.8.5) with ESMTP id PAA32587
	for <wu-ftpd@wugate.wustl.edu>; Sat, 29 Nov 1997 15:27:44 -0600 (CST)
Received: from cletus. (cletus [166.45.1.45])
	by postoffice.Reston.mci.net (8.8.5/8.8.5) with SMTP id QAA21169
	for <wu-ftpd@wugate.wustl.edu>; Sat, 29 Nov 1997 16:27:13 -0500 (EST)
Received: by cletus. (SMI-8.6/SMI-SVR4)
	id QAA03120; Sat, 29 Nov 1997 16:27:12 -0500
Message-Id: <199711292127.QAA03120@cletus.>
Date: Sat, 29 Nov 1997 16:27:12 -0500
Reply-To: yjj@mci.net
Sender: owner-wu-ftpd@wugate.wustl.edu
From: yjj@mci.net (Yuan John Jiang)
To: wu-ftpd@wugate.wustl.edu
Subject: Help: I'm troubled with WareZ
X-Listprocessor-Version: 8.0 -- ListProcessor(tm) by CREN

My site (a SparcII) has been bogged down by WareZ.  The machine
even did not have enough memory to support a shell when I tried
to login.  I repeatedly deleted their files and directories, and
they come back.

My problem is that the uid, gid, mode and "nodirs" settings in
the "upload" line seem to have no effect, and
1. WareZ guys can always create subdirectories under /incoming
if /incoming has write permission for user "ftp";
2. Files uploaded and directories created under /incoming
always has 0664 mode.

My only defense is the OS mode setting of 0333 on the
"/incoming" directory.  Then, I can't serve legitimate upload.

How do I prevent creating subdirectories?  The "mkdir" line does
not work.

Thanks.

John
=====================
My ftpaccess:

limit   local   1  Any                 /data/wu-ftpd/msgs/msg.toomany
limit   remote  30 SaSu|Any1800-0600   /data/wu-ftpd/msgs/msg.toomany
limit   remote  20  Any                 /data/wu-ftpd/msgs/msg.toomany

# all the following default to "yes" for everybody
delete          no      anonymous         # delete permission?
overwrite       no      anonymous         # overwrite permission?
rename		no	anonymous		# rename permission?
chmod           no      anonymous               # chmod permission?
umask           no      anonymous               # umask permission?
mkdir           no      anonymous               # umask permission?

# specify the upload directory information
upload 	/data/Pub  *             no
upload  /data/Pub  /incoming     yes     yjj    ftp-adm  0060 nodirs
upload	 /data/Pub  /incoming/studies     yes     yjj    ftp-adm  0060 nodirs
upload	 /data/Pub  /incoming/org     yes     jzh    ftp-adm  0060 nodirs
upload	 /data/Pub  /incoming/software     yes     cyl    ftp-admin  0060 nodirs
upload	 /data/Pub  /bin          no
upload	 /data/Pub  /etc          no
upload	 /data/Pub  /usr          no


