Solved

access denied using rexec.exe

Posted on 2008-10-17
4
2,948 Views
Last Modified: 2012-06-27
trying to run a remote command to a Windows 2008 server using rexec. (for testing).  Ultimately we will be running the command from an IBM i system 520 using runrmtcmd.  Right now when I enter the command rexec 10.3.9.39 -l remotecmd remotecmd (username and password are the same)
the response I get back from the server 10.3.9.39 is access denied.  Anyone have any ideas?
0
Comment
Question by:roomstore
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
sk_raja_raja earned 500 total points
ID: 22745642
1.Install rshsvr on your server and start the service.
rshsvr can be found on ResKit CD, it contains a detailed installation doc too.
Don't forget to setup your .rhosts file before starting rshsvr.

2.have you tried the username format domain\username , and if a workgroup use the remote ws name as the domain?

3.Also, any firewalls on the other systems that could be blocking this traffic?

4.PsExec v1.72
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsExec.mspx
Nothing needed to install on the other machine as well...
To open a dos shell on the remote machine.....
psexec.exe \\computername -u domain\userid -p password -i cmd.exe
The -i switch forces interaction with teh remote desktop
0
 

Author Comment

by:roomstore
ID: 22912029
Sorry for the delay.

SK Raja,

I plan to work on this Monday. I will try your first suggestion, rshsvr .

We are in a domain, and I have tried d\u format, but the iseries errors out, says the username field can only be 10 characters -- My domain name only exceeds 10 characters. I plan to try this -- Physically logon to the server as the domain\ibm, then try to run the command using 'ibm' as the user. Maybe the connection will pass through, since both users have the same password. I have also created a local 'ibm' user on the 2008 server.

Disabled the firewall.

Psexec -- I believe I have seen this used to aid the installation of unix printers on windows.

Jason
0
 

Author Closing Comment

by:roomstore
ID: 31507300
Your solution is noteworthy, although, what I did to make it work was, started the iSeries for Windows Remote Command service. This is the listerner that accepted my remote command. Thanks.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A safe way to clean winsxs folder from your windows server 2008 R2 editions
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question