Drew Adams <drew.ad...@oracle.com> writes: > I have read various info regarding trying to make Cygwin's `chmod' > work as (I) expected, including the Cygwin FAQ and user guide. > I am using Windows 7 with an NTFS disk. My user and group are > defined as they should be AFAIK. > > Two questions in this regard: > > . is "chmod a-w" supposed to set the Windows Read-only attribute > on Windows 7? > > . is "chmod a-w" supposed to cause "ls -l" to show -r-r-r on > Windows 7? > > When I do `chmod a-w' it does not seem to have any effect. The > target file is still writable. Can someone please tell me what > I'm missing? Thx.
Works for me. Here's a file on my system: $ ls -ltr boxes.txt -rw-rw-rw-+ 1 A4J0PZZ Administrators 45 Aug 5 12:46 boxes.txt When I run chmod a-w boxes.txt, I get $ ls -ltr boxes.txt -r--r--r--+ 1 A4J0PZZ Administrators 45 Aug 5 12:46 boxes.txt and the file is no longer writeable. That's not what you are seeing? I'm on Windows 7 with an NTFS disk as well. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple