Restore file permissions

From: Anekwe via WinServerKB.com (u13021_at_uwe)
Date: 10/27/05


Date: Thu, 27 Oct 2005 18:09:08 GMT

I used showaccs.exe to download file permission rights and use xcacls.vbs to
restore those file permissions as in a case of server upgrade. I need to
find out what the code sequence are to restore five situations- the first is
a folder with just List Folder Contents and Read both checked. The second is
a folder with List Folder Contents, Read, and Write checked. The third is a
folder with Deny Write checked. The fourth is a folder with Deny Read
checked. The fifth is a folder with Deny List Folder Contents, Read, and
Write checked.

For example, a folder can be in any given permission set. But, if I use the
following command line statement: >cscript.exe xcacls.vbs "D:\TestFolder" /g
USERS:X [enter], the folder TestFolder is reset to List Folder Contents,
Read and Write boxes checked. The advanced settings will also be reset to
the corresponding.

-- 
Message posted via http://www.winserverkb.com


Relevant Pages

  • Re: Restore file permissions using xcacls.exe
    ... xcacls.vbs is very helpful in restoring special permissions. ... Read, Write and a folder checked with just List Folder Contents, Read, Write. ... >in which you specific to restore with permissions. ...
    (microsoft.public.security)
  • Re: .mdb used with IIS > security?
    ... >>No, file permission in fact! ... >>I can share the folder, ... >>ASP web application. ... > generic user to ...
    (microsoft.public.access.security)
  • file permission changed
    ... The file permission of a folder has been changed into ... I don't know how the question mark sign came infront of the ... permission mode. ... Now I can't access this folder. ...
    (RedHat)
  • Re: Recovering/repairing Win2k install after m/b & CPU change
    ... To see an illustrated registry restore procedure ... if you make your backup into a folder ... restore the user hives also.) ... Here's the detailed proceedure for using the Recovery Console: ...
    (microsoft.public.win2000.general)
  • Re: SP3 install space problem
    ... You will need to watch System Restore. ... above I would ensure that the disk space allocation to system restore is ... Information folder in Windows Explorer by right clicking on the Folder ... Remove Temporary Internet Files. ...
    (microsoft.public.windowsxp.general)