Page 1 of 1 1
Topic Options
#200493 - 2010-11-04 08:44 AM runnas not running as ....
HeyDan Offline
Fresh Scripter

Registered: 2010-10-29
Posts: 14
Loc: Bangkok, Thailand
Hi again,

Hopefully this problem is just as easy to fix ...

I'm writing a login script that uses runnas.exe to run some commands/scripts as the computer Administrator. It works fine if I login as a "Domain Admin", but if I login as a normal user, I get "RUNNAS: Access Is Denied"

Runnas 1.14
Kix 4.61

So, as a normal user, I copy runnas.exe and kix32.exe to c:\t and then run cmd and change to C:\t and then type:

runnas /user:Administrator kix32.exe

and, after typing in the password, I get:

RUNNAS: Access is denied.

I've tried using the Administrator, a Domain Admin and the user currently logged in, with hostname before the username and without, all with the same result.

Logging back in as a Domain Admin and all the same tests work fine.

Any ideas what the difference may be?


Cheers,

Hayden

Top
#200502 - 2010-11-04 01:35 PM Re: runnas not running as .... [Re: HeyDan]
HeyDan Offline
Fresh Scripter

Registered: 2010-10-29
Posts: 14
Loc: Bangkok, Thailand
So, does anyone know in what circumstances 'runnas' reports "Access is denied"?
Top
#200504 - 2010-11-04 05:25 PM Re: runnas not running as .... [Re: HeyDan]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
What OS?
_________________________
(... better days ahead)

Top
#200506 - 2010-11-05 10:24 AM Re: runnas not running as .... [Re: Allen]
BradV Offline
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
Have you checked the permissions on runnas.exe, the folder it is in?
Top
#200532 - 2010-11-08 04:57 AM Re: runnas not running as .... [Re: BradV]
HeyDan Offline
Fresh Scripter

Registered: 2010-10-29
Posts: 14
Loc: Bangkok, Thailand
Hi Ya. This is on XP. I can run kix from the same folder, and I am sure permissions are fine if I created the directory and copied the two exe files as the use that I tried to run them as. I also get the results I expect when I run "runnas /?" The difference between the two users (the one that runnas works for and the one it doesn't) is that one is in the Domain Admins and Administrators group and the other isn't (the one that the command fails for of course).
Top
#200533 - 2010-11-08 05:03 AM Re: runnas not running as .... [Re: HeyDan]
HeyDan Offline
Fresh Scripter

Registered: 2010-10-29
Posts: 14
Loc: Bangkok, Thailand
I'm noticing that on a fresh build (that the script will finally run on once I have rebuilt all PCs) the command works as the normal user. Maybe it is some group policy or something that has disallowed this command from running.

I guess that I will discover what it is as I continue the rebuild process, but it would be nice to know sooner as I want to be able to run this logon script for all users regardless of whether they login to a machine that I have already rebuilt (if I ever complete this automated rebuild/install process) or a machine I am yet to rebuild.

Cheers,

Hayden

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.093 seconds in which 0.037 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org