CreateProcessAsUser Doubt

V

Victor Pereira

Hi i'm trying to do a RunAs program and i have some doubts:

1 - Can i run it without a service ? Just calling :

LogonUser - to get a user token
DuplicateTokenEx - To duplicate my user´s token and set the permissions
TOKEN_ADJUST_PRIVILEGIES and TOKEN_QUERY
AdjustTokenPrivilegies - To set SE_TCB_NAME privilegies
CreateProcessAsUser - To run my process as a specifc user.


Because i´m receiving an error 1300 (decimail), which means "Not all
privileges referenced are assigned to the caller".

2 - Can i adjust privilegies on an user´s token ? or i just can set
privilegies on a process´s token ?


Thanks in advance,

Victor Pereira
 
Z

zap

in win2k this priveleges have only processes under SYSTEM account.
You can create your service and run under SYSTEM.

ps. IMHO, there is no problems in XP
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top