delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/16/08:15:26

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:reply-to:date:from:to:subject:message-id
:mime-version:content-type; q=dns; s=default; b=SYNemUtqH3YlaJao
0AKeNnGuCp7/GvD017dKtQp0Ayhax18YWR2WPCPqixAOQh9An8LVXJFaXzkaaBtM
aFz6GRXn96gwIc8CDwKlNiYhojBQ8QEQ8wUx5jqrFcRIjwC7WjTCxTmk7I3CBU4o
Twr0B6DXAprX0xGajATJcky9vRc=
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:reply-to:date:from:to:subject:message-id
:mime-version:content-type; s=default; bh=4yclMJcTSuiLCQccSFE3YC
y0YsY=; b=Uy9Y3E+NumMfKDnqze8bDjwxpgoURW5qD9saOzNh0ef1D45yWcDqDB
Dp2lHVxdDdH3UwC0TNYE7OQeOFMagb6e9qgJYAb9fHcTWgndpxkiQFAQHv4C9uz6
I8I9DprCHwF5umqP3i1BQso/51lTV/YVus6diavGvmgI7s2TbPgyw=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-HELO: localhost.localdomain
Reply-To: cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
Date: Fri, 16 May 2014 13:45:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: [ANNOUNCEMENT] New package: getent-2.18.90-2
Message-Id: <announce.20140516114507.GF430@calimero.vinschen.de>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)

Hi folks,


I just uploaded getent-2.18.90-2.

getent is a Glibc tool which allows to fetch host, passwd, group,
protocol, and service information via a simple tool.

The -2 version introduces the ability to ask for passwd and group
entries via their Windows SID, for instance:

  $ getent passwd S-1-5-18
  SYSTEM:*:18:544:,S-1-5-18::

or, with a recent developer snapshot from http://cygwin.com/snapshots/
and the upcoming Cygwin 1.7.30:

  $ getent passwd S-1-5-18
  +SYSTEM:*:18:18:U-NT AUTHORITY\SYSTEM,S-1-5-18:/home/SYSTEM:/bin/bash

=====================================================================
        IMPORTANT (not only) FOR CYGWIN PACKAGE MAINTAINERS
=====================================================================

The most important aspect for Cygwin for the near future is this:

With the new passwd/group code just in testing (see
http://cygwin.com/ml/cygwin/2014-02/msg00306.html for lots and lots
of information), tools and scripts must not rely anymore on being able
to grep user and group information from /etc/passwd and /etc/group!

The new way to read passwd and group information from, for instance,
service installation helper scripts, is to use the getent tool for
this purpose.

I'd like to urge all maintainers which provide such scripts to look
into their packages and fix them to use the getent tool, rather than
grep'ing /etc/passwd and /etc/group directly.
=====================================================================


Have fun,
Corinna

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

- Raw text -


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