Remsh permission denied from HP-UX to W2k3 R2

Hello,

I've been stuck with this since a few days, and i hope i'll find some help here.

Here the story :

Since now, i've HP-UX servers with sap erp software on it. We managed a few years ago to build a special access to a w2k server with SFU.

Ux server execute this command :

remsh hostname batch.bat 001.JPG 002.JPG

This command allow ux server to launch a batch who move a named file (001.jpg) on the w2k server folder to another with the order name.

Ok so all working good before, i installed sfu on 2k server, i created same user than the ux one, and log/registered password with rsh passwd, added a .rhosts into windows/system32/drivers/etc. Working perfectly.

Now the 2k server is a bit too old, and i'm currently prepairing a new server with 2k3 R2 and SUA instead of SFU

I've done same things than for the old one :

  • create a local user with the same username
  • register password with rgpwd
  • create a .rhosts file (with + + only for now, i know i need to be more secure but it's for testing purpose)
  • uncomment file inetd.conf
  • try to create also a hosts.equiv but not working, so i delete it
  • add servers name and ip to windows hosts file.
  • home folder for user is windir/sua (default folder for sua install)

I cannot run the batch manually
remsh hostname batch.bat 001.JPG 002.JPG
the error is Permission denied.

But if i do remsh hostname -l username, it works :

$ remsh server -l username
Password:
Copyright (c) Microsoft Corporation.  All rights reserved.

Welcome to the SUA utilities.

DISPLAY=localhost:0.0
$ ls
bin             docs            lib             opt             usr
common          etc             movearg.bat     proc            var
dev             help            net             tmp
$

So something is missing but i don't really know what.

I really need your help with this, because i'm stuck and i don't know what to check next.

I thank you for any by advance !

Shouldn't that be .rhosts ?

Yes sorry, my mistake, i've mistyping the name, but the real name on my server is the right one, as .rhosts.

I've just edit my first message to fix the mistake.

If you don't specify a command on the HP-UX remsh line, HP-UX actually runs rlogin not remsh. Worth checking that Microsoft SUA supports remsh , not something more secure like ssh.

Purely from a syntax point of view, your HP-UX remsh can be improved:

remsh hostname -l username -n "batch.bat 001.JPG 002.JPG"

If you don't specify "username" the HP-UX and Windows user name have to be the same. Keep the password simple and eight or less characters.

Thanks methyl,

I think you're right, maybe remsh wasn't supported by sua. And it explain why i can login with remsh without any command, if you said it's a rlogin command.

So anyway, i solve my problem.

I uninstall all sua components, and installed sfu 3.5 like on my old 2k server.

I set parameters like before, and it works exactly the same on my new 2003 R2 server.

I'm really dissapointed to do that, but i've no choice now because my server need to be up soon.

The stranger was it shouldn't work with sfu 3.5, all the posts i can see about it on google said it's not. But for me it is.

So thanks again for your help, methyl

Did i have to change the name of my post by including something like [solved] ?