This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: : 64-bit cygwin - cannot remove group permissions from file on ntfs
- From: Luke Ordelmans <l dot ordelmans at live dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 12 Aug 2013 18:55:23 +0200
- Subject: RE: : 64-bit cygwin - cannot remove group permissions from file on ntfs
- References: <20130812100901 dot GB2691 at calimero dot vinschen dot de>
>On Aug 11 16:28, Luke Ordelmans wrote:
>> Running cygwin 64-bit on Windows 8 doesn't allow me to remove group permissions from a file. On 32-bit cygwin doing the same thing works fine.
>>
>> Luke@Sorcerer ~/test $ uname -a
>> CYGWIN_NT-6.2 Sorcerer 1.7.23(0.268/5/3) 2013-08-09 10:05 x86_64 Cygwin
>> Luke@Sorcerer ~/test $ touch test
>> Luke@Sorcerer ~/test $ chmod -c 600 test
>> mode of `test' changed from 0660 (rw-rw----) to 0600 (rw-------)
>> Luke@Sorcerer ~/test $ ls -la total 4.0K
>> drwxrwx---+ 1 Luke None 0 Aug 11 15:40 ./
>> drwxrwxr-x+ 1 Luke None 0 Aug 11 15:40 ../
>> -rw-rw---- 1 Luke None 0 Aug 11 15:40 test
>> Luke@Sorcerer ~/test $ umask
>> 0077
>
>Works fine for me. The only reason I can see is that the permissions
>and inheritance rules on the parent directory are so that the None
>group always has rw access, despite what you set for the file.
>
>What does `cacls .' and `cacls test' print?
>
>Corinna
Spot on! Explicitly removing all rights for 'None' from the top-level d:\cygwin64 solved the problem, thanks!
Luke
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
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