Operating System - HP-UX
1824711 Members
3496 Online
109674 Solutions
New Discussion юеВ

rlogin asking for password

 
SOLVED
Go to solution
Anitha_3
Frequent Advisor

rlogin asking for password

Hi Experts,

today is rlogin day.

here is a typical problem,

i habe two machines "hpport" and "Eureka" o have a .rhosts entries as follows

'tbaadm is the user from whr i want to rlogin

on hpport
==============

Eureka tbaadm


on Eureka
===========
hpport tbaadm.

the problem is i am able to rlogin from "eureka" to "hpport" without prompting for password. but whn i rlogin from "hpport" to "Eureks" it is asking me for password.

kindly let me know. what i need to do...

thanks & regards,
Govind.
30 REPLIES 30
Sunil Sharma_1
Honored Contributor

Re: rlogin asking for password

Govind,

check the permission of .rhosts file it should be own by tbaadm.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Manish Srivastava
Trusted Contributor

Re: rlogin asking for password

Hi,

Check for typos too.

manish
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi sunil,

the file owner is tbaadm only..

regards,
govind.
Muthukumar_5
Honored Contributor

Re: rlogin asking for password

Are you using .rhosts file on the current $HOME/ diretory for that user. Did you check the owner and user permission to access that file.

Is there any settings on /etc/hosts.equiv file there.
r* command access is check as,
When a request is made for access, the /etc/hosts.equiv file is searched first. If a match is found, access is permitted. If no match is found, the .rhosts file is searched, if one exists in the local user's home directory.

Change the owner / group permission related to user and it must not be a symbolic link. If you are not having some other entries related on /etc/hosts.equiv then try now.

Regards
-Muthu
Easy to suggest when don't know about the problem!
Marcel Boogert_1
Trusted Contributor

Re: rlogin asking for password

Hi Govind,

Check your /etc/hosts.equiv file for the presence of tbaadm.

MB.
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi,

i dont have hosts.equiv file. i have only .rhosts file. so it will search in only this file.

my $HOME is /wd/tbaadm on the both the machines. i have .rhosts files at this location and and owned by tbaadm only.

regards,
Govind.
Marcel Boogert_1
Trusted Contributor

Re: rlogin asking for password

Hi Govind,

Check the hpport machine's /etc/inetd.conf file for the presence of:

login stream tcp nowait root /usr/lbin/rlogind rlogind

this should be in there to handle rlogin requests.

On the hpport machine do:

ps -ef | grep rlogind

This daemon should be running there.

MB.
Sunil Sharma_1
Honored Contributor

Re: rlogin asking for password

what permission .rhost file have ?

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sunil Sharma_1
Honored Contributor

Re: rlogin asking for password

insted of hostname try entering Ip address in .rhosts file.
Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi,

There is no entry ├в login stream tcp nowait root /usr/lbin/rlogind rlogind├в

Instead there is an entry ├в klogin stream tcp nowait root /usr/lbin/rlogind rlogind ├в K├в

ps -ef | grep rlogind
this daemon is not running

how do i start this??

thanks & re
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi

sorry !! the text appears to be in diffrent format.
There is no entry
"login stream tcp nowait root /usr/lbin/rlogind rlogind"

Instead there is an entry
"klogin stream tcp nowait root /usr/lbin/rlogind rlogind ├в K"

ps -ef | grep rlogind --- is not runnig.

regards,
Govin
Marcel Boogert_1
Trusted Contributor
Solution

Re: rlogin asking for password

Govind,

Just add the line as i mentioned above to the /etc/inetd.conf and issue the command /sbin/init.d/inetd stop and then /sbin/init.d/inetd start.

MB.
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi,

will issuing the "inetd stop", does not stop any process which are running on right? because this is a production server.

thanks
Govind.
Michael_356
Frequent Advisor

Re: rlogin asking for password

try inetd -c
you can do this also on a hot server without any problems.

Regards

Michael
Marcel Boogert_1
Trusted Contributor

Re: rlogin asking for password

Thanx michael,

I was looking for that. Just couldn't come up with that for a sec.

MB.
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi marcel and michel,

thanks a lot for the soon reply,

it worked well for me.

Regards,
Govind.
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi,

sorry guys, the problem is not resolved.

after putting that entry. i restarted the system. still rlogind process is not running.

and i am sorry to say that. the other server I.e. Eureka is an tru64 linux box.

kindly help me to resolve this issue..

thanks & regards.
Govind.
Michael_356
Frequent Advisor

Re: rlogin asking for password

Hi there,

the string you need in /etc/inetd.conf is:

login stream tcp nowait root /usr/sbin/tcpd in.rlogind

then restart inetd with inetd -c

this should do the trick

Regards

Michael
Fabio Ettore
Honored Contributor

Re: rlogin asking for password

Hi,

just for a test put the following in /.rhosts of Eureka:

+ +

They are only two plus, it doesn't matter if they are separated by either a space or a TAB. Just put them in the first line of the /.rhosts file and re-try the rlogin operation from hpport to Eureka.

Let me know the result.

Best regards,
Fabio
WISH? IMPROVEMENT!
Anitha_3
Frequent Advisor

Re: rlogin asking for password

no luck, it still keeps asking for password.

regards,
Govind.
Fabio Ettore
Honored Contributor

Re: rlogin asking for password

Well, it just was a thought.
Anyway if Eureka is a Tru64 system then you should submit the question in Tru64 and Networking section where Tru64 people could help you better.

http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=287

Best regards,
Fabio
WISH? IMPROVEMENT!
Anitha_3
Frequent Advisor

Re: rlogin asking for password

hi,

the problem is not from the Eureka(tru64) it is working fine, but the problem is from the hp-ux machine.

thanks
Govind.
Michael_356
Frequent Advisor

Re: rlogin asking for password

let me resume the facts:

tru64/linux-box
the entry for login in /etc/inetd.conf is set # on both machines?
the user tbaadm exists on both machines
~/.rhosts owned by tbaadm
.rhosts is wide open with + +

rlogin still asks for password?

Hmmm...
really strange

do you have other users on eureka?
then make a .rhosts-file for another user and try rlogin eureka -l otheruser

please post the results in this forum

Michael
Marcel Boogert_1
Trusted Contributor

Re: rlogin asking for password

Govind,

After your reboot, did the rlogind daemon started succesfully or not. If not start it again with /sbin/init.d/inetd -c and solve the problem of the automatic start of this daemon.

MB.