1829108 Members
14871 Online
109986 Solutions
New Discussion

Re: rlogin

 
leyearn
Regular Advisor

rlogin

now there are two Linux System
I want to setup rlogin
so I created .rhosts under root's homeDir separately
/root/.rhosts
hostA +
hostB +
but when rlogin hostB
the
Passwd: prompt appeared
how can i setup rlogin between two nodes
and root can rlogin another?
thanks
6 REPLIES 6
Alexander Chuzhoy
Honored Contributor

Re: rlogin

As for root's login -you have to add the following lines to /etc/securetty
pts/0
pts/1
pts/2
and so on.. add at least 30 so the last line will be pts/30
however it's very unsecure.You can use ssh instead...
Mobeen_1
Esteemed Contributor

Re: rlogin

I would suggest that you implement SSH as suggested in the earlier post. Its free and you don't have to pay for it :-)

rgds
Mobeen

Stuart Browne
Honored Contributor

Re: rlogin

The '/etc/securetty' way around not being able to rlogin as root is to put 'rsh' in it.
One long-haired git at your service...
leyearn
Regular Advisor

Re: rlogin

no
I put 'rsh' into securetty
I can't rlogin without passwd
Stuart Browne
Honored Contributor

Re: rlogin

remove the '+' from the .rhosts entiries. Make sure .rhosts has 600 permissions (-rw-------), and is owned by root.

ensure that the 'rlogin' service is started.

After checking all of that, show us the error messages in the log files (usually /var/log/mssages or /var/log/secure).
One long-haired git at your service...
Muthukumar_5
Honored Contributor

Re: rlogin

Is /root/ your root user's home directory?

grep root /etc/passwd Are you getting 6th field as /root?

If okie then,

hostB
/root/.rhosts
hostA root

hostA
/root/.rhosts
hostB root

Else

Put .rhosts file on / as /.rhosts with the same settings in the above

It will allow the rlogin from hostB <--> hostA on root user only.

Change the permission of them to 600 so that others can not access it.

Check is your rlogind (eamon) running?

You will get some log informations on /var/log/messages.
Easy to suggest when don't know about the problem!