Click here to get back home

Tool/script to walk thru all folders/shares and identify non-inherited permissions

 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
Tool/script to walk thru all folders/shares and identify non-inherited permissions rcebolleto 01-05-2007
Posted by rcebolleto on January 5, 2007, 4:28 pm
Please log in for more thread options
Hi guys

Looking for an easy to use tool (prferably one that is scriptable) which
can walk through all folders, shares (and all directory objects, too - a
guy can wish can't he?) so that I can rapidly discover those files with
an unknown/broken SID or explicitly granted permissions whcih are always
buried 3 folders deep in SYSVOL or docs&sets/administrator/localsetting
s/foo, which were put there because the previous admin needed to do a
quick workaround or just plain didn't appreciate what a pain it would be
for the next guy to figure out where all these goodies are stashed.

TreeSize Pro 4 sort of does this, but I don't know if it is scriptable,
and it just groups files by user (and lumps all nameless users under one
big 'unknown' category) - it doesn't address the inheritance-explicit
permissions issue.

Any ideas are welcome

Rob

Posted by Jesper on January 5, 2007, 6:29 pm
Please log in for more thread options
I'm sure that Windows 2009 will do all that, and make perfect toast. In the
meantime, Access Enum does some of what you want:
http://www.microsoft.com/technet/sysinternals/Security/AccessEnum.mspx


"rcebolleto" wrote:

> Hi guys
>
> Looking for an easy to use tool (prferably one that is scriptable) which
> can walk through all folders, shares (and all directory objects, too - a
> guy can wish can't he?) so that I can rapidly discover those files with
> an unknown/broken SID or explicitly granted permissions whcih are always
> buried 3 folders deep in SYSVOL or docs&sets/administrator/localsetting
> s/foo, which were put there because the previous admin needed to do a
> quick workaround or just plain didn't appreciate what a pain it would be
> for the next guy to figure out where all these goodies are stashed.
>
> TreeSize Pro 4 sort of does this, but I don't know if it is scriptable,
> and it just groups files by user (and lumps all nameless users under one
> big 'unknown' category) - it doesn't address the inheritance-explicit
> permissions issue.
>
> Any ideas are welcome
>
> Rob
>

Posted by Roger Abell [MVP] on January 6, 2007, 12:50 am
Please log in for more thread options
I have yet to find any scriptable tool that can reliably do the detection
of inherited or not on storage that has had an arbitrary history.

See thread begun December 20, 2006 1:47 PM with subject
Enum only files/folders where explicit NTFS rights have been sette
in microsoft.public.security
for list of other tools that have been tried and found lacking

> Hi guys
>
> Looking for an easy to use tool (prferably one that is scriptable) which
> can walk through all folders, shares (and all directory objects, too - a
> guy can wish can't he?) so that I can rapidly discover those files with an
> unknown/broken SID or explicitly granted permissions whcih are always
> buried 3 folders deep in SYSVOL or docs&sets/administrator/localsetting
> s/foo, which were put there because the previous admin needed to do a
> quick workaround or just plain didn't appreciate what a pain it would be
> for the next guy to figure out where all these goodies are stashed.
>
> TreeSize Pro 4 sort of does this, but I don't know if it is scriptable,
> and it just groups files by user (and lumps all nameless users under one
> big 'unknown' category) - it doesn't address the inheritance-explicit
> permissions issue.
>
> Any ideas are welcome
>
> Rob



Posted by Jesper on January 6, 2007, 12:41 pm
Please log in for more thread options
Roger, have you tried icacls in Vista? It has a number of bugs in it, but
also shows some promise.

"Roger Abell [MVP]" wrote:

> I have yet to find any scriptable tool that can reliably do the detection
> of inherited or not on storage that has had an arbitrary history.
>
> See thread begun December 20, 2006 1:47 PM with subject
> Enum only files/folders where explicit NTFS rights have been sette
> in microsoft.public.security
> for list of other tools that have been tried and found lacking
>
> > Hi guys
> >
> > Looking for an easy to use tool (prferably one that is scriptable) which
> > can walk through all folders, shares (and all directory objects, too - a
> > guy can wish can't he?) so that I can rapidly discover those files with an
> > unknown/broken SID or explicitly granted permissions whcih are always
> > buried 3 folders deep in SYSVOL or docs&sets/administrator/localsetting
> > s/foo, which were put there because the previous admin needed to do a
> > quick workaround or just plain didn't appreciate what a pain it would be
> > for the next guy to figure out where all these goodies are stashed.
> >
> > TreeSize Pro 4 sort of does this, but I don't know if it is scriptable,
> > and it just groups files by user (and lumps all nameless users under one
> > big 'unknown' category) - it doesn't address the inheritance-explicit
> > permissions issue.
> >
> > Any ideas are welcome
> >
> > Rob
>
>
>

Posted by Roger Abell [MVP] on January 6, 2007, 8:06 pm
Please log in for more thread options
> Roger, have you tried icacls in Vista? It has a number of bugs in it, but
> also shows some promise.
>

No I have not, at least that is not against what I find the most
problematic, which is storage that has been existing since NT 4
and so seen a few changes in ACE flag semantics.
That is a good idea to test it out though, so I will watch for
an opportunity.

Roger



> "Roger Abell [MVP]" wrote:
>
>> I have yet to find any scriptable tool that can reliably do the detection
>> of inherited or not on storage that has had an arbitrary history.
>>
>> See thread begun December 20, 2006 1:47 PM with subject
>> Enum only files/folders where explicit NTFS rights have been sette
>> in microsoft.public.security
>> for list of other tools that have been tried and found lacking
>>
>> > Hi guys
>> >
>> > Looking for an easy to use tool (prferably one that is scriptable)
>> > which
>> > can walk through all folders, shares (and all directory objects, too -
>> > a
>> > guy can wish can't he?) so that I can rapidly discover those files with
>> > an
>> > unknown/broken SID or explicitly granted permissions whcih are always
>> > buried 3 folders deep in SYSVOL or docs&sets/administrator/localsetting
>> > s/foo, which were put there because the previous admin needed to do a
>> > quick workaround or just plain didn't appreciate what a pain it would
>> > be
>> > for the next guy to figure out where all these goodies are stashed.
>> >
>> > TreeSize Pro 4 sort of does this, but I don't know if it is scriptable,
>> > and it just groups files by user (and lumps all nameless users under
>> > one
>> > big 'unknown' category) - it doesn't address the inheritance-explicit
>> > permissions issue.
>> >
>> > Any ideas are welcome
>> >
>> > Rob
>>
>>
>>



Similar ThreadsPosted
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
Permissions August 11, 2006, 12:29 pm
How should I do this? February 26, 2008, 3:29 am
COM+ Permissions February 29, 2008, 11:22 am
c:\ drive permissions June 23, 2005, 5:10 pm
Folders and permissions September 29, 2005, 5:35 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap