Re: More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-09 Thread dananrg
> There are some examples of using the security descriptor objects in > \Lib\site-packages\win32\Demos\security. > Also, searching the Python-win32 mailing list should turn up some > more code. Thanks again Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-08 Thread Roger Upole
[EMAIL PROTECTED] wrote: > Could you give an example for listing security descriptors using the > win32security module? I looked at the documentation but found it > confusing. Thanks. There are some examples of using the security descriptor objects in \Lib\site-packages\win32\Demos\security. Also

Re: More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-08 Thread dananrg
Could you give an example for listing security descriptors using the win32security module? I looked at the documentation but found it confusing. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-08 Thread dananrg
Thanks Roger, I'll give it a shot. Is os.walk the best way (using standard library modules) to traverse directory trees in Python 2.4 and beyond? -- http://mail.python.org/mailman/listinfo/python-list

Re: More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-07 Thread Roger Upole
[EMAIL PROTECTED] wrote: > Is there a standard library module in Python 2.4 (Win32) that will > return directory permissions / ACLs (e.g. users, groups, and what > rights they have)? > > Otherwise, I'm faced with sending "cacls dirName" commands via os.popen > as below, and then parsing and compar

More elegant way to obtain ACLs / permissions for windows directories than using "cacls" dos command?

2006-11-07 Thread dananrg
Is there a standard library module in Python 2.4 (Win32) that will return directory permissions / ACLs (e.g. users, groups, and what rights they have)? Otherwise, I'm faced with sending "cacls dirName" commands via os.popen as below, and then parsing and comparing the text output. Basically, I'd