mce has asked for the wisdom of the Perl Monks concerning the following question:
I am working on a scheduling project, and we want to be able to run scripts on WinNT. The daemon we are running, is running under the system account, but the scripts should be ran as another user. On unix, this is very simple, and I just use the unix su command.
But on NT this is not so simple. Now my question is, has someone already written a routine that runs a process as nother user. I searched CPAN and this site, but found no examples on how to do this. There are modules like > Win32::Process and Win32::AuthenticateUser, but I cannot make the link between these two modules.
An NT port of su exists, but does not return the errorcode of the script.
Mark Ceulemans
Senior Consultant
IT Masters, Belguim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: su on winnt
by c-era (Curate) on Nov 09, 2001 at 18:54 UTC | |
|
Re: su on winnt
by Asim (Hermit) on Nov 09, 2001 at 18:58 UTC | |
by mce (Curate) on Nov 09, 2001 at 19:11 UTC | |
|
Re: su on winnt
by CubicSpline (Friar) on Nov 09, 2001 at 18:32 UTC |