Solved

icacls command

Posted on 2013-01-22
2
786 Views
Last Modified: 2013-01-23
I am using two icacls command.  If i do a restore, it doesnt stop inheritance on certain folders that the original  source had.  Here are the two commands.  What other parameters do i need to correct this?

iCACLS D:\data /save c:\logfile.txt /t /c


iCACLS D:\ /restore c:\logfile.txt
0
Comment
Question by:aplona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Expert Comment

by:footech
ID: 38807715
if you want to remove all ACEs that are inherited, use the /inheritance:r switch.
0
 
LVL 40

Accepted Solution

by:
Subsun earned 225 total points
ID: 38807767
iCACLS should preserve the inheritance.. Are you getting any error while saving or restoring the ACL's?
Ref : http://social.technet.microsoft.com/wiki/contents/articles/408.how-to-back-up-and-restore-ntfs-and-share-permissions.aspx

Also verify the permission on the folder and sub folders..

Excerpt from ref : http://ss64.com/nt/icacls.html
Using iCACLS

    To edit a file you must already have the "Change" ACL (or be the file's owner)
    To use the iCACLS command to change the permissions of a file requires "FULL Control" (or be the file's owner)
    File "Ownership" will always override all ACL's - you always have Full Control over files that you create.

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question