Solved

access denied using rexec.exe

Posted on 2008-10-17
4
2,908 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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now