标签:服务 umask plist useradd dict success mct bad conf
vsftpd_本地用户模式
相对匿名来说本地用户比较安全
修改配置文件:
[root@CnBlogs ~]# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
local_umask=022
write_enable=YES
userlist_deny=YES
userlist_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
#以上与源配置文件相同的不写,不同的修改
创建用户:
[root@CnBlogs ~]# useradd linuxs
[root@CnBlogs ~]# passwd linuxs
Changing password for user linuxs.
New password:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic
Retype new password:
passwd: all authentication tokens updated successfully.
重启服务:
[root@CnBlogs ~]# systemctl restart vsftpd
验证:
C:\Users\msl23.DESKTOP-3KI3FMN>ftp 192.168.200.102
连接到 192.168.200.102。
220 (vsFTPd 3.0.2)
200 Always in UTF8 mode.
用户(192.168.200.102:(none)): linuxs
331 Please specify the password.
密码:#######
230 Login successful.
linux[基础]-30-[vsftpd]-[本地用户访问]-[03]
标签:服务 umask plist useradd dict success mct bad conf
原文地址:http://www.cnblogs.com/msl23/p/7643744.html