PC Review


Reply
Thread Tools Rate Thread

CreateProcessAsUser Doubt

 
 
Victor Pereira
Guest
Posts: n/a
 
      30th Jun 2004
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
 
Reply With Quote
 
 
 
 
zap
Guest
Posts: n/a
 
      1st Jul 2004
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
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
CreateProcessAsUser horror,... Kerem Gümrükcü Microsoft Dot NET Framework 1 25th Feb 2010 01:25 PM
CreateProcessAsUser horror,... Kerem Gümrükcü Microsoft C# .NET 1 25th Feb 2010 01:25 PM
CreateProcessAsUser Ian Boyd Microsoft Windows 2000 Security 13 16th Aug 2007 03:16 PM
CreateProcessAsUser Error Jay Microsoft VC .NET 1 12th May 2006 12:53 AM
CreateProcessAsUser() Bill Huang Microsoft C# .NET 2 11th Oct 2003 02:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 AM.