X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:references:in-reply-to :subject:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=yLQ3PoIwzCHdJvEV BgMxZOujLtUzLKakALyUx1kvcIaVvxwW/A2qDNOZCQwmj0m6QR70cwpzvKw9UoS4 fq4QM0WUc+Bgq0wW3Cf3MfqOl7O4oO/Rkwks4732xzt0fOWXg3fUFWSVg4YbBJDx O+GFCSWlugH2v9vDjmhGGiRA6Gw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:references:in-reply-to :subject:date:mime-version:content-type :content-transfer-encoding; s=default; bh=zZO/eP5Zd28BC4RhbKxL2f qdxXs=; b=YJyiFcjZa5Zqb0x1oT+YFHEhJxXvsKXHGSuvA0pb05XNqkLI3LUEq7 CWLYloMf9X6FkuQO+cBI94EgY90ka1+m353UTn/eDtm+omk2XZpSsWoEX2msJKg+ wUyVWSWIvgijW/vo/p6N3TgQKdR1McdYUdenhunX7rwUaYxr9ttes= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.2 X-TMN: [9CC5/St2byDbj4P2vP5qaN9zNfN3ufk0] Message-ID: <DUB405-EAS3176982DEE6A8A059A5A91E805B0@phx.gbl> From: Luke Ordelmans <l DOT ordelmans AT live DOT com> To: <cygwin AT cygwin DOT com> References: <20130812100901 DOT GB2691 AT calimero DOT vinschen DOT de> In-Reply-To: <20130812100901.GB2691@calimero.vinschen.de> Subject: RE: : 64-bit cygwin - cannot remove group permissions from file on ntfs Date: Mon, 12 Aug 2013 18:55:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r7CGtjTE014899 >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 AT 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 AT Sorcerer ~/test $ touch test >> Luke AT Sorcerer ~/test $ chmod -c 600 test >> mode of `test' changed from 0660 (rw-rw----) to 0600 (rw-------) >> Luke AT 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 AT 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