setting up anonymous ftp accounts

Bamf noel at uokmax.ecn.uoknor.edu
Wed Dec 20 17:28:29 AEST 1989


In article <1300 at ziggy.EDU> hughes at ziggy.cmd.usf.edu.UUCP (Ken Hughes) writes:
>I'd like to set up some anonymous ftp accounts here but the docs
>I have on ftp don't seem to mention this.  Can someone point me
>in the proper direction?  (e-mail appreciated)
>
>Ken
>hughes at ziggy.cmd.usf.edu

This is so easy, its ridiculous.  Just add a login entry for ftp.
On our site, its the following, from /etc/passwd:

ftp:xxxxxxxxxxxxx:74:74:Anonymous FTP,Anonymous,,:/src/ftp:/etc/ftponly

the ftp daemon already knows about it, it just checks to see if it
exists.   The directory /src/ftp is out anonymous ftp directory.
Yours will probably be different.   FTP chroot's to that directory,
so there must be a bin/ls and /etc/passwd  in that directory, for
the program to be able to do an ls, and to know who owns what.  It
is suggested that only a few necessary login's need be put into
etc/passwd, like root and ftp (no passwords needed, as they are
never actually used except by ftp)

So, except for the login, you only need to make the bin and etc
directory, cp ls to bin, and make a fake passwd file in etc.


(and BTW, man ftpd will tell you most of this.)

Noel

-- 
/*             "If you were a dragon, I'd give you a straw"
----You want it should sing too?----|       lost.in.the.net.of.it.all
 Dis' claimer, dat claimer, to look | noel at uokmax.ecn.uoknor.edu [192.35.96.111]
 at em', you'd never know the diff. |   "How many oranges in an orangutan?"  */



More information about the Comp.unix.questions mailing list