cacls command in Windows XP and Vista can be used to deny read access to files to certain users. How can I find out which files in a directory tree are readable for a user after
cacls has been run? A batch file solution is preferable.
I created an example folder C:\test and populated it with two files, normal.txt and secure.txt. The latter file was set to be permissioned only to my account whereas normal.txt has the default inherited permissions.
The command I then used was
I then ran it with another user:
Hopefully that does the job!