独学而无友,则孤陋而寡闻!
分类: BSD
2007-09-06 22:20:39
mkdir /var/share/empty chown ftp:ftp /var/share/empty chmod 500 /var/share/empty |
cp /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE/vsftpd.conf /usr/local/etc/vsftpd.conf |
listen=YES listen_port=1122 anon_root=/home/ftp |
ee /etc/rc.d/vsftpd.sh |
#!/bin/sh /usr/local/libexec/vsftpd /usr/local/etc/vsftpd.conf & |
chmod 755 /etc/rc.d/vsftpd.sh |
#!/bin/sh case "$1" in start) if [ -x /usr/local/libexec/vsftpd ]; then /usr/local/libexec/vsftpd /usr/local/etc/vsftpd.conf & echo . && echo 'VSftp server started.' fi ;; stop) killall vsftpd && echo . && echo 'VSftp server stopped.' ;; restart) echo . echo "Restart VSftp server ......" $0 stop sleep 5 $0 start ;; *) echo "$0 start | stop | restart" ;; esac #end of /usr/local/etc/rc.d/vsftpd.sh |
chmod 755 /usr/local/etc/rc.d/vsftpd.sh |
vsftpd_enable="YES" |