XCACLS causes error in permissions

L

Lucvdv

After using xcacls from the resource kit to change permissions on a
folder and its contents, explorer reports an error on the permissions.
This happens in XP as well as Win2000.

[Xcacls should be the same as cacls, with the exception of an added
"/Y" switch to make it easier to use from a batch file].

What I did was grant access to one account, and revoke (deny) it for
another:

xcacls <path> /T /E /G User1:F /Y
xcacls <path> /T /E /D User2 /Y

After executing these commands through wshShell.Run in a script,
opening the security tab in the folder's properties (or any item
within it) causes this message to appear:

The permissions on <name> 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.


Clicking OK or Cancel >>seems<< to do what the message says, but the
changes aren't saved when the properties dialog is closed: the same
error reappears the next time the security tab is opened.
 
B

Brendon Rogers

I meant poked for Windows 2000.

Brendon Rogers said:
XCACLS.EXE is poked for Windows.

You need XCACLS.VBS:
http://support.microsoft.com/?id=825751

Phone Microsoft Product Support Services, mention this article by number and
they will send you the tool free of charge.

Lucvdv said:
After using xcacls from the resource kit to change permissions on a
folder and its contents, explorer reports an error on the permissions.
This happens in XP as well as Win2000.

[Xcacls should be the same as cacls, with the exception of an added
"/Y" switch to make it easier to use from a batch file].

What I did was grant access to one account, and revoke (deny) it for
another:

xcacls <path> /T /E /G User1:F /Y
xcacls <path> /T /E /D User2 /Y

After executing these commands through wshShell.Run in a script,
opening the security tab in the folder's properties (or any item
within it) causes this message to appear:

The permissions on <name> 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.


Clicking OK or Cancel >>seems<< to do what the message says, but the
changes aren't saved when the properties dialog is closed: the same
error reappears the next time the security tab is opened.
 
T

Torgeir Bakken \(MVP\)

Lucvdv said:
After using xcacls from the resource kit to change permissions on a
folder and its contents, explorer reports an error on the permissions.
This happens in XP as well as Win2000.

[Xcacls should be the same as cacls, with the exception of an added
"/Y" switch to make it easier to use from a batch file].

What I did was grant access to one account, and revoke (deny) it for
another:

xcacls <path> /T /E /G User1:F /Y
xcacls <path> /T /E /D User2 /Y

After executing these commands through wshShell.Run in a script,
opening the security tab in the folder's properties (or any item
within it) causes this message to appear:

The permissions on <name> 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.
Hi

An alternative that works better:

SetACL.exe (freeware) at
http://setacl.sourceforge.net/

SetACL can set permissions on:

Local or remote directories
Local or remote files
Local or remote printers
Local or remote registry keys
Local or remote Win32 services
Local or remote network shares
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top