delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/05/08:37:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <COL102-W4238188C73698BEAEF8180B5330@phx.gbl>
From: Karl M <karlm30 AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: chmod problem
Date: Thu, 5 Apr 2012 05:37:21 -0700
In-Reply-To: <20120405122803.GQ13898@calimero.vinschen.de>
References: <COL102-W43EF8B4D23C6886C30B4A6B5320 AT phx DOT gbl> <20120405094607 DOT GL13898 AT calimero DOT vinschen DOT de> <COL102-W2174F255E2C7340E63C07B5330 AT phx DOT gbl> <20120405122533 DOT GP13898 AT calimero DOT vinschen DOT de>,<20120405122803 DOT GQ13898 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q35CbrhW025030



On Apr 5 14:25, Corinna Vinschen wrote:
> 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.
 
Btw., there were no changes at all between 1.7.10 and 1.7.12 which
would even remotely touch chmod or chown behaviour on files.
 

If you do use the same windows group as owner and group of the file

do you get the same thing as me?

 

I still don't understand why doing the chmod command interactively is different.

 

...Karl

  		 	   		  

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019