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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=n1MQ/9qEO0EscwnG o7tiMF97Jyxk6U1ruzPjv3F9PO9jNv+G0J5aAUT4Haa80PaT2+hh3JjFqDDNgF2W 4nKNOh/hvBmboAysvwUc2D8FMAt0lS8Xe27JQzqfouOrMA21rwlLinlczLsINtoi b70OPCpiLl0DYVHX50rdzCCidds= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=CdNn5GwciB6PLTyKkUNRSG B4JGM=; b=rZSdpxHUBYBz7UEHSWT9KuAi4J3NJHPTMWlpnVd1rTrrvq2CpVJEKx ciH7SI2KwiwZs8s94VLQYb3FmVuxVdU8IfnCoKik29+fev3fUszFAyRrPwiMToB1 Y5fktsqhIVRPlYojH8WybuV3r4ToeIG3wQZl2dYYZ7B9Ao9B6tstE= 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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=Sam, Edge, HX-Languages-Length:1184, H*UA:6.1 X-HELO: mout.gmx.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1562409710; bh=XWzWXLPNnLc5YVAs/93nnJcSRvtBK6mga1owAb104rQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=GYGcNZ/NTicOAPl13XOSjVZNPaYaV4KQD1L5a+8BwlbF0c7Qon6EgerrNhAmsvfFF 7vvTsHoqJ3dy5XYdAJn3vSDV1fMCiQwvDtjyglPH3VEUReBY7V5m0hiGBH/mFtto+J Z4axgNWTsD7irpL/5mDbOU89e6VOywQeCo2b0KPg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Subject: Re: rename a user using setfacl -- possible? how? To: cygwin AT cygwin DOT com References: <5D1FA19D DOT 2020707 AT tlinx DOT org> <113642000 DOT 20190706120641 AT yandex DOT ru> <5D206C63 DOT 4000908 AT tlinx DOT org> From: Sam Edge Openpgp: preference=signencrypt Message-ID: Date: Sat, 6 Jul 2019 11:41:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <5D206C63.4000908@tlinx.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x66AgS0T005978 On 06/07/2019 10:39, L A Walsh wrote: > 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. This sounds like a Windows maintenance issue. While you can use Cygwin tools to manipulate the NTFS ACLs I'd be inclined to look at native tools, probably using a Powershell script if you need to automate it. If you use setfacl on paths outside your 'Cygwin domain' it's going to mess up the more normal Windows/NTFS ACL usage especially the inheritance and ordering. -- Sam Edge -- 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