Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Running Win32 binary as arbitrary user -- in Perl

by gellyfish (Monsignor)
on Apr 29, 2004 at 14:29 UTC ( #349142=note: print w/ replies, xml ) Need Help??


in reply to Running Win32 binary as arbitrary user -- in Perl

You'll be wanting to look at Win32::AdminMisc - An example of using LogonAsUser and CreateProcessAsUSer can be be found here.

/J\


Comment on Re: Running Win32 binary as arbitrary user -- in Perl
Re: Re: Running Win32 binary as arbitrary user -- in Perl
by flyingmoose (Priest) on Apr 29, 2004 at 14:33 UTC
    Thanks, I'm familiar with the C++ version of those API's from some earlier work. Good examples, too!
Re: Re: Running Win32 binary as arbitrary user -- in Perl
by arden (Curate) on Apr 29, 2004 at 14:38 UTC
    A good discussion on how to do it and potential pitfalls in the implementation of a sudo clone on Win32 is available here. Although the examples are for Python, the system calls and pitfalls are all the same. If you can't get that link to work, try the Yahoo Cache of the page.

    - - arden.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://349142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-19 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (135 votes), past polls