X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 5 Apr 2012 14:25:33 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: chmod problem Message-ID: <20120405122533.GP13898@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20120405094607 DOT GL13898 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Apr 5 05:19, Karl M wrote: > > > + ls -al /etc/ssh_host_rsa_key > > > -rw-rw---- 1 Administrators root 1675 Apr 4 11:30 /etc/ssh_host_rsa_key > > > > > > This test was on a fresh (1.7.12) from this morning. > > > > There's your problem: The Administrators group and the root group > > are just two different Cygwin group names for the same Windows group > > with SID S-1-5-32-544. So, the above POSIX permissions are a result > > of the SID S-1.5.32.544 having rw- permissions. > > > > Apart from that, the owner of the /etc/ssh* files should be cyg_server, > > not the admins group. > > > I name my cyg_server user root. But your root group is the same as the Administrators group. Look into the file's ACL. > But my testcase was demonstrating that chmod thought it changed the > file permissions but had no effect when performed in a script. While > when performed interactively at the bash command prompt, chmod worked > fine. It works still fine for me if I don't use the same Windows group as owner and as group of the file. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader 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