From: Iain.Lea%anl433.uucp@Germany.EU.net (Iain Lea) Subject: FTPD: Uploaded patched ftpd-diku to ftp.Germany.EU.net Date: Sat, 10 Apr 1993 17:15:42 GMT
I have uploaded the patched source to a FTP server in Germany:
ftp.germany.eu.net:/pub/comp/i386/Linux/Incoming.UniDO/ftpd-diku.t.z
This is a patched version of ftpd-diku that was ported to Linux by
Mitch Dsouza (m.dsouza@mrc-apu.cam.ac.uk) at some point in the mists
of time.
I have added the CERT security patch (09/04/93) to make it secure.
I have modified it to compile cleanly under SLS 0.99p6 with the 0.99p7A
kernel. I had to comment out the contents of is_shutdown() and just get
it to always return 0.
I also changed the anonymous ftp users bin directory to usr/bin so that
the dir command would work in normal and anonymous ftp modes.
The following are the little changes I made to get everything setup OK:
- Compiled ftpd with -DLOG_DAEMON -DSHADOW_PWD and linked with -lshadow
Had to add #include <shadow.h> to all files that included <pwd.h>.
Also had to change all change all "/bin/ls ..." to "/usr/bin/ls ..."
- mkdir ~ftp/etc/msgs. Copied all msg.welcome etc. there for user info.
- mkdir /etc/msgs. Copied all msg.welcome etc. there for user info.
- mkdir ~ftp/usr
- mv ~ftp/bin ~ftp/usr
- chmod 711 ~ftp/[usr|etc|lib]
- chmod 755 ~ftp/pub
- edited /etc/ftpaccess to reflect new directory layout.
- cp /usr/spool/ftpd/groupaccess /etc
- mv /usr/spool/ftpd/groupaccess ~ftp/etc
- rd /usr/spool/ftpd
- mv ftpd-diku/ftpcount /usr/bin
- mv ftpd-diku/mkgroup /usr/bin/ftpmkgroup
- mv ftpd-diku/xferstats /usr/bin/ftpxferstats
Iain