Hey guys! I recently used the XCACLS command to give "USERS" Full access to a folder on their Windows 2000 workstations.
Run this from a command line:
code:
\\server\share\xcacls.exe c:\targetfolder /P USERS:F /E /Y /C /T
The permissions get set perfect everytime, however, if you right click on any of the files in the folder, select properties, and click on the SECURITY tab, you get the following error message: quote:
The permissions on "file" are incorrectly ordered, which may cause some entries to be ineffective. Press OK to continue and sort the permissions correctly, or Cancel to reset the permissions.
This does not cause any permissions problems because I used /T "Recursively walk through the current directory and all its subdirectories, applying the chosen access rights to the matching files or directories".
If you elect not to use /T the ACE added to the directory is also an inherit ACE for new files created in this directory. But, since 'The permissions on "directory" are incorrectly ordered', the file permissions are not correctly inherited.
So, the question here is "How do you use XCACLS to set file/folder permissions and correctly sort their order?