ubuntu linux 用户禁止shell登录,禁止ssh登录、允许ftp登录方法

修改/etc/shells,在shell列表中添加一行/usr/sbin/nologin。
把ftp用户的shell改为/usr/sbin/nologin。

sudo usermod -s /usr/sbin/nologin ftpuser

 

http://www.zhaokunyao.com/archives/463

posted @ 2013-04-04 15:52  hurner  Views(2208)  Comments(0Edit  收藏  举报