I have two machines running Solaris 9 (192.168.2.9) and Windows XP (192.168.2.5). I need to run the following command on the Windows machine:
rsh 192.168.2.9 -l root pwd
To be able to run this command I've created the /etc/hosts.equiv file on the UNIX machine, which contains:
192.168.2.5 xp.user
where xp.user is the name of the active XP account, under which the rsh command connects.
The command gives the following messages:
192.168.2.9: permission denied
rsh: can't establish connection
I tried to change the UNIX user to notroot:
rsh 192.168.2.9 -l notroot pwd
The command gave the same result:
192.168.2.9: permission denied
rsh: can't establish connection
But when I created the file /home/notroot/.rhosts with the same contents as /etc/hosts.equiv the result was OK:
/home/notroot
Both the hosts.equiv and .rhosts files are identical and were created in the UNIX vi editor. The empty lines are added at the end of each file. The properties of the files are:
/etc/hosts.equiv - group: root; owner: root; permissions: owner: RW
/home/notroot/.rhosts - group: other; owner: notroot; permissions: owner: RW
The choice of rsh protocol and the root account doesn't depend on me.
So, how can I run the rsh command under the root account?