您的位置:首页 > 其它

如何禁止普通用户通过rsh登陆计算节点

2013-01-10 21:21 459 查看
依次修改各计算节点中/etc/xinetd.d/文件夹下面的rsh、rlogin、rexec文件

修改内容如下所示:

[root@node11 ~]# vi /etc/xinetd.d/rsh

# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
service shell
{
disable = yes [/b]将no[/b]改为yes[/b]
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
}
~

按照上面方法依次修改rsh、rlogin、rexec文件。

之后重启xinetd服务:

[root@node11 ~]# service xinetd restart

stop xinetd: [ok]

start xinetd: [ok]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: