Path: sq!wildcan!uunet.ca!uunet!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!ogpaik From: ogpaik@cco.caltech.edu (Oon-Gil Paik) Newsgroups: alt.sys.sun Subject: FTP Date: 26 Mar 1993 12:15:35 GMT Organization: California Institute of Technology, Pasadena Lines: 91 Message-ID: <1ous57INNj5n@gap.caltech.edu> NNTP-Posting-Host: sandman.caltech.edu Summary: FTP setup info Keywords: FTP the following is the info for setting up anonymous ftp from SUN. I thought it was very helpful so I am posting this: From Mike.Sullivan@eng.sun.com Thu Mar 25 19:13:50 1993 From: Mike.Sullivan@eng.sun.com (Mike Sullivan) To: ogpaik@cco.caltech.edu Subject: Re: help on anonymous ftp Newsgroups: comp.unix.solaris References:<1ooskfINNf4i@gap.caltech.edu> Content-Length: 3808 You need some more libraries and /etc files. I use this to configure my anon-ftp area at boot: #!/bin/sh ftphome="/export/ftp" echo Fixing ${ftphome} for SunOS 5.x cp /usr/bin/ls ${ftphome}/bin chmod 111 ${ftphome}/bin/ls #The following are needed for basic operation cp /usr/lib/ld.so* ${ftphome}/usr/lib cp /usr/lib/libc.so.1 /usr/lib/libdl.so.1 ${ftphome}/usr/lib cp /usr/lib/libintl.so.1 /usr/lib/libw.so.1 ${ftphome}/usr/lib cp /etc/passwd /etc/group /etc/netconfig ${ftphome}/etc #The following are needed for 'ls' to resolve NIS names cp /usr/lib/nsw*.so ${ftphome}/usr/lib cp /usr/lib/libnsl.so.1 ${ftphome}/usr/lib cp /usr/lib/straddr.so ${ftphome}/usr/lib cp /etc/nsswitch.conf ${ftphome}/etc chmod 555 ${ftphome}/usr/lib/lib* chmod 444 ${ftphome}/etc/* # make device nodes. ticotsord and udp are necessary for # 'ls' to resolve NIS names. prefix="/devices/pseudo/mm:" for device in zero do line=`ls -l ${prefix}${device} | sed -e 's/,//'` major=`echo $line | awk '{print $5}'` minor=`echo $line | awk '{print $6}'` rm -f ${ftphome}/dev/${device} mknod ${ftphome}/dev/${device} c ${major} ${minor} done prefix="/devices/pseudo/clone:" for device in tcp udp ticotsord do line=`ls -l ${prefix}${device} | sed -e 's/,//'` major=`echo $line | awk '{print $5}'` minor=`echo $line | awk '{print $6}'` rm -f ${ftphome}/dev/${device} mknod ${ftphome}/dev/${device} c ${major} ${minor} done chmod 666 ${ftphome}/dev/* # This is for the wuarchive ftp server echo Setting up wuarchive FTP server cp -r /usr/local/etc/msgs ${ftphome}/etc chmod -R a+r ${ftphome}/etc/msgs chmod a+x ${ftphome}/etc/msgs cp -r /usr/local/etc/msgs /etc chmod -R a+r /etc/msgs chmod a+x /etc/msgs if [ ! -f /usr/sbin/in.ftpd.orig ]; then mv /usr/sbin/in.ftpd /usr/sbin/in.ftpd.orig fi cp /export/local/etc/ftpd /usr/sbin/in.ftpd Mike -- Mike Sullivan Internet: Mike.Sullivan@Sun.COM SunSoft newbie UUCP: ..!sun!yavin!mike_s DDI guy Compuserve: 75365,764 "And I believe in 8 of the Ten Commandments, and I believe in going to church every Sunday, unless there's a game on." - Steve Martin -- ---------------------------------------------------------------- CALIFORNIA INSTITUTE OF TECHNOLOGY |IIIIIIIIIIIIIIIIIIIIIIIIIII email: ogpaik@SEOUL.caltech.edu | Who sAys "vi" sUx ?? -----------------------------------------------------------------