Chinaunix

标题: 如何让某用户不可以telnet呢? [打印本页]

作者: javamen    时间: 2006-01-21 17:52
标题: 如何让某用户不可以telnet呢?
我现在是这样做的,修改了/etc/passwd,把一个用户,例如ftpuser设置为/sbin/onlogin;

但是我su - ftpuser之后都不可以用了。

我不想要这种效果,我想要的是telnet不能登陆,但是可以su 过去的。。哪位高手可以告诉我呢?
作者: llzqq    时间: 2006-01-21 20:28
/etc/security/access.conf
作者: colddawn    时间: 2006-01-21 20:37
su可以无视passwd的设定指定shell的
su -s /bin/sh ftpuser
作者: javamen    时间: 2006-01-22 09:28
/etc/security/access.conf
这个怎么改啊?
我加了一句
-:ftpuser:0
可是我的ftpuser还是可以登陆啊。
作者: tanyear    时间: 2006-01-22 10:26
in my opinion,PAM is what you want
作者: kelela    时间: 2006-01-22 10:39
/etc/host.allow
/etc/host.deny
作者: ericlu5188    时间: 2006-01-23 13:40
用iptables 应该可以吧
作者: chinaux    时间: 2006-01-27 16:07
原帖由 tanyear 于 2006-1-22 10:26 发表
in my opinion,PAM is what you want



Exactly.
作者: q1208c    时间: 2006-01-27 18:55
关掉 telnetd .
作者: 李某人    时间: 2006-01-27 22:36
还在用telnet吗 ?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2