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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Tx4bLhAOnwsllDd/ e1+Wy3ZcvKjtFq97uV6EXhTD8wXP6XiV1iAfwDlD+ZR5NmNEmTQm6W6YP4LPU/Ph N8FcB1ScBO0DNTYy9r1jncy0+ID65O8VuiXtlbYcXQxAH9TBpH684BG566/EQ6Th kHCt639q4pMDFgEMSpVCfNCH2G0= 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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=cCpv+9wJ5DKP6jJWgvloGx K9Er8=; b=DumkuPVB9w12NdEh9fGPInRZ4MJdJyBMNe7vP2WoEa0cDukl+4KrfS Tky3OqsEijaNudW/i7hVyOfuxewkcWF0qbd6lZR/QP/vJ0RVyz9WCIbqA//2iRwt QnzYqRDEOv/ui3WX7b+vZjmF++xh2U21S5fTs//kBYkG/RPisouNY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-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 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 Date: Sat, 6 Jul 2019 19:01:56 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <69388071.20190706190156@yandex.ru> To: L A Walsh , cygwin AT cygwin DOT com Subject: Re: rename a user using setfacl -- possible? how? In-Reply-To: <5D206C63.4000908@tlinx.org> References: <5D1FA19D DOT 2020707 AT tlinx DOT org> <113642000 DOT 20190706120641 AT yandex DOT ru> <5D206C63 DOT 4000908 AT tlinx DOT org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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