Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Is it possible to have a script run under one account and open a file using another?by Kanji (Parson) |
on Jul 30, 2003 at 01:12 UTC ( [id://279047]=note: print w/replies, xml ) | Need Help?? |
What you want should be doable with Win32::AdminMisc's CreateProcessAsUser or LogonAsUser functions, with example code included in the RUNAS.PL file that accompanies the install. But ... you'll have to put the password for whatever account you log into in the CGI script, so whether or not this is a "bad idea" depends on your level of paranoia and confidence in the security of your scripts. --k.
In Section
Seekers of Perl Wisdom
|
|