Solved

Windows 2008 - script to turn on "Deny" for specific file permissions in Security?

Posted on 2012-03-18
3
283 Views
Last Modified: 2012-04-20
How to turn on by command line "Deny" box for specific file Security section?
File has inherited permission from the directory before.

Please provide command line example.

See explanations below
Inherited permissions
0
Comment
Question by:longjumps
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
ednetman earned 500 total points
ID: 37735092
This needs to be run from an elevated command prompt.

ICACLS FileName /deny User:Permission NP

If the file is called test.txt
You want to DENY the Modify permission to EVERYONE and do not want it to propagate inherit


ICACLS test.txt /deny Everyone:Modify NP

Add /Q  for Quiet....


ICACLS test.txt /deny Everyone:Modify NP /Q

Full explanations here: http://ss64.com/nt/icacls.html
0
 
LVL 1

Author Comment

by:longjumps
ID: 37738904
Which command should be for file to perform - don't inherit  from parent and copy all access to current file from parent?
0
 
LVL 1

Author Comment

by:longjumps
ID: 37740936
ICACLS filename /inheritance:d
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
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…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in 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