Hi,
on .rhosts file of server2 I have :
server1 user
server1 root
when I want to issu rsh from server1 to server2 :
1-If I'm root it is OK.
2-if I'm ordinary user I receive permission denied.
What is the problem ? What is the solution ?
Many thanks in advance.
What OS is this? You probably just need a similar .rhosts file in the users home directory on the destination machine.
Thank you. The .rhosts file ( which I talked about) is already on user home directory.
OS : SunOS 5.8
Make sure the permissions on the ~/.rhosts file is 600.
I don't think that permissions of ~/.rhosts file is the problem.
Let me explain in details the procedure for using rsh command...
The setup is :-
server 1 - login guest
server 2 - login admin
Suppose u want to use rsh command from server1 ( login guest ) to server 2 ( login admin ). In this case
The $HOME/.rhosts file of admin login on server2 machine should contain an entrty as
server1 guest
Execute the rsh command ( from server 1 , guest login ) as :
rsh server2 -l admin
Hope I was able to explain properly....