in reply to Is it possible to have a script run under one account and open a file using another?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is it possible to have a script run under one account and open a file using another?
by rzward (Monk) on Jul 30, 2003 at 01:35 UTC | |
by MidLifeXis (Monsignor) on Jul 30, 2003 at 10:28 UTC |