Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Change Windows 7 file permissions from command prompt

How can I change file permissions in Windows 7 using a command?

share|improve this question

migrated from Dec 15 '10 at 8:33

This question came from our site for professional and enthusiast programmers.

marked as duplicate by nhinkle, BinaryMisfit Dec 15 '10 at 10:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Windows comes with a special command line utility called CACLS.

You can use it as follows:



* /p : Set new permission
* /e : Edit permission and kept old permission as it is i.e. edit ACL instead of replacing it.
* {USERNAME} : Name of user
* {PERMISSION} : Permission can be:
      o R - Read
      o W - Write
      o C - Change (write)
      o F - Full control

For example grant Betty Full (F) control with following command (type at Windows command prompt):

C:> CACLS files /e /p betty:f

Read complete help by typing following command:

C:> cacls /?
share|improve this answer
Thanks! This helped me. Additionally, cacls works with user groups as well (just replace betty with the group name). – Eric H Aug 13 '15 at 3:14

You can use the takeown command.

Have a look at the following articles:


Seven Forums

share|improve this answer