Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using windows computers to execute commands on linux via rsh. The call of rsh are made from one software that specifies the logged on user name to use on the remote host. But that user is not present on target computer. How do I set in the target host that all users in the /root/.rhosts are mapped to root account?

share|improve this question
rsh? Really, I thought that was dead. Is there some reason why you haven't switched over to ssh? Is there some reason why you can't simply point this piece of software at an alternate script/binary that ignores the supplied username, and connects using SSH to a valid account/ – Zoredache Dec 20 '13 at 19:44
The law of minimum effort. The software comes with rsh.exe by default to submit the calculations for the cluster. If I do not find an easy way to do this. I'll have to do what you said, a script with the parameters used for the SSH and installs a ssh client on all Windows machines. – Tomir Schmite Jr. Jan 2 '14 at 23:28

Does the software that invokes rsh use a single remote user name for all users?  (E.g., does it always try to log users in to the remote host as “fred”?)  If so, create an account named “fred” on the target computer.  If you’re really serious about creating a security hole by allowing all your users root access, then change fred’s UID to 0, and, if desired, change its home directory to /root.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.