From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97567 invoked by alias); 6 Jul 2019 16:05:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97560 invoked by uid 89); 6 Jul 2019 16:05:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=H*UA:Bat!, english, Saturday, saturday X-HELO: forward103p.mail.yandex.net Received: from forward103p.mail.yandex.net (HELO forward103p.mail.yandex.net) (77.88.28.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 06 Jul 2019 16:05:07 +0000 Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward103p.mail.yandex.net (Yandex) with ESMTP id CDB1C18C04FC; Sat, 6 Jul 2019 19:05:02 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HGqCDgudg5-520C4QhL; Sat, 06 Jul 2019 19:05:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1562429102; bh=irasXrJtpD6eI8gotIzFpqT+7KArtgkUc8HdQtkc+eA=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=NRy8cxSKnmEjg4Fy6EXgost4g/yZ3Voq3LtLiavONjtlWqtE9uy3bpZ1kQ9X4sLe/ ydn+y3KDL4zxCysDBTlPtRynsvPQugYKzJy19XplHDjbpMn3V3D6KWzf0sQ/I3omNj xJ+tSSvjAAhnCqWBqK4uxydZn2tLapMisVlJZFWQ= Authentication-Results: mxback15g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id zOxcpFHIEn-51Y0u0sI; Sat, 06 Jul 2019 19:05:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 06 Jul 2019 16:01:56 -0000 Date: Sat, 06 Jul 2019 16:05:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <69388071.20190706190156@yandex.ru> To: L A Walsh , cygwin@cygwin.com Subject: Re: rename a user using setfacl -- possible? how? In-Reply-To: <5D206C63.4000908@tlinx.org> References: <5D1FA19D.2020707@tlinx.org> <113642000.20190706120641@yandex.ru> <5D206C63.4000908@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00047.txt.bz2 Greetings, L A Walsh! > I don't think I explained things clearly. > On 2019/07/06 02:06, Andrey Repin wrote: >>> I guess I don't know how to modify an entry to either 1-rename it, or >>> 2 add the new entry. >> >> You don't. >> If you want to change name for display purposes, look into nsswitch.conf and >> associated documentation. > --- > My machine's GUID changed. This file has entry for userX > on the old machine-GUID. UserX also exists on the new machine GUID. > So I renamed the old entry to UserXold so I could find all the places > where the old GUID is referenced then change it to the machine's new guid. > I'm not having cygwin create new groups or whatever, but trying to replace > references to this Userid in the machine's old GUID and replace them with > reference to the Uid with the machine's new GUID. > if it was the main group, I'd just use find to locate instances of old > and do chgrp to change ownership to new. However, this is a group entry > in an acl list -- so I need to change the name of 1 entry in the acl list. >> >> It should, but I strongly suggest to avoid using it outside Cygwin directory >> tree to maintain maximum interoperability with Windows programs. > --- > No problem. my cygwin directory is at 'C:\', where it > has been since WinXP... (:^|) THAT is a problem. A big problem. >> >> getent passwd >> getent group > --- > those don't display GUID/UUIDs, but *nix user+group ids. Try it sometime. They do. > I wanted to see the windows guid associated with an identity. > Since the one I was looking for was a well-known-id I found it, but > in non-well-known cases,...? Set nsswitch.conf to: passwd: db group: db db_enum: all then check `getent passwd` -- With best regards, Andrey Repin Saturday, July 6, 2019 17:11:57 Sorry for my terrible english... -- 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