Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Enabling privileges of machine\ASPNET account

Thread Tools

Enabling privileges of machine\ASPNET account

Posts: n/a

i'm trying to execute external application which copies .exe file to a new
..exe file with changed PE header, i'm doing this via ASP.NET, authentication
must be anonymous (specific user is set), so when i DuplicateTokenEx and
CreateProcessAsUser ASPNET user is used for this purpose (if i'm wrong pls
let me know)

i granted SeRestorePrivilege and SeTakeOwnership and
SeAssignPrimaryTokenPrivilege (is it of any use ?) to ASPNET account, in
sysinternals process viewer these privileges are disabled, when i
AdjustTokenPrivileges in my code for hToken of ASPNET (not duplicated token)
to enabled them i do still see it in sysinternals ProcessViewer as disabled,
what am i doing wrong ?

when i AdjustTokenPrivileges for hDuplicatedToken (after DuplicateTokenEx)
executed application doesn't do the job (dont even know if it was actually
executed) and GetLastWin32Error is 1307 (This security ID may not be assigned
as the owner of this object. ERROR_INVALID_OWNER) this could be due to these
privileges weren't actually enabled, should sysinternals ProcessViewer show
them as enabled ?

any help appreciated

thanks, Konrad
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling Internet Access for 'Limited Account' users =?Utf-8?B?U3ViYmFyYXl1ZHU=?= Wireless Networking 11 10-30-2008 03:50 PM
Enabling wireless internet access for the Guest account =?Utf-8?B?TWF0dA==?= Wireless Networking 5 01-25-2006 01:00 AM
Re-enabling a user account in CiscoSecure ACS using CLI Jeff Cisco 0 01-16-2005 01:15 PM
HTTPHandler to create, write file and account privileges =?Utf-8?B?c2hlZmFsaQ==?= ASP .Net 0 12-02-2004 12:07 AM
Developer Account Privileges Matthew Smith ASP .Net 1 07-19-2004 04:23 AM