How to set special folder permissions in a script?




We're having a problem with permissions being messed up when we deploy
a new version of our web application. We'd like to reset permissions
with a script--batch file or vbs.

How can we set the special permissions in a script? neither cacls.exe
or xcacls.exe seem to support setting them. Special permissions print
out fine but I don't see any way to replicate these settings:

c:\Inetpub\wwwroot SAM2003\IUSR_SAM2003:(OI)(CI)(DENY)(special
access:)

DELETE
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_WRITE_EA
FILE_DELETE_CHILD
FILE_WRITE_ATTRIBUTES

SAM2003\IIS_WPG:(OI)(CI)R
NT AUTHORITY\SYSTEM:(OI)(CI)F
BUILTIN\Administrators:(OI)(CI)F
BUILTIN\Users:(OI)(CI)R


It's the first one, SAM2003\IUSER_SAM2003 that's a problem. How do
you set those special permissions with cacls/xcacls?

Thanks,

Sam

.



Relevant Pages

  • Re: NTFS default special permissions
    ... sure you noticed that the discussion is about a volume, not a folder. ... permissions do not assume that you want a read-only volume. ... the special permissions that are necessary for that to occur. ... FOLDERS/APPEND DATA AND CREATE FILES/WRITE DATA CREATED. ...
    (Focus-Microsoft)
  • Disk permission errirs just keep on coming...
    ... I am having a lot of disk permission errors. ... signify or what I could do to correct them, other than keep on repairing ... Determining correct file permissions. ... We are using special permissions for the file or directory ...
    (comp.sys.mac.system)
  • Re: File Replication errors n Event log on Server
    ... Authenicated users Read & Execute, List Folder Contents, read & special permissions special ... Server Operator - Read & Execute, List Folder Contents, read & special permissionsspecial permissions ...
    (microsoft.public.windows.server.general)
  • Re: Disk permission errirs just keep on coming...
    ... > I am having a lot of disk permission errors. ... > signify or what I could do to correct them, other than keep on repairing ... > Determining correct file permissions. ... > We are using special permissions for the file or directory ...
    (comp.sys.mac.system)
  • Re: NTFS default special permissions
    ... I believe that both of you have misunderstood the original question. ... Folders/Append Data and Create Files/Write Data. ... "The default permissions for Users are Read & Execute, List Folder Contents, ... Subject: NTFS default special permissions ...
    (Focus-Microsoft)

Loading