Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


assign permission via command line

Posted on 2007-10-09
Medium Priority
Last Modified: 2012-05-05
I am wondering if anyone knows if it is possible, or knows how to, set folder permissions from the command line in SBS 2003.


Question by:Bullfrog28
LVL 86

Accepted Solution

oBdA earned 1500 total points
ID: 20041452
Using the built-in "cacls.exe"; for example:
cacls "C:\SomeFolder" /t /e /g SomeGroup:C
will (/t)raverse subfolders as well, (/e)dit the current ACL (instead of replacing it), and (/g)rant the group "SomeGroup" (C)hange permissions on the folder "SomeFolder".

For more detailed permissions, you can use xcacls.vbs, a download; but do NOT use xcacls.EXE to change NTFS permissions on a W2k3 machine, it produces incorrectly ordered ACEs if used with /e; use xcacls.VBS instead.
Child objects in a folder do not inherit permissions as expected when you use Xcacls.

How to use Xcacls.vbs to modify NTFS permissions

How to use Xcacls.vbs to modify NTFS permissions
LVL 13

Expert Comment

ID: 20041467

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits …
Loops Section Overview
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

579 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