-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You can use the Win32::AdminMisc extension of LogonAsUser($Domain,
$User, $Password). You can get the AdminMisc Module from
http://www.roth.net.
There are some things that you must do to the workstation/server that
the script will be run on. You have to set the following for the
user calling the script:
- - Act as part of the OS
- - Bypass traverse checking
- - Replace a process level token
Thank you,
Steven Spears
[EMAIL PROTECTED]
- -----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Cruickshanks, Darin
Sent: Monday, May 21, 2001 6:07 AM
To: '[EMAIL PROTECTED]'
Subject: Perl Question
Hi All,
Question for all the Guru's -
I have a Perl script that is going to run in the context of the
current user
but I want it to then spawn a process that runs as a different user.
I have
looked at RUNAS but could not get it to work without the user having
to
enter the password of the new process and I have looked at the Reskit
utility - SU, but this needs a service installed and I could not get
the
thing to work properly after I had installed it. I would prefer the
script
to not use 3rd party utilities and just use Perl so it there any way
to do
this?
Any help gratefully received,
Darin
Darin Cruickshanks, Labs Co-Ordinator
Systems Programmer, Computing Service
University of Essex
E-Mail - [EMAIL PROTECTED]
Phone - 01206 873585
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOwmN28iLBEfxcj4REQKZaACgtPCrewmB4l0O5+JkJRcfIrGkY30AoJcy
4w8oJQtRBF5ITCBfRa/ohJlI
=SBhw
-----END PGP SIGNATURE-----
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin