Server Fault is a question and answer site for system and network administrators. 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

Is there a way to run the chmod command on Windows?

share|improve this question
up vote 4 down vote accepted

No, there's no chmod command in Windows.

Either use Explorer's properties page for the file, or from a command shell use the attrib or cacls commands.

share|improve this answer
-1, attrib.exe has nothing to do with permissions, it changes file attributes. – ThatGraemeGuy Aug 10 '09 at 10:44
sure, but one of those attributes is the read-only permission. – Alnitak Aug 10 '09 at 10:52
That's not a permission, it's a file attribute. The NTFS "write" permission is NOT the same thing as the "R" file attribute. – tomfanning Aug 10 '09 at 10:58
if you know of a decent reference explaining the difference that would be useful. thanks. – Alnitak Aug 10 '09 at 12:23
From Windows 7: NOTE: Cacls is now deprecated, please use Icacls. – jscott Sep 16 '10 at 12:32

Installing Cygwin provides a chmod command utility.

share|improve this answer
I just add c:\cygwin (assuming that is your install directory) to the environmental variables in Control Panel, System, Advanced, Environmental Variables, PATH – Sun Aug 13 '14 at 22:12

Exactly what do you want to accomplish by using chmod?
Would you be marking some files as executable?
Windows system does not support most (all?) of what chmod is used to do.

You can change read-only and visibility access recursively from the explorer properties.

I was surprised to see CHMOD-Win
But, do be careful with what you get from such sites.

share|improve this answer
Thanks I did try CHMOD-Win, but that just gives you the numerical values for the file permissions you want to apply to each user group (e.g. 4 = read, etc.). – Techboy Aug 10 '09 at 9:00
In that case you should try the properties from the GUI or the attrib command (try "attrib /h" from a command shell). – nik Aug 10 '09 at 9:02
Thanks for the help. As it is not possible to run chmod from within Windows, I have asked a separate question (explaining my issue in full) here:… – Techboy Aug 10 '09 at 9:20

There are some native Win32 ports of Unix commands available. I believe chmod is included, but depending on what you're actually trying to accomplish this might be the wrong tool to use. Perhaps CACLS could be useful (try "cacls" from the command line or search in the windows help).

share|improve this answer
I have just tried it and chmod doesn't appear to be there (unless I'm doing something wrong). I don't think CACLS will help me in this particular scenario, but thanks. – Techboy Aug 10 '09 at 10:32
I just downloaded and chmod is located under usr/local/wbin. – Cwan Aug 10 '09 at 10:41

On post Win2k OSes one sould use iCalcs instead of the older Calcs.

If you need to set-up website permissions, you can try logging using an FTP client like filezilla and Chmod permissions from there.

share|improve this answer


Is a console application for windows that can set file premissions ( NTFS file premissions ), and like metioned before attrib can set some limited file attributes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.