FTP用户-禁止登录系统

 

OS是Ubuntu 11.10。

1.   which nologin

#/usr/sbin/nologin

2.   vim /etc/shells   #在该文件后添加/usr/sbin/nologin

3.   usermod -s  /usr/sbin/nologin 要停用的FTP帐号

4.   su – ftp1   #测试

This account is currently not available.无法登录系统,测试FTP登录成功。

posted @ 2017-03-02 14:06  k98091518  阅读(1587)  评论(0编辑  收藏  举报