Click here to Skip to main content
15,908,634 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

Can any one help me to find dos cmd to set folder permission i.e Read&Execute , List Folder Content , Read and Write to particular user.
I am using CACLS cmd but it have R , C , W and F option.
If i user R than ead @ Execute , List Folder Content and Read set.
If i user W than only Write permission set.
if i user F than all permission set.
I want to set only permission Read&Execute , List Folder Content , Read and Write folder permission through DOS cmd.
My OS is window 2003 server with SP 1.

Early help appreciated.

[no name] 3-Aug-13 21:30pm    
I think that the closest thing you will find to what you describe is the ATTRIB command.
Sergey Alexandrovich Kryukov 3-Aug-13 22:08pm    
No, this is totally unrelated and mostly obsolete feature which does not really protect anything. You may be confused by OPs expression "DOS cmd", which is simply totally inappropriate/irrelevant.
Please see my answer.

1 solution

Windows 2003 does not have such thing as "DOS cmd".

You should talk just about command-line utility for doing so, that way you could use it in batch files, for example, and do other things. It has nothing to do with "DOS" or "DOS Prompt" which are not supported by Windows (thanks goodness!) since… ooh… really long time. Let's just forget it.

What you need is the cacls or icacks utility. Please see:[^],[^],[^].

That's all. All the rest you will find out by yourself after you read the documentation.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900