From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30154 invoked by alias); 5 Jul 2019 19:14:43 -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 30144 invoked by uid 89); 5 Jul 2019 19:14:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_20 autolearn=ham version=3.3.1 spammy=H*F:U*cygwin, linda, Linda, H*r:192.168.3 X-HELO: Ishtar.sc.tlinx.org Received: from ishtar.tlinx.org (HELO Ishtar.sc.tlinx.org) (173.164.175.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jul 2019 19:14:42 +0000 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id x65JEbrD058663 for ; Fri, 5 Jul 2019 12:14:40 -0700 Message-ID: <5D1FA19D.2020707@tlinx.org> Date: Fri, 05 Jul 2019 19:14:00 -0000 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: "cygwin@cygwin.com" Subject: rename a user using setfacl -- possible? how? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00035.txt.bz2 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. I tried setfacl -x group:oldname:rwx -m group:curname:rwx but got: setfacl: illegal acl entries will setfacl not work for this task? 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. 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 I remember seeing that, but it isn't in my /etc/group file. Tried getfacl with -n but that doesn't seem to be an option to display a numeric GUID. Thanks! -Linda -- 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