03/21/2001 - Notes from when I installed wu-ftpd at Delphion. cd /afs/d/software/base ftp ftp.wu-ftpd.org anonymous rick@delphion.com cd pub/wu-ftpd bin get wu-ftpd-current.tar.Z which today, was a link to a 595843-byte, wu-ftpd-2.6.1.tar.Z file dated Jul 1, 2000. I also picked up the CHANGES & FAQ files. get CHANGES get FAQ quit zcat wu-ftpd-current.tar.Z | tar xvf - to created the wu-ftpd-2.6.1 directory and exploded everything into it. cp -p CHANGES wu-ftpd-2.6.1 cp -p FAQ wu-ftpd-2.6.1 To build the server, cd /afs/d/software/base/wu-ftpd-2.6.1 ./configure (Not ./build aix, like I used to do) make To install it on a machine, presuming a Delphion machine with AFS, login as root (Rebecca wanted this done on skunk) cd /afs/d/software/base/wu-ftpd-2.6.1 make install This installs the following files, In /usr/sbin, in.ftpd, ftpshut, ckconfig, ftprestart & privatepw In /usr/bin, ftpcount & ftpwho In /usr/man/man1, ftpcount.1 & ftpwho.1 In /usr/man/man5, ftpaccess.5, ftphosts.5, ftpconversions.5, ftpservers.5 & xferlog.5 In /usr/man/man8, ftpd.8, ftpshut.8, ftprestart.8 & privatepw.8 In /etc, ftpaccess & ftpconversions To replace the default ftpd, change the ftpd line in /etc/inetd.conf from ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd to ftp stream tcp nowait root /usr/sbin/in.ftpd ftpd -a -t1200 The "tcp6" needs to be changed to "tcp". The -a option says to read /etc/ftpaccess, and -t1200 changes the default inactivity timeout from 2 hours, to 20 minutes. Then refresh -s inetd If this machine has never had anonymous ftp configured for it (skunk didn't), do so now by running the sample anonymous-ftp shell script that comes with AIX. (To find this script, I type ftpd (The ftpd command is /usr/sbin/ftpd lslpp -w /usr/sbin/ftpd (The /usr/sbin/ftpd binary is from the bos.net.tcp.client fileset.) lslpp -f bos.net.tcp.client | grep ftp (Scan for something reasonable.) Anyway, as root on skunk, /usr/samples/tcpip/anon.ftp This added the ftp & anonymou(s) userids, created the ftp home directory, set the permissions correctly, and created the necessary files. The public directory that one is suppose to populate with stuff, is /home/ftp/pub. Warning !!! For normally-configured, Delphion machines (AFS with integrated login and a shared passwd file), you need to copy the two lines just created for ftp & anonymou in /etc/passwd, to /etc/passwd.noafs. Modified /etc/ftpaccess to resonable things. Created a /etc/ftp.msg.too-many-sessions-now file, and a /var/log directory for the log file. =========================================================================== 11/3/1999 - Notes from when I reinstalled wu-ftpd on eagle. rftp ftp.wu-ftpd.org cd pub/wu-ftpd bin get wu-ftpd-current.tar.Z which was a link to wu-ftpd-2.6.0.tar.Z, 588,595 bytes big. Be careful when you download this and check to insure you got everything with a zcat wu-ftpd-current.tar.Z | tar tvf - command. I kept getting this error message tar: 0511-169 A directory checksum error on media; 2 not equal to 34956. and had to download it 3 times before I got everything. Notice the byte count in the 3 download commands 591635 bytes received in 4.1e+02 seconds (1.4 Kbytes/s) 591635 bytes received in 1e+02 seconds (5.7 Kbytes/s) 588595 bytes received in 1.1e+02 seconds (5 Kbytes/s) As jasper on jasper (an AIX 4.3.2 machine), cd zcat wu-ftpd-current.tar.Z | tar xvf - to explode everything into the wu-ftpd-2.6.0 directory. To build the server, cd wu-ftpd-2.6.0 ./build aix This did build the server, but it also spit out this "IMPORTANT NOTICE" Beginning with version 2.6.0, the WU-FTPD Development Group is moving the build process to use GNU Autoconf. Until this move is completed, both build systems will remain supported. You are encouraged to use the new "configure" command to select options, then "make" to compile the daemon. For details on this, read the README.AUTOCONF file. What one is suppose to do now, is to ./configure make I tried this sequence also, and got tons more messages and different byte(?) counts at the end. I went ahead and did the su make install on jasper. It created the ~/wu-ftpd-2.6.0/bin directory, populated it with -rwxr-xr-x 2 jasper jasper 19425 Nov 03 13:23 ckconfig -rwxr-xr-x 3 jasper jasper 22801 Nov 03 13:23 ftpcount -rwxr-xr-x 2 jasper jasper 524343 Nov 03 13:23 ftpd -rwxr-xr-x 2 jasper jasper 22972 Nov 03 13:23 ftprestart -rwxr-xr-x 2 jasper jasper 27952 Nov 03 13:23 ftpshut -rwxr-xr-x 3 jasper jasper 22801 Nov 03 13:23 ftpwho -rwxr-xr-x 1 jasper jasper 21210 Nov 03 13:11 privatepw and then ... installing binaries. ./install-sh -c -o bin -g bin -m 755 bin/ftpd /usr/sbin/in.ftpd ./install-sh -c -o bin -g bin -m 755 bin/ftpshut /usr/sbin/ftpshut ./install-sh -c -o bin -g bin -m 755 bin/ftpcount /usr/bin/ftpcount ./install-sh -c -o bin -g bin -m 755 bin/ftpwho /usr/bin/ftpwho ./install-sh -c -o bin -g bin -m 755 bin/ckconfig /usr/sbin/ckconfig ./install-sh -c -o bin -g bin -m 755 bin/ftprestart /usr/sbin/ftprestart installing manpages. ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpd.8 /usr/man/man8/ftpd.8 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpcount.1 /usr/man/man1/ftpcount.1 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpwho.1 /usr/man/man1/ftpwho.1 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpshut.8 /usr/man/man8/ftpshut.8 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpaccess.5 /usr/man/man5/ftpaccess.5 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftphosts.5 /usr/man/man5/ftphosts.5 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpconversions.5 /usr/man/man5/ftpconversions.5 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/xferlog.5 /usr/man/man5/xferlog.5 ./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftprestart.8 /usr/man/man8/ftprestart.8 Since you didn't have a ftpaccess file, the sample has been installed to /etc/ftpaccess. You will probably want to edit it. Since you didn't have a ftpconversions file, the sample has been installed to /etc/ftpconversions. You will probably want to edit it. Notice what it did with the ftpd binary. It put it in /usr/sbin/in.ftpd, which is different in two ways from the last time I did this. Last time, the ftpd binary was in /etc, not /usr/sbin, and it was named ftpd. Is there somewhere that it tells me to rename it? I dunno, I couldn't find it anywhere. Or should I just change /etc/inetd.conf to point to in.ftpd? If you think about it, it makes more sense to do that, then applying AIX service won't replace your wu-ftpd with AIX's ftpd. This is what I'm going to do on eagle. To test on jasper, I changed the ftpd line in /etc/inetd.conf from ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd to ftp stream tcp nowait root /usr/sbin/in.ftpd ftpd (Note 2 changes there. The "tcp6" was also changed to "tcp".) It seems to work ok except for doing AFS and/or DCE authentication, which was mentioned in the CHANGES file, but since eagle didn't have/use either, I went ahead and rftp'd these to eagle, put /usr/sbin/in.ftpd /usr/sbin/in.ftpd put /usr/sbin/ftpshut /usr/sbin/ftpshut put /usr/bin/ftpcount /usr/bin/ftpcount put /usr/bin/ftpwho /usr/bin/ftpwho put /usr/sbin/ckconfig /usr/sbin/ckconfig put /usr/sbin/ftprestart /usr/sbin/ftprestart put /usr/man/man8/ftpd.8 /usr/man/man8/ftpd.8 put /usr/man/man1/ftpcount.1 /usr/man/man1/ftpcount.1 put /usr/man/man1/ftpwho.1 /usr/man/man1/ftpwho.1 put /usr/man/man8/ftpshut.8 /usr/man/man8/ftpshut.8 put /usr/man/man5/ftpaccess.5 /usr/man/man5/ftpaccess.5 put /usr/man/man5/ftphosts.5 /usr/man/man5/ftphosts.5 put /usr/man/man5/ftpconversions.5 /usr/man/man5/ftpconversions.5 put /usr/man/man5/xferlog.5 /usr/man/man5/xferlog.5 put /usr/man/man8/ftprestart.8 /usr/man/man8/ftprestart.8 Afterwords, as root on eagle, I also had to chmod 755 /usr/sbin/in.ftpd /usr/sbin/ftpshut /usr/bin/ftpcount and chmod 755 /usr/bin/ftpwho /usr/sbin/ckconfig /usr/sbin/ftprestart to correct the permissions. Running ckconfig (which gave me the one I just created in /usr/sbin), I saw that the config files were still coming from /usr/local/lib/ftpd, which according to my 10/5/99 note below, was the current stuff. Except for 3 "I can't find it" messages for things that we don't need, namely - _PATH_FTPSERVERS :: /usr/local/lib/ftpd/ftpservers - _PATH_PRIVATE :: /usr/local/lib/ftpd/ftpgroups and - _PATH_FTPHOSTS :: /usr/local/lib/ftpd/ftphosts all seemed ok. I changed the ftpd line in /etc/inetd.conf from ftp stream tcp nowait root /etc/ftpd ftpd -l -t600 -a -u 002 to ftp stream tcp nowait root /usr/sbin/in.ftpd ftpd -l -t600 -a -u 002 and restarted inetd, and although I got the Connected to eagle.almaden.ibm.com. 220 eagle.almaden.ibm.com FTP server (Version wu-2.6.0(2) Wed Nov 3 13:23:13 PST 1999) ready. messages ok, I couldn't authenticate as root or jasper. Something's wrong. Tracing file opens, I saw that this new ftpd was only looking for the ftpaccess file in /etc, despite what the ckconfig program was leading me to believe. So I cp -p /usr/local/lib/ftpd/ftpaccess /etc and all's ok now. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To implement the socks-server fix, =========================================================================== 10/5/99 The current config file is at /usr/local/lib/ftpd/ftpaccess, it is not at /usr/local/wu-ftpd/etc/ftpaccess. =========================================================================== 3/30/1999 Notes from when I reinstalled wu-ftpd on eagle. rftp ftp.vr.net got -r--r--r-- 1 lundberg vrnet 385769 Mar 4 06:46 wu-ftpd-2.4.2-vr16.tar.Z and put it into my DFS home directory. The site also had -r--r--r-- 1 lundberg vrnet 7033 Mar 4 06:55 ANNOUNCE-VR16 lrwxrwxrwx 1 lundberg vrnet 15 Mar 1 14:35 FAQ -> wu-ftpd-faq.txt -r--r--r-- 1 lundberg vrnet 2380 Mar 4 05:23 FIXES-2.4.2-VR16 -r--r--r-- 1 lundberg vrnet 3023 Mar 4 05:33 README but they weren't too interesting. As jasper on jasper, cd zcat wu-ftpd-2.4.2-vr16.tar.Z | tar xvf - to explode everything into the wu-ftpd-2.4.2-vr16 directory To build the server, cd wu-ftpd-2.4.2-vr16 ./build aix (Had to do this on catalina 'cause jasper had licence problems. Don't know why.) Then to install it on jasper, su ./build install which installed the following files, /usr/ucb/install -c -o bin -g bin -m 755 bin/ftpd /etc/ftpd /usr/ucb/install -c -o bin -g bin -m 755 bin/ftpshut /etc/ftpshut /usr/ucb/install -c -o bin -g bin -m 755 bin/ftpcount /etc/ftpcount /usr/ucb/install -c -o bin -g bin -m 755 bin/ftpwho /etc/ftpwho And for the manpages, /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpd.8 /usr/share/man/man8/ftpd.8 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpcount.1 /usr/share/man/man1/ftpcount.1 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpwho.1 /usr/share/man/man1/ftpwho.1 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpshut.8 /usr/share/man/man8/ftpshut.8 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpaccess.5 /usr/share/man/man5/ftpaccess.5 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftphosts.5 /usr/share/man/man5/ftphosts.5 /usr/ucb/install -c -o bin -g bin -m 644 doc/ftpconversions.5 /usr/share/man/man5/ftpconversio ns.5 /usr/ucb/install -c -o bin -g bin -m 644 doc/xferlog.5 /usr/share/man/man5/xferlog.5 Finally, to move it over to eagle, I rftp'd /etc/ftpd /etc/ftpshut /etc/ftpcount /etc/ftpwho and /usr/share/man/man8/ftpd.8 /usr/share/man/man1/ftpcount.1 /usr/share/man/man1/ftpwho.1 /usr/share/man/man8/ftpshut.8 /usr/share/man/man5/ftpaccess.5 /usr/share/man/man5/ftphosts.5 /usr/share/man/man5/ftpconversions.5 /usr/share/man/man5/xferlog.5 Running ./bin/ckconfig told me that the configuration files go to the /usr/local/lib/ftpd directory, and it turns out I already had the configuration files there from when I tried installing VR14 back in February, before I installed John's VR13 version. The other thing ckconfig told me was the log file was gonna be at /usr/local/logs/xferlog and I already had the link at /usr/local/logs pointing to /logs/ftpd, so that was fine, too. One advantage of the way things exist on eagle now is that it's easy to switch between John Simmon's version of ftpd, where everything's in /usr/local/wu-ftpd, and the plain, vanilla version. All I have to do is switch the line in /etc/inetd.conf & refresh -s inetd. =========================================================================== 2/23/99 John Simmons (8-263-5259) is Boulder's wu-ftpd expert, and he does seem to know enough about wu-ftpd to modify & fix it. You can look at what he "distributes" by anonymous ftp to jsimmon.boulder.ibm.com, in the outgoing/wu-ftpd directory. Note that John has his own local mod to wu-ftpd. He doesn't like where they put the configuration files by default, and has "modified the src/pathnames.h file so all files would be located under /usr/local/wu-ftpd, somewhat like the Apache webserver." The main configuration file is at /usr/local/wu-ftpd/etc/ftpaccess. The ftpd binary is at /usr/local/wu-ftpd/sbin/ftpd. The log file is at /usr/local/wu-ftpd/var/log/xferlog, which I have as a link to /logs/ftpd/xferlog. The line in /etc/inetd.conf is ftp stream tcp nowait root /usr/local/wu-ftpd/sbin/ftpd ftpd -l -t600 -a -u 002