Re: Folder Inheritance

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 06/30/05

  • Next message: inteltech_at_gmail.com: "Re: Allowing a Domain User Admin Rights to a Couple of Domain Servers"
    Date: Wed, 29 Jun 2005 21:02:50 -0700
    
    

    FYI

    I will be watching this thread very closely, and hope to see an MS response.
    In the past I have attempted this a couple ways in script, adssecurity.dll,
    Wmi
    objects for the SD, etc. and all have found cases where they do not
    correctly
    detect the inheritance, especially if the disk had ever been touched once on
    a time by NT 4. My current belief is one needs to do this with the w32 api
    or the managed namespace.

    -- 
    Roger Abell
    Microsoft MVP (Windows  Security)
    MCSE (W2k3,W2k,Nt4)  MCDBA
    "Damon Birrell" <sophdamon.nospam@adsl.on.net> wrote in message
    news:%23cReOgJfFHA.3304@TK2MSFTNGP12.phx.gbl...
    > Howdy
    >
    > I rather urgently require a WSH VBS function to return whether or not a
    W2K3
    > NTFS folder is inheriting its permissions from a parent folder.
    > I have scripts that audit folders using showacls, a script that parses the
    > audit logs for certain groups from one domain, and a third script that
    uses
    > xcacls.vbs to assign the permissions to the corresponding groups in
    another
    > domain. This is to aid a user migration process from one domain to another
    > as the ADMT tool does not migrate well known groups. i.e. we have NTFS
    > resources with permissions assigned to DOMAIN1\Domain Users. We would like
    > to grant the equivalent permissions to DOMAIN2\Domain Users and I can
    > achieve this with my current scripts.
    >
    > My problem is that the third script that calls the xcacls script is quite
    > dumb and doesnt take into account inheritance. As a result, the script
    takes
    > *many* hours to execute when really it just need to adjust permissions on
    > several of the several thousand folders and inheritance will take care of
    > the rest. At the moment it is attempting to adjust perms on every folder,
    > rather than the folders where inheritance is turned off.
    >
    > I dont mind using a a third party tool like setacl or something similar
    > (i.e. free :-). I need a function like:
    >
    > Function FolderInherits(sFolder)
    >
    >     Returns True if  sFolder inherits perms from its parent folder
    >     Returns False if sFolder does not inherit perms from its parent folder
    >
    > End Function
    >
    >
    > step through the array of folders
    >     if not FolderInherits(sFolder)
    >         Perform the Xcacls stuff
    >     end if
    > next
    >
    >
    > Can anyone help? It would be greatly appreciated!
    >
    > Regards
    > Damon
    >
    >
    

  • Next message: inteltech_at_gmail.com: "Re: Allowing a Domain User Admin Rights to a Couple of Domain Servers"

    Relevant Pages

    • Re: "Recovered Files" Always in Trash
      ... What the script did was to set the permissions correctly on your invisible ... Temporary Items folder. ... Thanks for the advice and the script. ...
      (microsoft.public.mac.office.word)
    • Problem Creating HomeDirectories and Permissions using VBScript
      ... and assigning permissions to it in a VBScript script. ... it creates the setting for the folder inside the ...
      (microsoft.public.win2000.active_directory)
    • Re: How to get rid of "duration", "dimension", "quality" columns in explorer
      ... I've written a script that will apply all the view customizations you can set to all of a folder's ... You can select a folder & configure its view settings, then those are set to be inherited by all ... non-grouped view to be the default inheritance for My Computer, then return My Computer to its ...
      (microsoft.public.windowsxp.customize)
    • Re: Logon Script Elevated Privileges
      ... script within the GPO if you want, such as selecting from between user ... I'm using XCacls.vbs to create the permissions structure. ... > the root folder to create the folder, ... >> of a GPO using elevated privileges. ...
      (microsoft.public.windows.group_policy)
    • Re: Logon Script Elevated Privileges
      ... script within the GPO if you want, such as selecting from between user ... I'm using XCacls.vbs to create the permissions structure. ... the root folder to create the folder, ...
      (microsoft.public.windows.group_policy)