Operating System - HP-UX
1833753 Members
2397 Online
110063 Solutions
New Discussion

Re: inetd telnet/tcp unknown service on syslog.log

 
Jimmy_13
Advisor

inetd telnet/tcp unknown service on syslog.log

I have a hp-ux 11i, the telnet don??t work.
In the boot all the tcp services are unknown. The server is a NIS client.
What happend?
16 REPLIES 16
Jeff Schussele
Honored Contributor

Re: inetd telnet/tcp unknown service on syslog.log

Hi Jimmy,

What does the file /etc/services look like?
Has it been deleted or corrupted?

And in /etc/nsswitch.conf what does the line
services: .......
look like?
If it has nis first, do you have connectivity to the NIS server?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jimmy_13
Advisor

Re: inetd telnet/tcp unknown service on syslog.log

The /etc/services look fine.
The nsswitch.conf is attached, but has two lines, is correct?
I can't ping to NIS server because is protected, but the NIS server is fine.

Jeff Schussele
Honored Contributor

Re: inetd telnet/tcp unknown service on syslog.log

Add this line to nsswitch.conf as a test

services: files

IF you're supposed to be using NIS for services - make it look like this

services: nis [NOTFOUND=continue UNAVAIL=continue] files

Sounds like it doesn't know *where* to look for it's services. You may need to bounce inetd after adding either of above.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jimmy_13
Advisor

Re: inetd telnet/tcp unknown service on syslog.log

The syslog before that the tcp services are unknown has this line:
ypbind: no entry in /var/yp/secureservers file
Jimmy_13
Advisor

Re: inetd telnet/tcp unknown service on syslog.log

Thanks,i unistall the NIS client and the tcp services works fine.
Ryan Wyler
Occasional Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I am experiancing the same problem. This HPUX box 11.11 actually didn't have a /etc/nsswitch.conf file at all but is getting all the info out of NIS+ for the services. No matter what I do the local /etc/services file is not even being looked at. Is there any other way to tell HP/UX to not look at the local files besides the nsswitch.conf?
Ryan Wyler
Occasional Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I am experiancing the same problem. This HPUX box 11.11 actually didn't have a /etc/nsswitch.conf file at all but is getting all the info out of NIS+ for the services. No matter what I do the local /etc/services file is not even being looked at. Is there any other way to tell HP/UX to not look at the local files besides the nsswitch.conf?
Ryan Wyler
Occasional Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I am experiancing the same problem. This HPUX box 11.11 actually didn't have a /etc/nsswitch.conf file at all but is getting all the info out of NIS+ for the services. No matter what I do the local /etc/services file is not even being looked at. Is there any other way to tell HP/UX to not look at the local files besides the nsswitch.conf?
Ryan Wyler
Occasional Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I am experiancing the same problem. This HPUX box 11.11 actually didn't have a /etc/nsswitch.conf file at all but is getting all the info out of NIS+ for the services. No matter what I do the local /etc/services file is not even being looked at. Is there any other way to tell HP/UX to not look at the local files besides the nsswitch.conf?
Ryan Wyler
Occasional Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I am experiancing the same problem. This HPUX box 11.11 actually didn't have a /etc/nsswitch.conf file at all but is getting all the info out of NIS+ for the services. No matter what I do the local /etc/services file is not even being looked at. Is there any other way to tell HP/UX to not look at the local files besides the nsswitch.conf?
Karthik S S
Honored Contributor

Re: inetd telnet/tcp unknown service on syslog.log

Check /etc/inetd.conf file entries for telnet should be present there. Also try enabling inetd in logging mode ..

Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Donny Jekels
Respected Contributor

Re: inetd telnet/tcp unknown service on syslog.log

check if the line with telnet in /etc/inetd.conf is uncommented.

get to the console and restart inetd.
"Vision, is the art of seeing the invisible"
Berlene Herren
Honored Contributor

Re: inetd telnet/tcp unknown service on syslog.log

Ryan, without an nsswitch.conf file, hp uses the following default:

DNS NIS FILES

There are several nsswitch.? files under /etc.

#ll /etc/nss*

Try copying one of the nsswitch.compat or .nis or .nisplus (whichever you are using) to nsswitch.conf and see if that works.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Oleg Mercader-Kashin
Frequent Advisor

Re: inetd telnet/tcp unknown service on syslog.log

I have the same problem after install 11.11.
I have the same problem with "telnet" and "rlogin" but not with "su":
-------------------------------------
bash-2.04# telnet localhost
Trying...
Connected to localhost.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX uxbdhp01 B.11.11 U 9000/785 (tb)

login: merol
Password:
Login incorrect

Wait for login retry: ..
login:
---------------------------------------
My ws now is 11.11 but the rest of ws are 10.20 and use NIS (not NIS+). I had to activate NIS (+nsswitch.conf) but problem persist.
Thank you for your cooperation.
Steven E. Protter
Exalted Contributor

Re: inetd telnet/tcp unknown service on syslog.log

You have to have an nsswitch.conf file.

swagentd won't run right without one.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Oleg Mercader-Kashin
Frequent Advisor

Re: inetd telnet/tcp unknown service on syslog.log

Yes, I have it now (I had to create it after install a 11.11, without it I couldn't start Xwindow):
bash-2.04# cat /etc/nsswitch.conf
passwd: nis files
group: nis files
hosts: nis [NOTFOUND=continue UNAVAIL=continue] files [NOTFOUND=continue UNAVAIL=continue] dns
services: nis [NOTFOUND=continue UNAVAIL=continue] files
networks: nis [NOTFOUND=continue UNAVAIL=continue] files
protocols: nis [NOTFOUND=continue UNAVAIL=continue] files
publickey: nis [NOTFOUND=continue UNAVAIL=continue] files
netgroup: nis [NOTFOUND=continue UNAVAIL=continue] files
automount: files nis
aliases: files nis

I can do "su - merol" without problem, also I can check my host:
bash-2.04# /usr/contrib/bin/nsquery hosts uxbdhp01

Using "nis [NOTFOUND=continue UNAVAIL=continue] files [NOTFOUND=continue UNAVAIL=continue] dns" for the hosts polic
y.

Searching nis for uxbdhp01
Hostname: uxbdhp01
Aliases:
Address: 155.208.194.198
Switch configuration: Terminates Search

but after telnet doesn't recognize any NIS login.
best regards,