Remsh permission denied from HP-UX to W2k3 R2

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Remsh permission denied from HP-UX to W2k3 R2
# 1  
Old 03-26-2012
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 :

HTML Code:
$ 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 !

Last edited by Vraiages; 03-29-2012 at 09:58 AM..
# 2  
Old 03-29-2012
Quote:
create a .hosts file (with + + only for now, i know i need to be more secure but it's for testing purpose)
Shouldn't that be .rhosts ?
# 3  
Old 03-29-2012
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.
# 4  
Old 03-30-2012
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:
Code:
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.
# 5  
Old 03-30-2012
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] ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies

2. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

3. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

4. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

5. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

6. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

7. UNIX for Dummies Questions & Answers

Why do I keep getting .:Permission denied?

I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
Discussion started by: bbersani
12 Replies

8. UNIX for Dummies Questions & Answers

Permission Denied

I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You ... (0 Replies)
Discussion started by: howeezy
0 Replies

9. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies

10. Shell Programming and Scripting

remsh and permission denied

i m trying to use remsh but i get "permission denied" can any one help me thnx in advance. $ remsh 193.188.0.59 -l operator sh test2.sh permission denied i create the .rhosts file at the remote machine. (1 Reply)
Discussion started by: kazanoova2
1 Replies
Login or Register to Ask a Question