From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61747 invoked by alias); 6 Jul 2019 10:41:55 -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 61734 invoked by uid 89); 6 Jul 2019 10:41:54 -0000 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 Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 06 Jul 2019 10:41:53 +0000 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 Received: from [192.168.15.105] ([46.208.20.31]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MfRnb-1i8deA3tZT-00P4pE for ; Sat, 06 Jul 2019 12:41:50 +0200 Subject: Re: rename a user using setfacl -- possible? how? To: cygwin@cygwin.com References: <5D1FA19D.2020707@tlinx.org> <113642000.20190706120641@yandex.ru> <5D206C63.4000908@tlinx.org> From: Sam Edge Openpgp: preference=signencrypt Message-ID: Date: Sat, 06 Jul 2019 10:41:00 -0000 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: quoted-printable X-SW-Source: 2019-07/txt/msg00045.txt.bz2 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