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

My Cygwin installation is behaving strangely: chmod does not work.

[09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod
64K -rwxr-xr-x 1 Administrator None 38K Feb  6  2012 /usr/bin/chmod

[09:47 Administrator@DellIns14 ~] > rm /tmp/
rm: remove regular empty file `/tmp/'? y
[09:48 Administrator@DellIns14 ~] > touch /tmp/
[09:48 Administrator@DellIns14 ~] > ls -ls /tmp/
0 -rw-r--r-- 1 Administrator None 0 Jul  8 09:48 /tmp/
[09:48 Administrator@DellIns14 ~] > chmod -v +x /tmp/
mode of `/tmp/' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
[09:48 Administrator@DellIns14 ~] > ls -ls /tmp/
0 -rw-r--r-- 1 Administrator None 0 Jul  8 09:48 /tmp/
[09:48 Administrator@DellIns14 ~] >

Note that the directory is writable, as the file is created.

When I look at this directory from a windows perspective, it is reported as read-only (even after I change it to read-write, it reverts to read-only).
Screen-captures are at cygwin's /tmp is read-only in windows, and cannot be changed to read-write

Can you suggest how to debug/solve?

Windows 7, Cygwin 1.7.29(0.272/5/3) i686

share|improve this question

1 Answer 1

I found This Answer helpful.

Besides normal POSIX permissions that contoll owner, group, other access, the file permission in Cygwin may also be affected by Windows ACL.

In your case, please try

ls -l /tmp/
getfacl /tmp/
setfacl -b /tmp/
ls -l /tmp/
chmod -v +x /tmp/
ls -l /tmp/
share|improve this answer
If you found additional permission by getfacl, you make need to check/reset /tmp too. – Danny Zeng Feb 16 at 4:03
Thanks @Danny Zeng: I'll keep the [gs]etfacl commands in mind. As for the original problem - seems that in the meantime, it vanished, and now chmod works as expected on my cygwin. Quite a few things were changed on my system in the interim, so I cannot hazard a guess what was the change that solved the problem. – boardrider Feb 17 at 22:03

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.