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:
Hi

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.

Narayan
Posted
Comments
[no name] 3-Aug-13 21:30pm    
I think that the closest thing you will find to what you describe is the ATTRIB command. http://www.csulb.edu/~murdock/attrib.html
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.
—SA

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:
http://en.wikipedia.org/wiki/Cacls[^],
http://technet.microsoft.com/en-us/library/cc753525%28v=ws.10%29.aspx[^],
http://technet.microsoft.com/en-us/library/bb490872.aspx[^].

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

—SA
 
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