静夜思 于 2012-05-26 23:02 发布
dir=/var/www/ username=user1; password=12345678; useradd -d $dir -s /bin/false $username; chown -R $username:$username $dir; echo "$username:$password" | chpasswd; echo "$username" >> /etc/vsftpd.chroot_list; chmod -R 777 $dir;