Operating System - Linux
1823082 Members
3655 Online
109646 Solutions
New Discussion юеВ

rsh to login without password

 
Dan Stefanelli
New Member

rsh to login without password

I have looked at other issues posted that are similar to this but I still have no resolve. I have a Sun (Solaris 2.6)and a Linux machine (Redhat 7.2) both running NIS. I cannot get rsh to work( without a password )from the SUN to the Linux machine. I have a /etc/hosts.equiv with a + in it as well as .rhosts under my home directory with a + in it. I have disable set to no in my rexec file. Any help will be much appreciated
Thanks
DanS
5 REPLIES 5
Mark Fenton
Esteemed Contributor

Re: rsh to login without password

Dan,

rsh has its own configuration file under /etc/xinetd.d, I trust you have that one set to disable = no as well?

Another issue to investigate: is the SUN the NIS Master and the Linux its client? (and you have no local account on Linux, but take your authentication from SUN and mount home directory from there as well?) This configuration should work, at least on the same lan segment.

If it is neither desireable, nor possible to set up that way, then the next best solution would be to ensure that the user names and numbers on both machines are identical, group assignments, too.

hth

Mark
Kodjo Agbenu
Honored Contributor

Re: rsh to login without password

Hello,

Did you check the name resolution on both machines ?
If you are not using DNS, make sure that each machine is able to solve its own name and the name of the remote one.

Good luck.

Kodjo
Learn and explain...
Dan Stefanelli
New Member

Re: rsh to login without password

I can rsh back and forth between the 2 machines, it is just that I need to use rsh to execute commands on the Linux machine, this doesn't work with a password protected account. So the two machines can see each other fine and rsh is enabled, these are not issues. I believe our system here is set up as Mark described. Talking to someone here at work we think it is an issue with PAM that we have running on the Linux
Mark Fenton
Esteemed Contributor

Re: rsh to login without password

RH 7.2 rsh uses kerberos authentication by default. If you have not set up a kerberos realm, then that could be an issue for getting rsh to work seamlessly.

To test:

mark$ kinit
Password for mark@REALM.DOMAIN.COM:
mark$ rsh host2.DOMAIN.COM
markf$ who am i
host2.DOMAIN.COM!markf pts/2 Apr 23 16:02

hth

Mark
Charles Slivkoff
Respected Contributor

Re: rsh to login without password

Check /etc/pam.d/{rlogin,rsh}. You need to have entries for "pam_rhosts_auth.so" for ~/.rhosts & /etc/hosts.equiv to work. I believe these are included by-default with RH 7.2.

Is this limited to NIS users, or are local users affected as well?