如何禁止普通用户通过rsh登陆计算节点
?依次修改各計算節(jié)點中/etc/xinetd.d/文件夾下面的rsh、rlogin、rexec文件
?修改內(nèi)容如下所示:
?
[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???? 將no改為yes
??????? socket_type???????????? = stream
??????? wait??????????????????? = no
????? ??user??????????????????? = root
??????? log_on_success????????? += USERID
??????? log_on_failure????????? += USERID
??????? server????????????????? = /usr/sbin/in.rshd
}
~
按照上面方法依次修改rsh、rlogin、rexec文件。
之后重啟xinetd服務(wù):
[root@node11 ~]#?service xinetd?restart
?stop xinetd:????????????????????????????????????????????? [ok]
?start xinetd:?????????????????????????????????????????????? ?[ok]??????????????
?
?
轉(zhuǎn)載于:https://blog.51cto.com/lipscu/1113719
總結(jié)
以上是生活随笔為你收集整理的如何禁止普通用户通过rsh登陆计算节点的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: [zz]为 lua 封装 C 对象的生存
- 下一篇: java基础----线程
