- 论坛徽章:
- 0
|
说明如下,麻烦帮忙看下,谢谢。
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的服务被启动。
不能哪里没有配置对?谢谢。 |
|