blahblahblah has asked for the wisdom of the Perl Monks concerning the following question:
So I thought I'd add some error checking into my script, and I found the Win32::FileSecurity module. It has a method, EnumerateRights, that shows all the security rights for a file/directory. It seems like exactly what I want, except that it doesn't show the "delete files within the folder" property that I'm looking for.
The property, on windows 2000, can be viewed by right-clicking the file, choosing Properties, clicking the Security tab, clicking Advanced, then clicking the View/Edit button. My guess is that the list of properties you see on this screen was expanded in windows 2000 and that win32::FileSecurity hasn't been updated since NT 4.
Does anyone know of another module or way to get at that property easily through perl? I found this page on microsoft's site that looks like what I need, but I'm not sure how I could use it from perl. Since some of win32::FileSecurity's constants match those listed on this microsoft page, I'm wondering if there's a way to peek at win32::FileSecurity's data and manually check for the other properties.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::filesecurity -- outdated? (why?)
by tye (Sage) on Feb 21, 2003 at 17:32 UTC | |
|
Re: win32::filesecurity -- outdated?
by hardburn (Abbot) on Feb 21, 2003 at 16:51 UTC |