1753834 Members
7657 Online
108806 Solutions
New Discussion юеВ

rlogin problem

 
Lye Keng Yeen
Occasional Contributor

rlogin problem

Everytime I use rlogin to another machine using root,it will prompt me for the password. I've added the .rhosts in the remote machine, I've check the /var/adm/inetd.sec and the services. Everuthing is done but it still give me the problem. When I use rcp, it will give
"remshd:Login incorrect". Anyone can give a suggestion, I would be very grateful. Thanks.
7 REPLIES 7
Printaporn_1
Esteemed Contributor

Re: rlogin problem

Hi,

In the target machine , does nslookup to source machine with hostname working fine ?

if yes , check /.rhosts permission.
-rw-rw-rw- 1 root sys 18 Feb 14 15:12 /.rhosts

just only put the hostname of source host.
enjoy any little thing in my life
Marcel Boon
Trusted Contributor

Re: rlogin problem

Hi Lye,

On the remote host:
You added the .rhosts file, is root the owner?
What is the protection on your .rhosts file?
It should be "chmod 0400 .rhosts".
Are those pwd's of root the same?
A possible configuration in your .rhosts are:
system_name user #comment
What have you configured?

Marcel

see: "man .hosts" or "man hosts.equiv" it's the same



See the man pages
Marcel Boon
Trusted Contributor

Re: rlogin problem

Hi again,

Take also a look at these link:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html

Marcel
See the man pages
Lye Keng Yeen
Occasional Contributor

Re: rlogin problem

Hi,

Strange ??!!I chmod 666 .rhosts and it works fine. Previously I chmod 777 but it still can't work. Now I chmod 500 and it still works. Why ?? Is it just need to start-up once and ?? Thanks !!(still scratching my head...)
Printaporn_1
Esteemed Contributor

Re: rlogin problem

Hi Lye,
Too many permission for secure file like .rhosts may not work , I guess
enjoy any little thing in my life
Tracey
Trusted Contributor

Re: rlogin problem

Since there is a password in the file, the system does not want you to allow Read permissions to anyone but the file owner - it would be a security risk.
Vincenzo Restuccia
Honored Contributor

Re: rlogin problem

Hi,
in /.rhosts the entry is:
10.10.10.1 root
in /etc/hosts:
10.10.10.1 my_hostname
in /etc/hosts.equiv:
my_hostname
If exists /etc/securetty replace it with securetty.new .

Regards,

Vincenzo
Regards

Vincenzo