Solved

icacls command

Posted on 2013-01-22
2
779 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
2 Comments
 
LVL 39

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now