?
Solved

access denied using rexec.exe

Posted on 2008-10-17
4
Medium Priority
?
3,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
sk_raja_raja earned 1500 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…
Suggested Courses

765 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