Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by gellyfish (Monsignor)
on Apr 29, 2004 at 14:29 UTC ( [id://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

Replies are listed 'Best First'.
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.

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!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found