Operating System - HP-UX
1753354 Members
5049 Online
108792 Solutions
New Discussion юеВ

Re: rlogin with out password for root login problem

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

rlogin with out password for root login problem

Hi

i want to rlogin some hp-ux server (server1 - 10.250.0.1) from some hp-ux server (work1 - 10.250.0.120) with out prompting for passwords.

I have created the entry in /root/.rhosts of "server1" for "work1".

Ex: in server1

# vi /root/.rhosts
work1 root
work2 root
work3 root


#vi /etc/hosts
10.250.0.120 work1
10.250.0.121 work2
10.250.0.122 work3


So I think that i have made necessary entries in server1 for allowing work1 to login to server1 thru rlogin with out prompting for password.

The problem is that i am getting prompt for password when i try to rlogin from work1 as root user to server1.


But i am able to rlogin to server1 from work2 and work3 as root user with out prompting for password.


How to solve this.
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: rlogin with out password for root login problem

Is root's home directory the same on work1 as it is on work2 and work3? Check the /etc/passwd entries.


Pete

Pete
Rita C Workman
Honored Contributor

Re: rlogin with out password for root login problem

Then there is something 'off' on work1 or server1.

If your .rhosts file is correct - and it looks ok above. Maybe your issue is resolution. Is your /etc/host file the same on both boxes?
Try doing nslookup reverse lookups on both boxes and see if you get the same results.

Just a thought,
Rita
Mel Burslan
Honored Contributor

Re: rlogin with out password for root login problem

also, when you are trying to rlogin from work1 to server1, open another terminal window to server1 and run the command

tail -f /var/adm/syslog/syslog.log

and watch the log to see what's happening during your rlogin attempt. You might see the reason for denial of your passwordless login.

Also, not to demonize you but, rlogin being as insecure as it is, consider switching to ssh for passwordless logins, using trusted key pairs.
________________________________
UNIX because I majored in cryptology...
Mel Burslan
Honored Contributor

Re: rlogin with out password for root login problem

Oh by the way, would work1 machine have more than one network card and your rlogin traffic might be coming from another interface, making the .rhosts entry worthless ??
________________________________
UNIX because I majored in cryptology...
nightwich
Valued Contributor

Re: rlogin with out password for root login problem

Hi Kumar,

This is a simple setup.

You only have to create the rhosts file is the home directory of the user.

You file should look like this:

more .rhosts

"full qualified name" user

I think your problem is not to use the full qualified name.

Try also with the ip name


more .rhosts
"ip_of_the_server" user

If you continue with problems please reply.

And assigne some points !! ..

Regards !! ..
Sunny123_1
Esteemed Contributor

Re: rlogin with out password for root login problem

Hi Kumar

Remember that root home directory shuld be the same for all the servers to do rlogin.

Regards
Sunny
senthil_kumar_2
Regular Advisor

Re: rlogin with out password for root login problem

Hi All,

I am closing this thread.