Linux平台上为root开启rsh服务

来源:互联网 发布:大数据方向研究生 编辑:程序博客网 时间:2024/04/29 13:34

自己配置摸索了半天,觉得比Solaris复杂。发现互联网上的好像没有什么现成的guide,于是记录下来,或许有用。

1> 确保安装rsh服务: rsh-server

2> 激活rsh服务

# chkconfig rsh on

chkconfig 会修改/etc/xinetd/rsh文件,将disable设为no。

3> 创建~/.rhosts。内容为+。

# cat ~/.rhosts
+

 4>创建/etc/securetty,加入rsh。

# cat /etc/securetty
rsh

5> 修改/etc/pam.d/rsh

auth       required     pam_rhosts_auth.so
在该行末位加入promiscuous
auth       required     pam_rhosts_auth.so promiscuous

原创粉丝点击