проверка состояния
1.
grep -v ^# /etc/inetd.conf
# grep -v ^# /etc/inetd.conf
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
shell stream tcp6 nowait root /usr/sbin/rshd rshd
login stream tcp6 nowait root /usr/sbin/rlogind rlogind
exec stream tcp6 nowait root /usr/sbin/rexecd rexecd
ntalk dgram udp wait root /usr/sbin/talkd talkd
daytime stream tcp nowait root internal
time stream tcp nowait root internal
daytime dgram udp wait root internal
time dgram udp wait root internal
caa_cfg stream tcp6 nowait root /usr/sbin/clusterconf clusterconf >>/var/adm/ras/clusterconf.log 2>&1
xmquery dgram udp6 wait root /usr/bin/xmtopas xmtopas -p3
2.
netstat -anf inet | perl -ne 'print if /tcp.*\.(23|512|513|514).*LISTEN/'
tcp 0 0 *.23 *.* LISTEN
tcp 0 0 *.512 *.* LISTEN
tcp 0 0 *.513 *.* LISTEN
tcp 0 0 *.514 *.* LISTEN
исправление
chsubserver -r inetd -C /etc/inetd.conf -d -v 'telnet' -p 'tcp6'
chsubserver -r inetd -C /etc/inetd.conf -d -v 'exec' -p 'tcp6'
chsubserver -r inetd -C /etc/inetd.conf -d -v 'shell' -p 'tcp6'
chsubserver -r inetd -C /etc/inetd.conf -d -v 'login' -p 'tcp6'
проверка после
1.
grep -v ^# /etc/inetd.conf
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
ntalk dgram udp wait root /usr/sbin/talkd talkd
daytime stream tcp nowait root internal
time stream tcp nowait root internal
daytime dgram udp wait root internal
time dgram udp wait root internal
caa_cfg stream tcp6 nowait root /usr/sbin/clusterconf clusterconf >>/var/adm/ras/clusterconf.log 2>&1
xmquery dgram udp6 wait root /usr/bin/xmtopas xmtopas -p3
2.
netstat -anf inet | perl -ne 'print if /tcp.*\.(23|512|513|514).*LISTEN/'
должно быть пусто
Комментариев нет:
Отправить комментарий