Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Shutdown through CGI-Script

by idle (Friar)
on Mar 17, 2006 at 12:03 UTC ( [id://537438]=note: print w/replies, xml ) Need Help??


in reply to Shutdown through CGI-Script

In addition to inman reply, you can use standart win utility '%systemroot%\system32\runas' to run command with different credentials.

Replies are listed 'Best First'.
Re^2: Shutdown through CGI-Script
by nobull (Friar) on Mar 17, 2006 at 16:55 UTC
    Not that this has anything to do with Perl but I'd be very wary of using runas or psexec or any other mechanism that would allow code executing under the user ID of the web server to perform arbitrary actions as an admin user.
      both runas and psexec will allow you to execute a programme as Administrator, provided you supply the password. That being said, putting your Administrator password in a script is probably just aching for a problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-19 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found