Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 at 23:28

1 Answer 1

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

 
discard

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.