[144] in netbsd-help mailing list archive
Re: FTP
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Apr 3 21:17:15 1995
To: sdfranks@MIT.EDU
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Sun, 02 Apr 1995 21:44:56 EDT."
<199504030144.VAA02060@field-of-dreams.mit.edu>
Date: Mon, 03 Apr 1995 21:17:51 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> Hi there. I think I asked this a while ago, but I never got an
> answer. How would I go about setting up my server as an anonymous
> ftp site?
I think this is mainly a matter of adding a user "ftp" to the passwd
files. I did this by doing
hesinfo ftp passwd >> /etc/master.passwd
vipw
and then fixing up the passwd entry by adding "::0:0" after the "101"
and changing "/mit/ftp" to "/var/spool/ftp". This probably isn't the
best way to add a user to master.passwd; it may be better to just use
vipw and enter all of the appropriate information by hand.
You will need to copy "ls" to "/var/spool/ftp/bin" to allow the ls
command to work, and create a "pub" directory. Always create
directories and files as root and then "chmod a+rX" them rather than
creating them as user ftp; the only exception should be if you want to
create an "incoming" directory, in which case you should probably
"chown ftp" it.