Changing file permissions on the Windows command line is convenient for administrators who can navigate through directories and prompts faster than through a graphical interface. Since Windows Server 2003 and Vista, Windows includes the system tool icacls.exe to change the permissions of files and folders. ICacls replaces the older Cacls, which stood for change access control list.
- Skill level:
Other People Are Reading
Click the Windows Start button and select Run. Type "cmd" and press the Enter key on the keyboard to open the command-line prompt.
Type "icacls" and press Enter to view a list of options and command-line settings. The basic syntax for the command line permissions settings follows the form:
icacls filepath [my Options]
Filepath is the location and name of the file, and [myOptions] is the permission settings.
Give a user named my User read and write access to the file myFile.doc using the following syntax:
icacls c:\path\myFile.doc /grant my User:R
icacls c:\path\myFile.doc /grant my User:W
Remove my User's access to myFile.doc:
icacls c:\path\myFile.doc /deny my User
Type "exit" and press Enter to close the command line.
Tips and warnings
- No reboot is necessary.
- ICacls and Cacls only work on NTFS-formatted file systems.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for