X-Spam-Check-By: sourceware.org
Date: Sat, 13 Jan 2007 11:35:19 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ssh-host-config patch
Message-ID: <20070113103519.GD23638@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <17f71bca0701121354r6d92e6d1kd2733a85273ad480@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <17f71bca0701121354r6d92e6d1kd2733a85273ad480@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

