Windows change access permissions from the command line
Linux and Unixish system comes with chmod and other commands to setup/change access permission from command line/shell.
However, when it comes to windows chmod is not available. Windows comes with a special command line utility called CACLS.
You can use it as follows:
CACLS files /e /p {USERNAME}:{PERMISSION}
Where,
- /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:
- R - Read
- W - Write
- C - Change (write)
- F - Full control
For example grant Rocky Full (F) control with following command (type at Windows command prompt):
C:> CACLS files /e /p rocky:f
Read complete help by typing following command:
C:> cacls /?
E-mail this to a friend
Printable version
You may also be interested in other helpful articles:
- Unix or Linux commands for changing user rights
- Hiding folders or files under Windows 2003 SP1
- Best Linux / UNIX Posts of 2007: Part ~ I
- What is umask and how to setup default umask under Linux?
- Samba share permissions simplified
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 4 Comments
Today ~ 22 Comments
Today ~ 11 Comments
Today ~ 46 Comments
Yesterday ~ 4 Comments