Enabling privileges of machine\ASPNET account

Discussion in 'ASP .Net Security' started by Konrad, Feb 22, 2005.

  1. Konrad

    Konrad Guest

    hello

    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
     
    Konrad, Feb 22, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matthew Smith

    Developer Account Privileges

    Matthew Smith, Jul 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    345
    Bryant Hankins
    Jul 19, 2004
  2. =?Utf-8?B?c2hlZmFsaQ==?=

    HTTPHandler to create, write file and account privileges

    =?Utf-8?B?c2hlZmFsaQ==?=, Dec 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    377
    =?Utf-8?B?c2hlZmFsaQ==?=
    Dec 2, 2004
  3. Replies:
    7
    Views:
    674
    Juan T. Llibre
    Mar 23, 2007
  4. nilapenn
    Replies:
    3
    Views:
    661
    Joe Kaplan \(MVP - ADSI\)
    Feb 14, 2005
  5. Replies:
    4
    Views:
    660
    Paul Clement
    Sep 15, 2005
Loading...

Share This Page