How to give ACL to more than one group of users

I want to use the DOS command "CACLS" to give a filename to multiple users F access.

I can do 1 users, by using:
cacls filename /G user1:F

dos help tell me I can put multiple users with a single command, but there is no example.

I tried cacls filename /G user1:F user2:F  etc,  it does not works.

need help especially with examples.

thanks
mshox1Asked:
Who is Participating?
 
Bill PrewCommented:
Have you tried the following, reading the docs it seems like this should work.

cacls filename /G user1:F /G user2:F /G user3:F

~bp
0
 
mshox1Author Commented:
BillPrew, thank you for your input

I have tried above,  cacls flename /G user1:F /G user2:F  etc
it does NOT works.

the documents did not give any example.

Please help again.

thanks

0
 
Joseph DalyCommented:
Try the following

cacls "c:\dir" /t /g "domain\user":F "domain\user":F "domain\user":R "domain\user":C

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Joseph DalyCommented:
The problem is you only need to use the /G switch one time and then your list of users.

In the example above I also showed the options for Read and Change
0
 
Bill PrewCommented:
Looks like the /G is only needed once, as shown here:

http://www.computerperformance.co.uk/w2k3/utilities/cacls.htm

~bp
0
 
mshox1Author Commented:
excellent.  it works.  I specially like the web site you sent to me, that have even more detail explanation.  

again, thank you for the help
0
 
Joseph DalyCommented:
Im glad you got the answer you wanted but cant really agree with your points split.

You accepted one answer which didnt work and skip my answer with the command line etc but then accept the same answer someone else said???
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.