1833845 Members
2025 Online
110063 Solutions
New Discussion

Re: Unable to rlogin

 
SOLVED
Go to solution
Andre Ford
Advisor

Unable to rlogin

Hello,

I've posted here in the past and received outstanding support so I'm hoping that someone can help me again. We have five HP-UX chpj200 systems that are running v9.05. Some of our users require rlogin (no password)capability in order to do distributed builds across each system. They initiate a script which executes rlogin and they are able to accomplish their tasks. This feature was working properly over the holiday but we had to shut down the systems on New Years Eve. Upon bringing the systems back online, everything seems to work fine, however, the users are no longer able to rlogin without supplying a password. I've researched their .rhosts files and they are correctly configured. I've also checked to ensure that the inetd daemon is running. In addition, I noticed that there was no hosts.equiv file in /etc on none of the systems. I'm not sure if this file even existed but I created one using SAM to include the users that need this service. Unfortunately, it's still not working. I'm certain that something is just not set correctly but I'm not sure where else to look. Any assistance is appreciated. Thanks.

Andre
13 REPLIES 13
Sanjay_6
Honored Contributor

Re: Unable to rlogin

Hi Andre,

Are all users unable to do a rlogin or only a few of them. Is root able to do a rlogin ?.

Hope this helps.

Regds
Rita C Workman
Honored Contributor

Re: Unable to rlogin

Not real familiar with 9...started @ver 10..But..

Make sure that /etc/passwd entry is on the remote for user.
Make sure that rlogin is in /etc/services.
Make sure there is nothing stopping it like an entry in /var/adm/inetd.sec.
Make sure the full name and alias of the remote is correct in the /etc/hosts on all affected systems.
Make sure the rlogin is correctly configured in the /etc/inetd.conf file.

Just a couple things to rule out...hope they help,
Rita
harry d brown jr
Honored Contributor

Re: Unable to rlogin

Wow, 9.05, it isn't very y2k compliant? Anyway's are the user's workstations (IP's and names) in the /etc/hosts files?

live free or die
harry
Live Free or Die
Ravi_8
Honored Contributor

Re: Unable to rlogin

Hi,
just a thought

check the rlogin entry in /etc/inetd.conf
and run #inetd -c

never give up
Krishna Prasad
Trusted Contributor

Re: Unable to rlogin

Also, Did any network cards get added or changed?

We added an additional network card to a machine giving it two network cards. Rlogin and remsh functionality stoped because it connected to the new cards IP address instead of the old one. When we added the network card address to .rhost it started working again.

We found this out by doing a traceroute between the boxes in question and found it would stop at the first response from the box.

I.E. Hostname 1 ip 1.2.3.4 original ip
ip 5.6.7.8 new ip

did traceroute from hostname 2 to hostname 1
and the route stopped at 5.6.78 even though there was no entry for 5.6.7.8 in a host file or DNS and we used the name of host1 that was in a host file and DNS.

Either way trace running traceroute to see if you are getting to the box
Positive Results requires Positive Thinking
Darrell Allen
Honored Contributor

Re: Unable to rlogin

Hi Andre,

Please clarify: can the users rlogin with a password? If so, it's may be a host name resolution issue as others have mentioned.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Steven Gillard_2
Honored Contributor
Solution

Re: Unable to rlogin

Name resolution is also very important. Are you using DNS? Make sure you can resolve the host names and IP addresses of all systems and that they all match up.

Regards,
Steve
John Palmer
Honored Contributor

Re: Unable to rlogin

Its worth checking that the name of the host where you are logging in from is being resolved correctly.

rlogin, supply the password then run 'last -R ' to find out what the remote host is known as. Then compare that with the contents of .rhosts.

Regards,
John
John Bolene
Honored Contributor

Re: Unable to rlogin

9.05 works just fine, I have found no Y2K issues on my machine, and I was not the only surprised one.

You need to check your DNS entries to see if everything matches.

The entries in the .rhosts file must be the exact domain name if DNS is used.

You can do a who -a on the remote machine to see what it thinks your original machine's name is.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Andre Ford
Advisor

Re: Unable to rlogin

Sanjay, Darrell - As far as I know, all users are able to rlogin as long as they provide a password. Root cannot rlogin

Rita - In /etc/services, there is an entry as follows:

login 513/tcp # remote login

Didn't see one for 'rlogin'. Have a similar entry in /etc/inetd.conf:

login stream tcp nowait root /etc/tcpd rlogin

Harry - Don't have the users workstation info in the /etc/hosts file but I added it and called the user back and he's still unable to rlogin without a password.

Ravi - Tried running inetd -c but still no luck

Ron - No network cards were changed or added.

John P - Ran last -R and the names match up.

I've only been working with HP-UX since May (been out of Unix for almost seven years) but things seem to work fine. unfortunately, we can't upgrade since we have to mirror the environment that our clients work in.

The one thing that I did notice was that the .rhosts files did not contain the full name as listed in /etc/hosts. I will make those changes and give it try. I really appreciate all of the assistance. I'll let you know what happens. Thanks again.
harry d brown jr
Honored Contributor

Re: Unable to rlogin

Andre,

Try putting "+ +" in your .rhosts file (JUST AS A QUICK TEST) while removing everything else. Make sure to copy your original .rhosts file first!

live free or die
harry
Live Free or Die
Andre Ford
Advisor

Re: Unable to rlogin

Ok, I modified my .rhosts file and made sure that I had complete entries that matched the /etc/hosts file and I was able to rlogin without a password. I'm trying to get back in touch with the client to make sure it works for them. I'll let you know. Thanks folks for the assistance!
Andre Ford
Advisor

Re: Unable to rlogin

All,

Rlogin is now working properly. After modifying the /etc/hosts file, the client called back saying that everything was working. I am very grateful for all of your assistance. I find this forum extremely helpful and very professional. Again, thank you all for everything!

Andre