1832849 Members
2912 Online
110047 Solutions
New Discussion

rlogin doesn't work

 
SOLVED
Go to solution
Ionut Grigorescu_2
Super Advisor

rlogin doesn't work

Hi,

I cannot use rlogin on the NIS server. On the others machines it works fine, but on the server I receive an error from rlogind:
Host address mismatch, see the attachment with the print-out of /etc/hosts and ypcat hosts command.

Thanks in advance
If it weren't for STRESS I'd have no energy at all
6 REPLIES 6
Steve Steel
Honored Contributor

Re: rlogin doesn't work

Hi

On the NIS server and the machine where you wish to rlogin from do you get the same result for.

nslookup hostname(server)
nslookup ip(server)
nslookup hostname(sourcemachine)
nslookup ip(sourcemachine)

This is a name resolution problem and this should show it


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ionut Grigorescu_2
Super Advisor

Re: rlogin doesn't work

I try to rlogin from nmsgprs1 to nmsmd (rlogin doesn't work from nmsgprs1 to any other station). These are the results on nmsgprs1:


# nslookup nmsgprs1
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

# nslookup 10.1.32.12
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

# nslookup 10.1.33.12
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsgprs1
Address: 10.1.33.12
Aliases: nmsgprs1_of_lan1

# nslookup nmsmd
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsmd
Address: 10.1.33.17
Aliases: nmsmd.comlan.viag-interkom.de, nmsmd

# nslookup 10.1.33.17
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsmd
Address: 10.1.33.17
Aliases: nmsmd.comlan.viag-interkom.de, nmsmd

On the remote machine:

nmsmd:/# nslookup nmsgprs1
Default NIS Server: nmscom.comlan.viag-interkom.de
Address: 10.1.33.14
Aliases: nmscom

Trying NIS
Name: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

nmsmd:/# nslookup 10.1.32.12
Default NIS Server: nmscom.comlan.viag-interkom.de
Address: 10.1.33.14
Aliases: nmscom

Trying NIS
Name: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

nmsmd:/# nslookup nmsmd
Default NIS Server: nmscom.comlan.viag-interkom.de
Address: 10.1.33.14
Aliases: nmscom

Trying NIS
Name: nmsmd
Address: 10.1.33.17
Aliases: nmsmd.comlan.viag-interkom.de, nmsmd
I cannot see the problem (maybe because I'm a beginner...:-
If it weren't for STRESS I'd have no energy at all
Fragon
Trusted Contributor

Re: rlogin doesn't work

Maybe name service problem. Try this:
If /etc/nsswitch.conf exists,please modify it directly:
...
hosts: nis files dns
...
-----------------------
If /etc/nsswitch.conf doesn't exist, please do:
#cp -p /usr/newconfig/etc/nsswitch.conf /etc/
and modify it as above.

Steve Steel
Honored Contributor
Solution

Re: rlogin doesn't work

Hi

For me it gets confused here

# nslookup 10.1.32.12
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

# nslookup 10.1.33.12
Default NIS Server: nmsgprs1.comlan.viag-interkom.de
Address: 10.1.32.12
Aliases: nms1, nmsgprs1

Trying NIS
Name: nmsgprs1
Address: 10.1.33.12
Aliases: nmsgprs1_of_lan1


33.12 has as name an alias of 32.12 and taht is against the logic of this

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ionut Grigorescu_2
Super Advisor

Re: rlogin doesn't work

OK, I have seen now. Any suggestions to correct that - I'm not sure what is the impact of a change on other parts of the system. I use for example for backups a Omniback server which maybe use the aliases/names to contact the hosts..
If it weren't for STRESS I'd have no energy at all
Bryan_82
New Member

Re: rlogin doesn't work

Folks,

A common issue with `rlogin` is ESCAPE characters in the ~/.rhosts (or hosts.equiv) file(s). Even when you can reduce your issue to reviewing the simple case of only /etc/hosts and ~/.rhosts, with no resolv.conf (or nsswitch.conf) files and you still have rlogin issues---->
(a) mv ~/.rhosts ~/.rhosts.orig
(b) vi ~/.rhosts {be careful with typos and escape sequences)

Cheers,

Bryan