免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1687 | 回复: 2
打印 上一主题 下一主题

请教:不能在Redhat 9.0启动rsh服务? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-21 17:13 |只看该作者 |倒序浏览
说明如下,麻烦帮忙看下,谢谢。
Redhat Linux 9.0

[root@localhost /]# rpm -qa |grep rsh
rsh-0.17-14
rsh-server-0.17-14

通过ntsyv设置了rexec ,rlogin ,rsh三项服务自动启动。
[root@localhost /]# more /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 = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rshd
}


[root@localhost /]# more /root/.rhosts
192.168.0.108 root


[root@localhost /]# more /etc/hosts
127.0.0.1       localhost       localhost
192.168.0.108   test

# more /etc/securetty
tty10
tty11
rexec
rlogin
rsh

/etc/init.d/xinetd restart


[root@localhost /]# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:512             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:513             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:514             0.0.0.0:*               LISTEN

[root@localhost /]# lsof -i:512
COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
xinetd  1110 root    5u  IPv4  12444       TCP *:exec (LISTEN)
[root@localhost /]# lsof -i:513
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
xinetd    1110 root    6u  IPv4  12445       TCP *:login (LISTEN)

就是没有rsh的服务被启动。
不能哪里没有配置对?谢谢。

论坛徽章:
0
2 [报告]
发表于 2006-04-21 17:15 |只看该作者
/etc/init.d/rsh start

看看行不行

论坛徽章:
0
3 [报告]
发表于 2006-04-21 21:07 |只看该作者
rsh是通过xinetd.d来配置启动的。不过还是要谢谢您 。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP