安全问题需要禁止ftp用户登录shell
$sudo usermod -s /sbin/nologin FTP用户
设置后的问题是FTP用户 无法登录FTP
处理方法:
vim /etc/shells
添加
/sbin/nologin
之后FTP用户被禁止登录系统,FTP正常访问。
@博客园