Folder of file's permission inheritance

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



How to determine what folder (if relevant) that a file's permissions are
inherited from?

In a file's properties, the security tab has an Advanced button. That shows
details of the file's permissions. In there is an "Inherited From" column.
How can that data be obtained using WMI?

I have written a VB 6 program that gets the Win32_LogicalFileSecuritySetting
for a file, then calls GetSecurityDescriptor for it. I can display the
DACL's AccessMask, AceFlags and AceType. I can display the Domain, Name and
SIDString from the DACL's ACE's Trustee. I do not know, however, how to
determine the folder that the file's permissions are inherited from (when
inherited).

Perhaps it would be possible to figure out if I knew more about security,
but I did take a quick look and it is not obvious. I was hoping that I could
use WMI without getting into the details of what WMI does.

Is it possible to use WMI to get the folder that the file inherits
permissions from?


.



Relevant Pages

  • Re: NTFS copy/move within partition
    ... Create a new folder in the root of C: ... Add a few users and groups into the permissions list. ... inherits FolderA permissions, ...
    (microsoft.public.windows.server.security)
  • Re: Inheriting Permissions
    ... >> service cannot access the file because it does not have permissions. ... > parent folder. ... it inherits the NTFS permissions of the destination ... > # When a file or a folder is copied from a FAT partition, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Inheriting Permissions
    ... >> service cannot access the file because it does not have permissions. ... > parent folder. ... it inherits the NTFS permissions of the destination ... > # When a file or a folder is copied from a FAT partition, ...
    (microsoft.public.dotnet.general)
  • permission inheritance problems
    ... inherits permissions from its parent, ... permissions defined directly on it. ... folder also lists an additional set of "phantom" permissions to me (same ...
    (microsoft.public.win2000.security)
  • Create a new share without caching ?
    ... With the help of WMI I have created a folder on a remote server. ... added a share to this folder and set the right permissions. ...
    (microsoft.public.win32.programmer.wmi)