Hi all.

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

Produces:
---------------------------
Adding Audit Entries to c:\
Traceback (most recent call last):
  File "X:\scripts\Management\ithelper.py", line 207, in ?
    RunFullAudit()
  File "X:\scripts\Management\ithelper.py", line 163, in RunFullAudit
    CurrentSecurity=win32security.GetFileSecurity ("c:/", 
win32security.SACL_SECURITY_INFORMATION)
pywintypes.error: (1314, 'GetFileSecurity', 'A required privilege is not held by the 
client.')
----------------------------------

I'm running it on a Win2K sp4 box as an Administrator.  Is there something else that I 
have to
do in order to get the SACL of a file or directory?  I'm trying to write a little 
script to
set/remove auditing on a given system & I have had no luck getting the SACL for either 
a file/folder or a registry
key.

Any help would be muchly appreciated.
Thanks!!


Dave Randolph              Northstar Bank of Texas
Master Geek                400 N. Carroll
[EMAIL PROTECTED]    Denton, Tx 76201
                           940 591 1200
 
#####################################################################################

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