I just went back and double checked to make sure the account that I am
trying to logon as has all of the specified privileges specifically assigned
to that user(not a group that the user belongs to) and that still doesn't
work.

Basic windows trouble-shooting tells me I should reboot and see if it works
after the reboot....

:)

I remember trying this a year or so ago and I couldn't get it to work then
either.(only I was using IIS, not apache)

Kevin Ailes
Administrator
OTTO Engineering

> -----Original Message-----
> From: Dean Theophilou [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 1:58 PM
> To:   Ailes, Kevin; DePriest, Jason R.; Perl-win32-admin list (E-mail)
> Subject:      RE: Win32::Adminmisc
> 
> Hello:
> 
>       The Administrator has some of them, yes; but not all.  At any rate,
> what the
> user must have is:
> 
> 1) Act as part of the OS
> 2) Replace a process-level token
> 3) Increase quotas
> 4) Bypass traverse checking
> 
> Check if the Admin account has all four of those privileges.
> 
> 
> Dean Theophilou
> 
> P.S. I assigned the above four privileges to my Admin account, so at lease
> we
> know that that the function works.  Try it again, don't give up.
> 
> 
> 
> -----Original Message-----
> From: Ailes, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 11:54 AM
> To: 'Dean Theophilou'; DePriest, Jason R.; Perl-win32-admin list
> (E-mail)
> Subject: RE: Win32::Adminmisc
> 
> 
> I checked this previously and the user(administrator) who happens to be
> all
> powerful anyway has all of those special privelages.
> 
> Kevin Ailes
> Administrator
> OTTO Engineering
> 
> > -----Original Message-----
> > From:       Dean Theophilou [SMTP:[EMAIL PROTECTED]]
> > Sent:       Tuesday, January 15, 2002 1:10 PM
> > To: DePriest, Jason R.; 'Ailes, Kevin'; Perl-win32-admin list (E-mail)
> > Subject:    RE: Win32::Adminmisc
> >
> > Hello:
> >
> >     Did you set the privileges required for the user you want to log on
> > as?  For
> > example, if you are logged on as "Fred", and you want to switch to
> > "Wilma", then
> > Wilma must have the four privileges listed on p. 228 of Win32 Perl
> > Scripting:
> > The Administrator's Handbook, by Dave Roth.
> >
> >
> > Dean Theophilou
> > Genisar
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > DePriest, Jason R.
> > Sent: Tuesday, January 15, 2002 9:50 AM
> > To: 'Ailes, Kevin'; Perl-win32-admin list (E-mail)
> > Subject: RE: Win32::Adminmisc
> >
> >
> > I am one of the people who have had the same problem.
> >
> > It seems like, after logging on as the specified user, the script
> forgets
> > who it is logged in as and tries to run as SYSTEM or whatever...
> >
> > I was thinking that you might have to use
> > Win32::AdminMisc::CreateProcessAsUser along with
> > Win32::AdminMisc::LogonAsUser, but I didn't have the time nor the
> patience
> > to try and figure out Win32::AdminMisc::CreateProcessAsUser.
> >
> > For my project, instead of creating a service like I was originally
> > planning
> > on, I used cygwin + cron to schedule the task and let cron run it in its
> > heightened context instead.
> >
> > -Jason
> >
> > -----Original Message-----
> > From: Ailes, Kevin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 15, 2002 11:47 AM
> > To: Perl-win32-admin list (E-mail)
> > Subject: Win32::Adminmisc
> >
> >
> > I now realize that I need to set up the user account that the apache web
> > service runs under to have some advanced capabilities or use the
> > Win32::Adminmisc module to logon as a different user.(impersonate a user
> > with advanced privelages)
> >
> > Unfortunately for me, I can not get the logonasuser method to function
> > properly.
> >
> > I searched Dave Roth's web site for instructions.  I found and set the
> > privelages for the apache web user account according to the faq.
> > No luck.
> >
> > I searched the usenet groups from google and found many references to
> the
> > same problem I am having, however there were no answers other than to
> set
> > the privelages on the user account.(which I have done.)  I even
> restarted
> > the web server service.  I haven't tried restarting the machine.....yet.
> >
> > I searched the Adminmisc newsgroup hosted by Dave's site.  There were
> many
> > un-answered questions regarding the logonasuser method failing in a
> > similar
> > manner to what I have described.
> >
> > Am I missing something here?
> >
> > Kevin Ailes
> > Administrator
> > OTTO Engineering
> >
> > _______________________________________________
> > Perl-Win32-Admin mailing list
> > [EMAIL PROTECTED]
> > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> > _______________________________________________
> > Perl-Win32-Admin mailing list
> > [EMAIL PROTECTED]
> > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> >
> > _______________________________________________
> > Perl-Win32-Admin mailing list
> > [EMAIL PROTECTED]
> > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to