PC Review


Reply
Thread Tools Rate Thread

Browse folders recursively for ACLs

 
 
Vince C.
Guest
Posts: n/a
 
      11th Nov 2005
Hi.

I'd like to check whether security groups that are defined in Active are
used in files/folders security. Are there command line tools to search
folders recursively for security attributes (ACLs)?

Thanks for any hint/suggestion.

Vicne C.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      11th Nov 2005
Is this what your looking for:

for /f "skip=3 tokens=5*" %i in ('dir /a:d') do cacls "%i %j"

Note: The last line by the command will allways give this error:
C:\>cacls "free "
The system cannot find the file specified.


"Vince C." wrote:

> Hi.
>
> I'd like to check whether security groups that are defined in Active are
> used in files/folders security. Are there command line tools to search
> folders recursively for security attributes (ACLs)?
>
> Thanks for any hint/suggestion.
>
> Vicne C.
>
>

 
Reply With Quote
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      11th Nov 2005
the last command only does directories. this does directories,
subdirectories, and files:

for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"


"Royce" wrote:

> Is this what your looking for:
>
> for /f "skip=3 tokens=5*" %i in ('dir /a:d') do cacls "%i %j"
>
> Note: The last line by the command will allways give this error:
> C:\>cacls "free "
> The system cannot find the file specified.
>
>
> "Vince C." wrote:
>
> > Hi.
> >
> > I'd like to check whether security groups that are defined in Active are
> > used in files/folders security. Are there command line tools to search
> > folders recursively for security attributes (ACLs)?
> >
> > Thanks for any hint/suggestion.
> >
> > Vicne C.
> >
> >

 
Reply With Quote
 
Al Dunbar [MS-MVP]
Guest
Posts: n/a
 
      12th Nov 2005

"Royce" <(E-Mail Removed)> wrote in message
news:BB1A95B5-1662-4634-86D5-(E-Mail Removed)...
> the last command only does directories. this does directories,
> subdirectories, and files:
>
> for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"


Nice, but that does not do much that this does not do:

cacls *.* /t

.... unless you search the output of each cacls command looking for a
specific trustee name...


/Al

> "Royce" wrote:
>
> > Is this what your looking for:
> >
> > for /f "skip=3 tokens=5*" %i in ('dir /a:d') do cacls "%i %j"
> >
> > Note: The last line by the command will allways give this error:
> > C:\>cacls "free "
> > The system cannot find the file specified.
> >
> >
> > "Vince C." wrote:
> >
> > > Hi.
> > >
> > > I'd like to check whether security groups that are defined in Active

are
> > > used in files/folders security. Are there command line tools to search
> > > folders recursively for security attributes (ACLs)?
> > >
> > > Thanks for any hint/suggestion.
> > >
> > > Vicne C.
> > >
> > >



 
Reply With Quote
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      12th Nov 2005
Your absolutely right! Thanks Al, I apparently overlooked that.

"Al Dunbar [MS-MVP]" wrote:

>
> "Royce" <(E-Mail Removed)> wrote in message
> news:BB1A95B5-1662-4634-86D5-(E-Mail Removed)...
> > the last command only does directories. this does directories,
> > subdirectories, and files:
> >
> > for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"

>
> Nice, but that does not do much that this does not do:
>
> cacls *.* /t
>
> .... unless you search the output of each cacls command looking for a
> specific trustee name...
>
>
> /Al
>
> > "Royce" wrote:
> >
> > > Is this what your looking for:
> > >
> > > for /f "skip=3 tokens=5*" %i in ('dir /a:d') do cacls "%i %j"
> > >
> > > Note: The last line by the command will allways give this error:
> > > C:\>cacls "free "
> > > The system cannot find the file specified.
> > >
> > >
> > > "Vince C." wrote:
> > >
> > > > Hi.
> > > >
> > > > I'd like to check whether security groups that are defined in Active

> are
> > > > used in files/folders security. Are there command line tools to search
> > > > folders recursively for security attributes (ACLs)?
> > > >
> > > > Thanks for any hint/suggestion.
> > > >
> > > > Vicne C.
> > > >
> > > >

