?
Solved

programatically view security permission of a directory tree

Posted on 2003-03-06
4
Medium Priority
?
976 Views
Last Modified: 2013-12-04
Does anyone know of any tools or scripts to view or print out a directory tree, including security permissions for each folder (and optionally files).

The problem we are trying to solve is managing various fileservers.  We want to start at the "top" and be able to recursively find all the sub folders and see the permissions on each folder.

Over time (and with various admins) the fileservers have had permissions set at various points in the tree that break the inheritance and/or are just unknown to us.

Any suggestions would be appreciated.

Thanks!
0
Comment
Question by:jrowe88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 12

Expert Comment

by:trywaredk
ID: 8083526
You can do it Yourself, as a compiled exe-file, if You purchase www.Winbatch.com

:o) And thousands of other things

Many Regards
Jorgen Malmgren
IT-Supervisor
Denmark
0
 

Expert Comment

by:cprietom
ID: 8087209
you don't need to purchase anything, windows NT and 2000 comes with a great command line tool call "cacls".

Play with it.
0
 
LVL 85

Accepted Solution

by:
oBdA earned 200 total points
ID: 8090187
You can start with that

=========8<--------snip--------------------------
@echo off
setlocal

for /f "tokens=*" %%a in ('dir /a:d /b /s %1') do cacls "%%a"
=========8<--------snip--------------------------

and move on from there.
This accepts a directory as start point and lists the NTFS rights of it and all subfolders.
0
 

Author Comment

by:jrowe88
ID: 8096040
Thanks! Exactly what I was looking for.
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question