« February 3, 2004 | Main | February 10, 2004 »
February 9, 2004
newftpuser.sh for proftpd 我爱网络
http://windtear.net/archives/2004/02/09/000418.html #!/bin/bash # # newftpuser.sh for proftpd # Add ftp user @proftpd # By Zhang Xiuling (windtear@ipcn.org) # # ftpasswd --passwd --uid 99 --gid 99 --home /opt/temp --name temp \ # --shell /bin/false --file /usr/local/etc/ftpd.passwd # #MKPASSWD="/usr/bin/mkpasswd -l 8 -d 0 -c 8 -C 0 -s 0" DEFAULTUSER=password DEFAULTPATH=/home/ftp DEFAULTUID=99 DEFAULTGID=99 PLAINPASSDIR=/usr/local/etc/_user ADDUSERCMD=/$proftpd_contrib_dir/ftpasswd FILENAME=`basename $0` usage() { echo echo "Add More...Posted by windtear at 3:30 PM