Solved

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

Posted on 2009-05-19
3
2,933 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
ID: 24429458
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
ID: 24430805
and also check this for a another tools like XCACLS and Subinacl.
http://www.defendingthenet.com/NewsLetters/XCACLS-SUBINACL-AndOtherPermissionSecurityRecoveryTools.htm 
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

The way I use Experts Exchange to assist me in analyzing and diagnosing a problem is I first enter a Verbose Question at Experts Exchange like: Office 2007 will hang when opening and saving files I then launch WordPad (any text editor will do) an…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

830 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