rsh: "access denied"

When I run rsh on NT, i get the following error "access denied"
I have updated the file HOSTS in
system32/drivers/etc
with the ipaddress and the username
but it still gives an access denied.

Any ideas?
FrisonAsked:
Who is Participating?
 
andyalderCommented:
Correct me if I'm wrong but I thought rsh under NT is only a client, used to run a remote shell on a UNIX box, not another NT box. I don't think there is a corresponding daemon for NT to support rsh.

N.B. on the unix box the file is .rhosts, not hosts.
0
 
bchewCommented:
Do you get the error if you just type RSH with no parameters?  What permissions do you have on the target machine and how are they implemented (Local account, same domain, trust)?  What program are you tring to execute on the foreign host?  Do you have permission to execute that program?  
0
 
FrisonAuthor Commented:
c:\>rsh
returns the help

c:\>rsh 195.1.1.32
returns the help

c:\>rsh 195.1.1.32 c:\textpad\textpad.exe
returns access denied

Both pc on Same domain
with c:\textpad\textpad.exe granted to all

And if I try to call myself should it
work?
Will C:\>rsh ipmycomputer c:\textpad\textpad.exe
 launch texpad?
It does not
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
andyalderCommented:
look what searching MS web came up with, (and in your case rsh.exe on NT is pretending to be a unix workstation running rsh)

http://support.microsoft.com/support/kb/articles/Q102/5/61.asp

So I'm not wrong unless you've got a 3rd party rshd, rcmdd or rexecd for NT.

Trouble is NT's RPCs are based on unix RPCs but incompatable with them.

Think you might have been misled in a previous question. I would post as answer but some expert might just be able to supply a URL for a 3rd party daemon to run on NT.

0
 
bchewCommented:
Textpad is an interactive program so even if the rsh worked, you would not be able to use it this way because the standard output would be going to the remote command, not to your local session.  

Bert
0
 
andyalderCommented:
What you need is rcmd/rcmdsvr from resource kit or even remote.exe but still only get a dos box on remote machine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.