View Single Post
  #9  
Old August 27th 11, 11:51 PM posted to microsoft.public.windowsxp.general,alt.windows7.general,microsoft.public.windowsxp.network_web
Nil[_2_]
external usenet poster
 
Posts: 2,170
Default Windows 7 to XP file sharing: some files are accessible in afolder, some are not

On 27 Aug 2011, Yousuf Khan wrote in
alt.windows7.general:

Now is there a bulk (command-line) way to fix the permissions on
these files?


The CACLS utility is designed for that:

C:\CACLS /?
Displays or modifies access control lists (ACLs) of files

CACLS filename [/T] [/E] [/C] [/G usererm] [/R user [...]]
[/P usererm [...]] [/D user [...]]
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G usererm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke specified user's access rights
(only valid with /E).
/P usererm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Abbreviations:
CI - Container Inherit.
The ACE will be inherited by directories.
OI - Object Inherit.
The ACE will be inherited by files.
IO - Inherit Only.
The ACE does not apply to the current file/directory.
Ads