pw useradd -m -n ftp -c "Anonymous FTP User,,," -s /sbin/nologin -d "/var/ftp"
cd /var/ftp
rm -r .*
mkdir pub
chown -R root:ftp /var/ftp/
chmod 755 etc
echo "ftp" >> /etc/ftpchroot
touch /var/log/ftpd
echo 'ftpd_enable="YES"' >> /etc/rc.conf.local
echo 'ftpd_flags="-ASll"' >> /etc/rc.conf.local
service ftpd start