Re: Script to check individual permissions



okay, I am not being clear about my problem.

I want to clean up the permissions on my fileserver. I notice that some
folder-permissions are set to individual users instead of to a group.
So I am looking for a script that checks all folders for permissions, but
only displays that folders with permissions set to individual users.

PV




"Pegasus (MVP)" wrote:

Just use cacls by iteslf!

cacls "d:\Shares\Some Folder\Some File.doc"


"PV" <PV@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:38318E80-5457-414E-B860-C0BCFA0E8922@xxxxxxxxxxxxxxxx
Pegasus, thanks for your reply

That does give a better ouput than the subinacl-script

However this lists every file permission on a folder, where I was looking
only for individual file permissions.
Do you know if that is possible too?

PV

"Pegasus (MVP)" wrote:


"PV" <PV@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0061CD49-BAD3-4691-B184-DF66CBFFC188@xxxxxxxxxxxxxxxx
Hi,

Does anyone know of a script that checks individual file permissions
on a
set of folders?

Whith subinacl you can list al folder permissions
( subinacl /noverbose /nostatistic /outputlog=C:\myfile.txt
/subdirectories
C:\myfolder\ /display ), but as long as the permissions are set to a
group
I
don't care..

Thanks in advance

Peter

You could run this batch file:

@echo off
set source=d:\Shares
set target=c:\Permissions.txt

echo Compiling a directory listing
dir /b /ad /s "%source%" > c:\dir.txt

echo Permissions listed on %date% at %time:~0,5% > %target%
echo ======================================================= >> %target%
for /F "tokens=*" %%* in (c:\dir.txt) do (
echo Processing %%*
cacls "%%*" >> %target%
)
notepad %target%






.



Relevant Pages

  • Re: NTFS Security Question.
    ... A subordinate object DOES not inherit the PARENT perms (in ... will assume "Nebulous" permissions that refer to the LINK ... The trick is to PROPOGATE to all FILES (not Folders and Files - that would ... Since Windows 2000 deny NTFS permission does not work ...
    (microsoft.public.windowsxp.security_admin)
  • RE: ISA 2004 REPORT FAILURE
    ... Did as you suggested and turned auditing on for the system and folders ... that is setting the wrong permissions of the folders ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: ISA 2004 REPORT FAILURE
    ... the ISA Reports still fail because ... I can change the permissions manually ... on the ISALogs and ISASummaries folders ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Personal Media Drive
    ... > much more knowledgeable about Windows than I am. ... You restrict access by assigning permissions to drives, folders and files. ...
    (microsoft.public.windows.mediacenter)
  • RE: Securely allowing the helpdesk to change file permissions / data store structures
    ... One good method is to assign permissions for every folder based upon ... assign the position to the folders it needs to ... Securely allowing the helpdesk to change file permissions / ...
    (Security-Basics)