Setting Anonymous FTP under Solaris 2.X ======================================= 1) Be a superuser 2) Add user ftp in /etc/passwd and /etc/shadow. eg) ftp:x:100:100:Anonymous ftp:/user/FTP:/bin/true <- passwd eg) ftp:::::::: <- shadow 3) Make group ftp_g in /etc/group. eg) ftp_g::100: 4) Make a directory % mkdir ~ftp ~ftp/{bin,dev,etc,pub,usr,usr/lib} 5) Copy /bin/ls. % cp /bin/ls ~ftp/bin 6) Copy /etc/{passwd,group,netconfig}. % cp /etc/{passwd,group,netconfig} ~ftp/etc 7) Copy Runtime loader. % cp /usr/lib/ld.so ~ftp/usr/lib/ld.so % cp /usr/lib/ld.so.1 ~ftp/usr/lib/ld.so.1 8) Create ~ftp/dev/zero which is used by runtime loader. % cd ~ftp/dev % mknod tcp c 11 42 % mknod ticotsord c 105 1 % mknod udp c 11 41 % mknod zero c 13 12 9) Make a copy of the latest version of the shared C library. % cp /usr/lib/libc* ~ftp/usr/lib % cp /usr/lib/libdl* ~ftp/usr/lib % cp /usr/lib/libintl* ~ftp/usr/lib % cp /usr/lib/libnsl* ~ftp/usr/lib % cp /usr/lib/libsocket* ~ftp/usr/lib % cp /usr/lib/libw* ~ftp/usr/lib % cp /usr/lib/nss_* ~ftp/usr/lib % cp /usr/lib/straddr* ~ftp/usr/lib 10) Set permission % cd ~ftp % chown root . pub % chgrp other . pub % chown root bin bin/ls etc etc/[pg]* dev dev/zero usr usr/lib usr/lib/* % chgrp wheel bin bin/ls etc etc/* dev dev/zero usr usr/lib usr/lib/* % chmod 111 bin/ls % chmod 444 etc/* % chmod 555 . bin dev etc usr usr/lib usr/lib/* % chmod 777 pub 11) Check for ftpd in /etc/inetd.conf. eg) ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd Note: It is suggested to allow users read only permission (444) for /pub and make /incoming for files uploading with write permission (544) -------------------------------------------------------------