From: narayan@sut.ac.jp (Devendra Narayan)
Subject: Re: setting up anonymous ftp
Organization: Science University of Tokyo
Followup-To: comp.sys.sun.admin
Date: Fri, 16 Oct 1992 01:55:37 GMT
X-Posted-From: kagumac2.cc.kagu.sut.ac.jp
NNTP-Posting-Host: sol.ctr.columbia.edu

In article <Oct15.173004.98047@yuma.ACNS.ColoState.EDU>, arvidson@lagrange
(John Arvidson  ) wrote:
> 
> Hi, can anyone out there help me to implement anonymous ftp on 
> a sparcstation ipc running SunOS Release 4.1.1?  I don't see 
> anything on this in the man pages or the sys. and net. adm. guide
> for sun os.  Thanks, John
> 
> arvidson@math.colostate.edu

There have been many requests for information 
on setting up anonymous ftp.Here is some information 
that may be of help. I must concede that I am no
unix expert and if any experts out there can add
or modify this information, it would be of help to
all.

Try the following :

Installing anonymous FTP on a Sun workstation (under 4.1.1, 4.1.2)

1) Create the user ftp in /etc/passwd.  Use a misc group.  The user`s home 
directory will be ~ftp where ~ftp is the root you wish anonymous users to
see. The entry in the passwd file should look something like

ftp::400:400:Anonymous FTP:/home/ftp:/bin/true

2) Create the home directory ~ftp.  Make the directory owned by ftp ( and 
same group as ftp) with permissions 555 (read, nowrite, execute).

3) Create the directory ~ftp/bin.  This directory is owned by root (group 
wheel) with permissions 555.

4) Copy the program ls into ~ftp/bin.  ls is owned by root with permissions

111 (noread, nowrite, execute).

5) Create the directory ~ftp/usr.  This directory is owned by root with 
permissions 555.

6) Create the directory ~ftp/usr/lib.  This directory is owned by root with

permissions 555.

7) Copy the runtime loader ld.so into ~ftp/usr/lib for use by ls.  ld.so is

owned by root with permissions 555.

8) Copy the latest version of the shared C library, libc.so.* into
~ftp/usr/lib for use by ls.  libc.so.* is owned by root with permissions
555. Run ldconfig.
**4.1.2 users: you also need to copy /usr/lib/libdl.so.* to /ftp/lib.

9) Create the directory ~ftp/dev.  This directory is owned by root with 
permissions 444.

10) ~ftp/dev/zero is needed by the runtime loader.  Move into the directory

~ftp/dev and create it with the command mknod zero c 3 12.

11) Make the directory ~ftp/etc.  This directory is owned by root with 
permissions 444.

12) Copy the files /etc/passwd and /etc/group into ~ftp/etc.  These files
should 
be mode 444.  The passwd file should only contain root, daemon, uucp, and 
ftp.  The group file must contain ftps group.

13) Make the directory ~ftp/pub.  This directory is owned by ftp with 
permissions 555.  Files are left here for public distribution.  All folders
inside ~ftp/pub should have the same permissions, except for the incoming
folder.

14)  If you wish to have a place for anonymous users to leave files, create
the 
directory ~ftp/pub/incoming.  This directory is owned by root with
permissions 
722 (root has all permissions, other users can only write).  Files can be
left here, but users cannot see what is there, to prevent the spread of
unauthorized files.

Also read the man page for ftpd. If you want to have messages to be
displayed on anonymous logins and statistical records of the anonymous file
transfers, check out the wustl.ftpd.shar program available from
wuarchive.wustl.edu ( in one of the directories ! )

Hope this helps

Devendra Narayan
Oct. 16. 1992
narayan@sut.ac.jp
Newsgroups: comp.sys.sun.admin