Operating System - HP-UX
1825766 Members
2127 Online
109687 Solutions
New Discussion

Re: telnetd not working...

 
SOLVED
Go to solution
Bharat Katkar
Honored Contributor

telnetd not working...

Hi All,
I get messages in /var/adm/syslog/syslog.log as:


Rereading configuration
ftp/tcp: Unknown service
telnet/tcp: Unknown service
tftp/udp: Unknown service
bootps/udp: Unknown service
login/tcp: Unknown service
shell/tcp: Unknown service
exec/tcp: Unknown service
ntalk/udp: Unknown service
auth/tcp: Unknown service
printer/tcp: Unknown service
daytime/tcp: Unknown service
daytime/udp: Unknown service
time/tcp: Unknown service
echo/tcp: Unknown service
echo/udp: Unknown service
discard/tcp: Unknown service
discard/udp: Unknown service
chargen/tcp: Unknown service
chargen/udp: Unknown service
kshell/tcp: Unknown service
klogin/tcp: Unknown service
registrar/tcp: Unknown service
hacl-cfg/udp: Unknown service
hacl-cfg/tcp: Unknown service
recserv/tcp: Unknown service
instl_boots/udp: Unknown service

I checked /etc/services /etc/protocols /etc/inetd.conf everything looks normal. Nothing in /var/adm/inetd.sec. And now i am not able to do telnet/ftp/rcp/rsh!!

Maximum user that log into this machine are not more than 5.
What could be cause of problem.
Thanks in advance for your help.
Regards,
You need to know a lot to actually know how little you know
10 REPLIES 10
Rita C Workman
Honored Contributor

Re: telnetd not working...

First quick thing I check on 'weird' things is permissions...

644 root:sys for /etc/services
444 bin:bin for /etc/protocols

Just to start ruling things out...

Rita
Rita C Workman
Honored Contributor
Solution

Re: telnetd not working...

Here's another thing to check...

Your /etc/nsswitch.conf file. There should be a line called services - What does it say ?

Since I don't know what your running, let me just say that mine shows:
services : files

But based on what your doing, this might need to be different...

Rita
Bharat Katkar
Honored Contributor

Re: telnetd not working...

Here are the file permissions:
-rw-r--r-- 1 root sys 5915 Jul 20 16:47 services
-rw-r--r-- 1 bin bin 1710 Jul 20 16:48 protocols
-rw-r--r-- 1 root sys 3875 Jul 20 16:54 inetd.conf

I think they are right.
Regards,

You need to know a lot to actually know how little you know
Rita C Workman
Honored Contributor

Re: telnetd not working...

What about services line in your nsswitch.conf file ??

/rcw
Bill Hassell
Honored Contributor

Re: telnetd not working...

Remove or rename the service configuration file: /etc/nsswitch.conf and reboot to see if services start running. If so, then create /etc/nsswitch.conf by copying /etc/nsswitch.hp_defaults.


Bill Hassell, sysadmin
Bharat Katkar
Honored Contributor

Re: telnetd not working...

Hi Rita,
NSSWITCH was in problem. It was actually working before since it first looks out for NIS server and then for local files. I simply missed out that one. I don't know why NIS server suddenly stopped working but well now i am able to access the server.

Thanks a lot for your immediate support. You really hit the one in 2 min.

Thanks agains,
Regards,
Bharat

You need to know a lot to actually know how little you know
Rita C Workman
Honored Contributor

Re: telnetd not working...

Bahrat...thanks for the points, but is it fixed ? Was it the nsswitch.conf file ?

Rita
Rita C Workman
Honored Contributor

Re: telnetd not working...

Woohoo ! I luv it when things go ...f-a-s-t !

Regards,
Rita
Bill Hassell
Honored Contributor

Re: telnetd not working...

Just a suggestion: NIS (as well as DNS) are crucial system resources and cannot be allowed to fail. To avoid the downtime when this happens, you can use my suggested change to nsswitch.conf value and change dns to nis, but leave the critical production server names in /etc/hosts and look in files first. This is also a *significant* performance increase by not having to go across the network for stable IP addresses.


Bill Hassell, sysadmin
Bharat Katkar
Honored Contributor

Re: telnetd not working...

HI Bill,
I did exactly the same. Thanks for your suggestion and concern.
You all are always helpful and cooperative.
Regards,
You need to know a lot to actually know how little you know