Solved

Using cacls or xcacls  to force inheritance of rights from directory to files

Posted on 2009-05-19
3
2,902 Views
Last Modified: 2012-05-07
I was wondering if there is a way to use calcs or xcalcs on a directory so that all the files in the directory will inherit the rights of the directory.

The problem is that potentially users will use FTP to upload files (for example images) to the a directory hosted by IIS.   Sometimes with FTP the file retains its permissions from the client machine rather than inheriting permissions of the directory it was uploaded to.. So users who are authenticated to the website may not have permissions to see the newly uploaded image..

Is it possible to create a calcs or xcalcs script that I can run against the directory so that all the files contained within will inherit the rights of the directory?
0
Comment
Question by:atomic500
3 Comments
 
LVL 10

Accepted Solution

by:
Kieran_Burns earned 250 total points
Comment Utility
Under Win2k3 SP2 you now have a new tool called icacls: http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx
To reset permissions to those inherited just type:
icacls <path> /restore
0
 
LVL 16

Assisted Solution

by:speshalyst
speshalyst earned 250 total points
Comment Utility
and also check this for a another tools like XCACLS and Subinacl.
http://www.defendingthenet.com/NewsLetters/XCACLS-SUBINACL-AndOtherPermissionSecurityRecoveryTools.htm
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 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

10 Experts available now in Live!

Get 1:1 Help Now