>
>
>

 
Reply With Quote
 
Vince C.
Guest
Posts: n/a
 
      13th Nov 2005
Le samedi 12 novembre 2005 à 12:08 -0700, Al Dunbar [MS-MVP] a écrit :
> "Royce" <(E-Mail Removed)> wrote in message
> news:BB1A95B5-1662-4634-86D5-(E-Mail Removed)...
> > the last command only does directories. this does directories,
> > subdirectories, and files:
> >
> > for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"

>
> Nice, but that does not do much that this does not do:
>
> cacls *.* /t
>
> ... unless you search the output of each cacls command looking for a
> specific trustee name...


Which is exactly what I want :-). Thanks Royce & Al.

Note the /t is said to *change* ACLS (cacls /?). Can it also be used to
just *list* recursively?

Vince C.

 
Reply With Quote
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      13th Nov 2005
The /t alone will just list ACLs.

"Vince C." wrote:

> Le samedi 12 novembre 2005 Ã* 12:08 -0700, Al Dunbar [MS-MVP] a écrit :
> > "Royce" <(E-Mail Removed)> wrote in message
> > news:BB1A95B5-1662-4634-86D5-(E-Mail Removed)...
> > > the last command only does directories. this does directories,
> > > subdirectories, and files:
> > >
> > > for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"

> >
> > Nice, but that does not do much that this does not do:
> >
> > cacls *.* /t
> >
> > ... unless you search the output of each cacls command looking for a
> > specific trustee name...

>
> Which is exactly what I want :-). Thanks Royce & Al.
>
> Note the /t is said to *change* ACLS (cacls /?). Can it also be used to
> just *list* recursively?
>
> Vince C.
>
>

 
Reply With Quote
 
Vince C.
Guest
Posts: n/a
 
      14th Nov 2005
"Royce" <(E-Mail Removed)> a écrit dans le message de news:
BF14FFE2-20E9-4BFE-83DE-(E-Mail Removed)...
> The /t alone will just list ACLs.
>


Would be nice if the help mentionned that instead of just about the
"change". It's misleading.

Vince C.


 
Reply With Quote
 
Vince C.
Guest
Posts: n/a
 
      14th Nov 2005
"Royce" <(E-Mail Removed)> a écrit dans le message de news:
BB1A95B5-1662-4634-86D5-(E-Mail Removed)...
> the last command only does directories. this does directories,
> subdirectories, and files:
>
> for /f "tokens=*" %%i in ('dir /a /s /b') do cacls "%%~dpnxi"


This one is what I'm looking for. But the output of cacls is awful as it
can't be directly processed into Excel, for instance. It can't even be
treated like a space-separated list of values because spaces can occur in
file or folder names. Neither is there a common delimiter/position to each
"column".

Ok, it's more than nothing but I'd have expected an output format that is
easier to process. I think I'll have to write a custom script to transcode
to CSV.

Vince C.


 
Reply With Quote
 
Vince C.
Guest
Posts: n/a
 
      14th Nov 2005
"Vince C." <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
> Ok, it's more than nothing but I'd have expected an output format that is
> easier to process. I think I'll have to write a custom script to transcode
> to CSV.


.... or use a windows port of GNU utilities. I think I've got it.

Thanks again.

Vince C.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor Folders recursively Wes Stahler Microsoft Outlook 1 23rd Jan 2009 06:54 PM
Recursively searching outlook folders Magne Microsoft Outlook 0 21st Mar 2007 04:22 PM
W2K batch to recursively delete all folders with given name Par_DD.RemoveThisToMailMe.@simplicitus.com Microsoft Windows 2000 CMD Promt 3 9th Feb 2006 09:30 PM
recursively search public folders Mickey Ferguson Microsoft Outlook 4 29th Jul 2005 08:40 PM
Recursively Set All Folders & Files to NOT Read-Only melo Microsoft C# .NET 2 9th Mar 2005 12:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.