Re: XCACLS causes error in permissions
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 06/21/04
- Next message: Lanwench [MVP - Exchange]: "Re: URLScan"
- Previous message: Tim: "URLScan"
- In reply to: Lucvdv: "XCACLS causes error in permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 21 Jun 2004 01:27:26 +0200
Lucvdv wrote:
> 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
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/community/scriptcenter/default.mspx
- Next message: Lanwench [MVP - Exchange]: "Re: URLScan"
- Previous message: Tim: "URLScan"
- In reply to: Lucvdv: "XCACLS causes error in permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|