Click here to get back home

add permissions to all subfolders, not replace

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
add permissions to all subfolders, not replace google 07-09-2007
Posted by google on July 9, 2007, 1:59 pm
Please log in for more thread options
I'd like to add a security group to my Windows 2003 domain which is
denied file permissions on all but one of my network's shared
folders. I already have quite a large directory structure setup with
varying permissions on the subfolders and these permissions need to be
preserved. For example:

Main Shared Folder (all domain users)
        Accounting (accountant only)
        Database (DB admin only)
        Grants (all domain users)
        Human Resources (HR director only)
        Photos and Logos (all domain users)

I've experimented and found that if I add the 'deny permission' on the
root of 'Main Shared Folder' and use "Replace permission entries on
all child objects with entries shown here that apply to child objects"
then all of the permissions on the subfolders are replaced with the
permissions set on the root. This effectively erases the permissions
set on the subfolders and replaces them with the new permissions. For
example, the Accounting folder would end up with Domain Users and the
new Volunteer Security Group with permissions, but the accountant
would left out.

Is there a way to add the 'deny permission' to all subfolders without
removing the permissions unique to each subfolder?

Thanks in advance for any help,
Kevin Hartgerink


Posted by Roger Abell [MVP] on July 9, 2007, 9:55 pm
Please log in for more thread options
Here is the issue.
You have a storage structure with varying permissions.
That means there are points within the structure where
different principals are added in the permissions either
without blocking inheritance of permissions from the
parent directory, or with blocking and instead explicitly
setting new inheritable permissions, or perhaps you use
no inheritance in the structure at all and just set explicit
permissions on every folder (and perhaps also file).

If you block inheritance nowhere, then just adding the
Deny at the topmost folder would do it to some extent
(if later an explicit grant included granting to the principal
that the inherited Deny targets, then the Deny would be
nullified).

Now, from what you illustrated, it seems you are blocking
inheritance at some points. So, you would need to set a
Deny at each point that forms a new inheritance root, and
you would also need to make sure that there are no explicitly
added grants below the new inheritiance roots that add a grant
back for the denied principal.

Use of xcacls with the /e and /t switches will do this but will
also do more (it will add it everywhere, not just the new
inheritance points or where a added grant conflicts).
That is to say, you can do it with xcacls but that will do more
than you need and will result in more of a mess to clean up
later when you want to remove the deny.

Roger
> I'd like to add a security group to my Windows 2003 domain which is
> denied file permissions on all but one of my network's shared
> folders. I already have quite a large directory structure setup with
> varying permissions on the subfolders and these permissions need to be
> preserved. For example:
>
> Main Shared Folder (all domain users)
> Accounting (accountant only)
> Database (DB admin only)
> Grants (all domain users)
> Human Resources (HR director only)
> Photos and Logos (all domain users)
>
> I've experimented and found that if I add the 'deny permission' on the
> root of 'Main Shared Folder' and use "Replace permission entries on
> all child objects with entries shown here that apply to child objects"
> then all of the permissions on the subfolders are replaced with the
> permissions set on the root. This effectively erases the permissions
> set on the subfolders and replaces them with the new permissions. For
> example, the Accounting folder would end up with Domain Users and the
> new Volunteer Security Group with permissions, but the accountant
> would left out.
>
> Is there a way to add the 'deny permission' to all subfolders without
> removing the permissions unique to each subfolder?
>
> Thanks in advance for any help,
> Kevin Hartgerink
>



Similar ThreadsPosted
NTFS Permissions and subfolders December 14, 2005, 2:06 pm
permissions on subfolders with drag and drop July 18, 2007, 3:16 pm
Replace the VPN's encryption algorithm March 12, 2006, 9:34 am
'Replace cert' option grayed out? HELP! February 15, 2007, 2:18 pm
FileACL Syntax to Replace File ACLs from Parent January 20, 2006, 11:53 pm
ntfs permissions, ownership, adding permissions January 13, 2006, 2:03 pm
Share permissions conflicting with NTFS permissions May 18, 2006, 1:16 pm
Permissions December 8, 2005, 2:09 pm
IIS permissions January 24, 2006, 6:50 pm
Permissions July 13, 2006, 5:09 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap