Hmmm..  I tried doing that & it didn't seem to help.
However, that raises another question:
I'm running the script as a Domain Admin.  gpresult shows me having the following 
rights:
 Add workstations to domain
 Force shutdown from a remote system
 Act as part of the operating system
 Back up files and directories
 Bypass traverse checking
 Restore files and directories
 Change the system time
 Shut down the system
 Take ownership of files or other objects
 Debug programs
 Modify firmware environment values
 Profile system performance
 Profile single process
 Increase scheduling priority
 Load and unload device drivers
 Create a pagefile
 Increase quotas
 Remove computer from docking station
 Generate security audits
 Impersonate a client after authentication
 Create global objects
 Manage auditing and security log



Shouldn't the script already run with these permissions without having to do an 
impersonate()?

Thanks!!


-----Original Message-----
From: Andrew Francis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 7:26 PM
To: Dave Randolph
Subject: Re: Problem with win32security.GetFileSecurity


Hello Dave:

--- Dave Randolph <[EMAIL PROTECTED]> wrote:

> Hi all.
> 
> The code fragment:
> import win32security
> CurrentSecurity=win32security.GetFileSecurity
> ("c:\\", win32security.SACL_SECURITY_INFORMATION)

I haven't done Win32 API programming in a while.
Hunch: you may have to use the WIN32API impersonate()
system call to give your script the access rights
of a user that can access the resource in question.

Cheers,
Andrew


__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
#####################################################################################

This email has been scanned by MailMarshal, an email content filter. 
Please contact [EMAIL PROTECTED] if you have any questions or 
comments. Thank you.
#####################################################################################

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to