Subject: functionality improvement (?) to wu-ftpd

From: [email-masked]
Date: Tue, 9 Sep 1997 09:03:21 +0200

Dear wu-ftpders,

We, the Computing Center of the Eindhoven University of Technology, administer
a anonymous ftp-server based on Version wu-2.4.2-academ[BETA-13]. Anonymous 
local users( in domain tue.nl (131.155.*)) are chrooted to /tue-ftp. External
anonymous users are chrooted to /tue-ftp/ftp. The local users find in /tue-ftp
stuff that is meant for internal use only. We achieve this functionality by 
applying a small patch to ftpd.c :

idefix.tue.nl# diff ftpd.c ftpd.c-new
1580,1583c1580,1591
<             if (chroot(pw->pw_dir) < 0 || chdir("/") < 0) {
<                 reply(530, "Can't set guest privileges.");
<                 goto bad;
<             }
---
>           if ( hostmatch("131.155.*") ) {
>                /* the root must be one level back (tue-ftp) */
>                if ( chdir (pw->pw_dir) < 0 || chroot ("..") < 0 ||
>                      chdir("/") < 0) {
>                     reply(530, "Can't set guest (tue-ftp) privileges.");
>                   goto bad;
>                  }
>           } else
>                if (chroot(pw->pw_dir) < 0 || chdir("/") < 0) {
>                    reply(530, "Can't set guest privileges.");
>                    goto bad;
>                }

When we upgrade to a new version of wu-ftp we have to apply this small patch.
Although the patch is small and easy to understand we would prefer to have a
configuration file a la ftpaccess e.g. 

kind regards,

Ivan

----
Ivan Saez Scheihing , Eindhoven University of Technology
Computing Center 1.33,  +31 40 2472139
P.O.Box 513, 5600 MB Eindhoven, The Netherlands
E-Mail: [email-masked]