delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/13/05:35:41

X-Spam-Check-By: sourceware.org
Date: Sat, 13 Jan 2007 11:35:19 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh-host-config patch
Message-ID: <20070113103519.GD23638@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <17f71bca0701121354r6d92e6d1kd2733a85273ad480 AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <17f71bca0701121354r6d92e6d1kd2733a85273ad480@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
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

On Jan 12 17:54, Miguel A. Figueroa-Villanueva wrote:
> Hello Everyone,
> 
> When configuring sshd host with the ssh-host-config script I got
> errors from the chown commands at the end of the script. The reason is
> that my /etc/group file sets S-1-5-32-544 to 0 not 544 (my
> passwd/group files are printed below). I think the following patch is
> appropriate so that this case can be handled.

Thanks for the patch, but there's a reason for using 544 here.  It's
the right gid when using mkgroup and it should be unambiguous, even
if the group file has multiple entries for the admins group.  I like
to have the 0 as group, too, but I have left the 544 entry in so that
scripts relying on the gid still work.  When you use `ls -l' you still
get the gid 0 this way:

  $ grep "S-1-5-32-544" /etc/group
  root:S-1-5-32-544:0:
  admins:S-1-5-32-544:544:


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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