From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83002 invoked by alias); 6 Jul 2019 09:20:07 -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 82995 invoked by uid 89); 6 Jul 2019 09:20:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=H*UA:Bat!, english, H*M:yandex, 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 09:20:04 +0000 Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward103p.mail.yandex.net (Yandex) with ESMTP id D1C9318C04EC; Sat, 6 Jul 2019 12:20:01 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1TNDPlw9vK-K1RuZJCF; Sat, 06 Jul 2019 12:20:01 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1562404801; bh=+r2Rj85BQh7IHRJw4a6npmli5MYpU2ZrLaPzUL7KSlo=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=KFb8+R3ZNa90I4sQ2jPf3gItzxfsQ2b8Tm7oPQnebjRDHzn5Rt45ficRg/QVs8QOY ByUuYWhOkDpRqsKJ5qL7y9Culv61eZuXCpW5LyG4e1wW4/+OjxC3AEZho+BeBooSJa D/164NhGZ1WDm7C1SQhxSaSWmvVI8rWZxIDc3UY4= Authentication-Results: mxback5o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vKTBIvTGDN-K0XKYpFa; Sat, 06 Jul 2019 12:20:00 +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 09:06:41 -0000 Date: Sat, 06 Jul 2019 09:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <113642000.20190706120641@yandex.ru> To: L A Walsh , cygwin@cygwin.com Subject: Re: rename a user using setfacl -- possible? how? In-Reply-To: <5D1FA19D.2020707@tlinx.org> References: <5D1FA19D.2020707@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/msg00043.txt.bz2 Greetings, L A Walsh! > Have an acl on a file 'testfile' that appears to include a userid > with a GUID corresponding to some older value for the local system. > I'm gave the old guid a name in /etc/group different from its name, > say calling it 'oldname' (where current name, is say, 'curname'). > 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. Cygwin do not invent its own users/groups/ids/guids. It maps Windows permissions to some POSIX equivalent, but internally it still using native permissions. > I tried setfacl -x group:oldname:rwx -m group:curname:rwx but got: > setfacl: illegal acl entries Seems like it did not recognize the group name. At least that's how it react here. > will setfacl not work for this task? It should, but I strongly suggest to avoid using it outside Cygwin directory tree to maintain maximum interoperability with Windows programs. > How do you add a new user to the access list -- obviously -x removes > a user, but not sure if 'add' is covered by -m or whether or not you 'add' > by specifying the new entry. I just found out that if you configure cygdrive with noacl, getfacl tell you to find better ways to express yourself. And setfacl will silently fail (which is questionable behavior, TBH). > BTW -- is there an easy way to see the numeric values it is using > for a given name? > Like: > group:Local account and member of Administrators group:rwx getent passwd getent group > I remember seeing that, but it isn't in my /etc/group file. It should not. > Tried getfacl with -n but that doesn't seem to be an option > to display a numeric GUID. -- With best regards, Andrey Repin Saturday, July 6, 2019 11:09:23 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