!/bin/bash
if [ 0 on或 $0 off"
exit 1
fi
OPT=OPT" in
[Oo][nN]) CMD='YES';;
[Oo][fF][fF]) CMD='NO';;
*)
echo "请输入on或off"
exit 1
;;
esac
VSFTPD_CONF='/etc/vsftpd.conf'
sed -i 's/^.anonymous_enable=./anonymous_enable=VSFTPD_CONF
if [ 0 on或 $0 off"
exit 1
fi
OPT=OPT" in
[Oo][nN]) CMD='YES';;
[Oo][fF][fF]) CMD='NO';;
*)
echo "请输入on或off"
exit 1
;;
esac
VSFTPD_CONF='/etc/vsftpd.conf'
sed -i 's/^.anonymous_enable=./anonymous_enable=VSFTPD_CONF
本文标题:shell 开启匿名访问ftp脚本
本文链接:https://www.haomeiwen.com/subject/kirpyqtx.html
网友评论