?
Solved

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

Posted on 2009-05-19
3
Medium Priority
?
2,964 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
[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
3 Comments
 
LVL 10

Accepted Solution

by:
Kieran_Burns earned 1000 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 1000 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…
Suggested Courses

770 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