Restore file permissions using xcacls.exe

Restore file permissions using xcacls.exe

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Restore file permissions using xcacls.exe Anekwe via WinServerKB.com 10-25-2005
Posted by Anekwe via WinServerKB.com on October 25, 2005, 8:15 am
If you were  Registered and logged in, you could reply and use other advanced thread options
How does one restore file or folder permissions after an upgrade completely?
I used showaccs.exe to download file permissions before a server rebuild.
Now I need to restore the permissions of all the files to their state before
the rebuild. I was able to do for many, but some I'm having problems. For
example, I have downloads like (+SPECIAL[f][d]) and (-SPECIAL[f][d]+SPECIAL[f]
[d]) in which I can't figure out the codes to use in xcacls.exe to restore
the file. Can anyone help?


--
Message posted via WinServerKB.com
http://www.winserverkb.com/Uwe/Forums.aspx/windows-security/200510/1

Posted by Steven L Umbach on October 25, 2005, 5:19 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
It is a little late now but there are better ways to migrate permissions
such as xcopy /o or Robocopy. From what I can see showacls does not
accurately reflect special permissions as in exactly what it applies to as
seen in the "apply onto" box in special permissions for folder only, files
only, etc. You may have to make a best guess starting with conservative
permissions for non default groups. System and administrators always have
full control other the administrators may not have permissions to users
profile or home folders. Users usually have full control permissions to
their profile and home folders. Beyond that users usually have no more than
read/list/execute permissions. Showacls /? will show more information about
what its entries mean. It looks like d is read data and f might be file
execute. --- Steve

showacls /s /u:domain\user filespec

/s include sub-directories
/u specify domain\user

ACE header values:

0x1 - Object Inherit ACE
0x2 - Container Inherit ACE
0x4 - No Propagate Inherit ACE
0x8 - Inherit Only ACE

Access mask values:

A Generic All l List Directory
R Generic Read d Read Data
W Generic Write S Synchronize
X Generic Execute r File Read
w File Write a File Append
fx File Execute D Delete
rE Read EA rW Write EA

> How does one restore file or folder permissions after an upgrade
> completely?
> I used showaccs.exe to download file permissions before a server rebuild.
> Now I need to restore the permissions of all the files to their state
> before
> the rebuild. I was able to do for many, but some I'm having problems.
> For
> example, I have downloads like (+SPECIAL[f][d]) and
> (-SPECIAL[f][d]+SPECIAL[f]
> [d]) in which I can't figure out the codes to use in xcacls.exe to restore
> the file. Can anyone help?
>
>
> --
> Message posted via WinServerKB.com
> http://www.winserverkb.com/Uwe/Forums.aspx/windows-security/200510/1



Posted by Roger Abell [MVP] on October 26, 2005, 1:55 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Also - you may be able to do an over-restore from a backup
in which you specific to restore with permissions.

At microsoft.com/downloads you can search out xcacls.vbs
(note: that is .vbs not .exe) as it is more capable with special
ACE settings than is xcacls.exe.

--
Roger Abell
Microsoft MVP (Windows Server : Security)
MCDBA, MCSE W2k3+W2k+Nt4
> How does one restore file or folder permissions after an upgrade
> completely?
> I used showaccs.exe to download file permissions before a server rebuild.
> Now I need to restore the permissions of all the files to their state
> before
> the rebuild. I was able to do for many, but some I'm having problems.
> For
> example, I have downloads like (+SPECIAL[f][d]) and
> (-SPECIAL[f][d]+SPECIAL[f]
> [d]) in which I can't figure out the codes to use in xcacls.exe to restore
> the file. Can anyone help?
>
>
> --
> Message posted via WinServerKB.com
> http://www.winserverkb.com/Uwe/Forums.aspx/windows-security/200510/1



Similar ThreadsPosted
Restore file permissions October 27, 2005, 2:09 pm
Modifying permissions with XCACLS.vbs February 7, 2008, 10:45 pm
System Restore File is a PUP August 1, 2006, 2:05 am
file permissions October 10, 2005, 12:30 pm
File sharing permissions August 16, 2005, 3:36 am
File Permissions are not inheriting June 15, 2005, 10:29 am
Folder/File Permissions April 21, 2006, 10:05 am
File permissions screwed up May 16, 2006, 9:41 am
File/Folder permissions July 15, 2008, 7:36 am
File and Folder Permissions October 22, 2008, 5:57 pm

The site map in XML format XML site map

Contact Us | Privacy Policy