Solved

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

Posted on 2012-03-18
3
285 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
[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
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Part One of the two-part Q&A series with MalwareTech.
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…
Starting up a Project
Suggested Courses

623 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