1833575 Members
3893 Online
110061 Solutions
New Discussion

rlogin : Solaris

 
malay boy
Trusted Contributor

rlogin : Solaris

Hi,
Sorry guy's.But I don't know where to turn to for help on solaris.

Basically I need to root rlogin from machine A to machine B witout prompting for password.

In machine B,I already create /.rhosts which contain machine A name.Also I have created /etc/hosts.equiv in machine B which contain machine A name.

But still whenever I do rlogin it still prompt for password.

any hint ?.

regards
mB
There are three person in my team-Me ,myself and I.
9 REPLIES 9
KapilRaj
Honored Contributor

Re: rlogin : Solaris

mB,

If this is a multihomed node, you may be getting connected via a diffrent interface which is not defined in .rhosts.

Also are you sure root's home directory is "/" ?. In AIX root 's home directory is "/root"

Good Luck .. i am online for some more time .. let me know if u need help

Kaps
Nothing is impossible
malay boy
Trusted Contributor

Re: rlogin : Solaris

Thanks Kapil.

Yap I pretty sure that the home directory is /.

Here are the result of echo $HOME:
# echo $HOME
/

Also I have checked the /etc/passwd file to double confirm on the home directory.
There are three person in my team-Me ,myself and I.
KapilRaj
Honored Contributor

Re: rlogin : Solaris

OK,

can u do an "ftp B &" from A and check netstat -a|grep ftp on B to find out what interface is used and add that in the .rhosts of B ?.

Regds,

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: rlogin : Solaris

Does it have multiple interfaces ?.

Kaps
Nothing is impossible
Jeroen Peereboom
Honored Contributor

Re: rlogin : Solaris

mB,

check the protections of your .rhosts. Should be for example 400 (r--------).
Remove the hosts.equiv.

Add IP addresses of A to .rhosts on B i.s.o. names. If this helps, you have a DNS problem.

You can remote login as root, so root access is not blocked?

JP.
Michael Tully
Honored Contributor

Re: rlogin : Solaris

Hi mb,

Just for future reference, have a look at these Sun sites:

http://forum.sun.com/
http://supportforum.sun.com/
http://www.sun.com/bigadmin/discussions
www.sunmanagers.org

You may have to register as well.

Regards
Michael
Anyone for a Mutiny ?
malay boy
Trusted Contributor

Re: rlogin : Solaris

Thanks everybody.Managed to solve the problem.In .rhosts have to put full qualifier name.example :

hawaii.us.earth.com

Even I put IP address it still not working.Thanks.

regards
mB
There are three person in my team-Me ,myself and I.
KapilRaj
Honored Contributor

Re: rlogin : Solaris

mB,

This is the only reason why asked you to establish a session with System B from A and check netstat -an which would tell you what hostname it is being used while making a socket.

Regds,

Kaps
Nothing is impossible
malay boy
Trusted Contributor

Re: rlogin : Solaris

Thanks Kapil.

regards
mB
There are three person in my team-Me ,myself and I.