Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List folder/file security in W2k

Status
Not open for further replies.

Andrew13

IS-IT--Management
Jun 27, 2003
3
GB
Does anyone know how to generate a list of files and folders with a list of users and their security permissions? I realise this will be a very long list! It would hopefully look something like:

FolderName1
John - read only
Fred - Full Control
FolderName2
Bill - No access
John - read only

Thank you for your help.
Kind regards
Andrew

 
Have a look at the following command.

C:\>showacls /?

Usage:

showacls /s /u:domain\user filespec

/s include sub-directories
/u specify domain\user

ACE header values:

0x1 - Object Inherit ACE
0x2 - Container Inherit ACE
0x4 - No Propagate Inherit ACE
0x8 - Inherit Only ACE

Access mask values:

A Generic All l List Directory
R Generic Read d Read Data
W Generic Write S Synchronize
X Generic Execute r File Read
w File Write a File Append
fx File Execute D Delete
rE Read EA rW Write EA

Pump the output to a file.
Can't remember if the command comes with the base operating system or its part of Resource kit or Support tools.

Sid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top