473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Spawn a process that runs under an Impersonated user

Hi,

We are trying to kick off an executable from an asp.net page. We have
followed article 889251 "How to spawn a process that runs under the context
of the impersonated user in Microsoft ASP.NET pages" (including adding the
impersonated user to the "Replace a process level token").

When we run the code still get a 1314 error "ERROR_PRIVILEGE_NOT_HELD".
What permission is this referring to? Our impersonated user is a domain user
with sign on rights to the box.

We appreciate that spawning a thread from an ASP.NET page undesirable, but
this is what we are stuck with due to other circumstances.
Regards,
Grant Holdom.
Feb 6 '06 #1
2 1510
either the create primary token is failing, or you did not give Replace
Process rights to the users login.

-- bruce (sqlwork.com)

"Grant Holdom" <Gr***@newsgroups.nospam> wrote in message
news:C7**********************************@microsof t.com...
Hi,

We are trying to kick off an executable from an asp.net page. We have
followed article 889251 "How to spawn a process that runs under the
context
of the impersonated user in Microsoft ASP.NET pages" (including adding the
impersonated user to the "Replace a process level token").

When we run the code still get a 1314 error "ERROR_PRIVILEGE_NOT_HELD".
What permission is this referring to? Our impersonated user is a domain
user
with sign on rights to the box.

We appreciate that spawning a thread from an ASP.NET page undesirable, but
this is what we are stuck with due to other circumstances.
Regards,
Grant Holdom.

Feb 6 '06 #2


Hi Grant,

Thanks for posting at the newsgroup!

Based on my test, the sample code from the kb article could work as
expected. So currently for assisting you on this issue, could you be so
kind to tell me more information about your environment, for example which
operating system are you using(service pack has applied or not), ASP.net
runtime version( 2.0/1.1) ? We will perform the further research then.
Thanks in advance!

Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.
Feb 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: C Gillespie | last post by:
Dear All, I have a function def printHello(): fp = open('file','w') fp.write('hello') fp.close() I would like to call that function using spawn or fork. My questions are:
3
by: Bo | last post by:
In my asp.net webservice application, I need to launch a DOS process as authorized users. To impersonate users, I use <impersonation = true> in my webconfig. I can't use Diagnostics.Process.Start,...
10
by: Sorin Dolha [MCSD .NET] | last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
3
by: Paul | last post by:
Hi all. Can someone provide some help on the following as there seems to be many different methods of acheiving the same outcome. Basically I am trying to develop a web service which will...
4
by: hoochiegooch | last post by:
All, I posted a message here recently regarding the difficulty I'm having with CreateProcessWithLogonW() in an ASP.NET application. I get the following Win32 error: Error 183: Cannot create...
0
by: Paul | last post by:
Hi, I'm trying to kick off the iiscnfg.vbs from a webservice to export a website's config to an xml file (And eventually populate other servers with the config). I initially tried this using the...
3
by: jeremyfee | last post by:
The spawn* and exec* functions appear to escape asterisks, I'm guessing all shell characters too, before the spawn/exec'ed process sees them. Is there a way around this? Not sure if this is a...
1
by: ranju | last post by:
I am trying to spawn a process (say an exe file) with different user crendentials than that of the current user. 1) Called LogonUserEx() to logon the user and recieve a handle to the token that...
3
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.