?
Solved

Set rights on folders, subfolders and files by commandline

Posted on 2012-09-20
4
Medium Priority
?
775 Views
Last Modified: 2012-10-17
Hey

Example:

D:\Users\Jon\

I would like to give jon@mydomain.com access to the Jon folder (security) - Give him rights to add folder, subfolders and files to the D:\Users\Jon... But Jon should not be able to delete the Jon folder.

Using icacls? or?

Thanks in advance

Mike
0
Comment
Question by:mikeydk
  • 3
4 Comments
 
LVL 14

Expert Comment

by:btdownloads7
ID: 38417718
You should definitely use icacls. If you just run that command without any parameters, it will give you all the possible options and some examples. It will look something like this:
icacls d:\users\jon /grant jon:(RC,WDAC,WO,S,AS,MA,GR,GW,GE,GA,RD,WD,AD,REA,WEA,X,RA,WA)

icacls d:\users\jon /grant jon:(DE,DC)

Open in new window


The first command basically give him full access without delete permissions, and the second specifically denies those delete permissions
0
 
LVL 1

Author Comment

by:mikeydk
ID: 38419389
Hey

How do I set the "Only files and subfolders"? (not only "this folder")

Mike
0
 
LVL 14

Expert Comment

by:btdownloads7
ID: 38419469
add the /T switch, which will propagate it into all the subfolders
0
 
LVL 14

Accepted Solution

by:
btdownloads7 earned 2000 total points
ID: 38477649
I just wanted to make sure that everything worked to your satisfaction
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Suggested Courses

612 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