delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=VpnR5PeplOoxSSVNSTOgBCPONX/vvSraL7436vRJiBOyaJ4dLISLQ | |
FOcyYxjLItb78lz0Acn1weq+z6llXYj1JuTeMgKQhbVvwaJWdS+66UQXDXf0aOqZ | |
9urScs5DeLm7tWgWADu9ULGHhDtIX9TEvNsVlgNqu8EuYnn02IXUM4= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=IGHcL4+5FOs3POLbjDmx85uib0k=; b=L+OVUmzSCt/ajCEJZISjjgtVZcf7 | |
5unV+vTVTyc2bCSMwZKbauAwZe76uE4la52SJvL6foPpHpJs1jsSb3/VG9XsI/Ma | |
Bg026Zb9B763pIgC3pgEQeUSv29N99Fz6Mf8MGej7/ZfdA82otXo6Oku4+SlbB2J | |
LrI9Qhbl0KjE68U= | |
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-Spam-SWARE-Status: | No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Fri, 14 Feb 2014 11:10:01 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Testers needed: New passwd/group handling in Cygwin |
Message-ID: | <20140214101001.GW2246@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <52FD1EDB DOT 8060708 AT googlemail DOT com> <52FD3D9C DOT 6020205 AT tiscali DOT co DOT uk> <52FDE9C0 DOT 7070002 AT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <52FDE9C0.7070002@gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--HzaOE8X7KzPzAQEl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 14 10:02, Dave Kilroy wrote: > On 13/02/2014 21:48, David Stacey wrote: > >On 13/02/2014 19:36, m0viefreak wrote: > >>Grepping through /bin I found at least one other package > >>that makes use of /etc/passwd as a file directly (cvsbug), but > >>since I don't have everything installed I can only assume there > >>are more cygwin-packages and other programs someone might build > >>from source. > > > >My complete install is proving quite useful this week: > > > > chere > > xhere > > > >All of these reference /etc/passwd; some of the above also use > >/etc/group. > chere (with the -s passwd) reads etc/passwd and starts the default > shell of the current user from the explorer context menu. For now, I > will expect users wanting this functionality to keep > using/etc/passwd. If we grow a mechanism where the login shell can > be queried easily, I'll update chere to use that. Indeed. After the discussion yesterday I already realized that we will need some commandline tool to request passwd and group entries. There is a function called getpw on Linux which allows to fetch a passwd entry in the form it has in /etc/passwd: http://linux.die.net/man/3/getpw But I can't find any tool which actually utilizes the function. There's also no group equivalent. Does anybody know an existing CLI tool with the whole purpose of requesting user or group information? In the next few weeks I will change mkpasswd/mkgroup to create passwd and group entries which are equivalent to the entires created by Cygwin itself. So, if we don't find any tool, maybe we can utilize the `mkpasswd -u' or `mkgroup -g' options at least. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --HzaOE8X7KzPzAQEl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS/et5AAoJEPU2Bp2uRE+gE9AQAJFSQPYzaAEOTNjs3HBDJzj9 Kc5zJwVU/HvCatZ6OJ0deif0amaYrPwbfC4a3ZhhBVRe1T3fep2NspXVJmdsC2Nv GISHKDFHkR715Ir3ffCd6Wl2UhZnKpz68z0jBuLTgmZQEsrPYw5kKk5/ogYUsHiW EVJBpMhoKSitBfhllL9dxnThCyZZ8cnDeC3u2pB0sQEIlnZoQHvR2YJvCSyHe27O llIOtx6CqyIrGoZ0tgMPocuqZny0DwZlwBxZgEE27MNFKCZ9nML8+JrrR1YELKLd 2ZJ8yVWmh+ykMx0n+2jkH1b5H9hdHmVpZ2Hq/DZfPyCBU+IYTJpOVbADMTYyBzBm DuMQUW/uvA2+Vscy/JyfYSxUHaou/s2qTt8CrjmoiaUgQBOXyPW4+DiFqQL0kKiU uJOwzOj1K9kOzrRKsW1RbQivPQS4GrJ1BsWdAS21dXt2FokfyAx6RDBoj2f2Pxk4 oLeudVTVvUFFTnGStaXJvBNvt8z8RouUA9CLamyKPOgrm7blIikSSFNCBs7hqrA8 wxlT6iuYQFUPZ5k7b132NWlaGjEKDXIr0ClQrNEwaTwjrEDHyMR1V169SRIWgfE7 zoByYr/eLCBCmj2ezUO3x91zalb9BBy3FSApbDIkFxC5/a/MOQteqAd+KcRYcLo7 QS4H11J3ld+YHw8AdIBn =WbDD -----END PGP SIGNATURE----- --HzaOE8X7KzPzAQEl--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |