delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/06/05:40:45

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=yoTUXgiC+8twEAUkHIhlkGgeBIsauKHSSDRoJkIAPn6
aCJ5jl7xp/zMA9i6dNerw1sO4eFv725ZD5kOklHLTtfi0G7wL0Ac9qjcjsr5MIrq
8Zu04epBnDWWjtWqKnP93GHoe7T64awEDCqyzWxNU5skG79kDggcYv+litO/h8E8
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=vqmzfDdafTD7SIYuxCITXLGlJsI=; b=Nyc/af7ropFsaOiWj
GH8C2N2OXuSBWzXECNtgjJDMKCIpCR/rpAQOUi6zoAaOoWO0/0OYr93iA0rBZjfq
Z3kttFt10hP/mIr2mA5iYgpEgB5vQllFIBUXWPnMh37LZE6uZ22xEXbeqB2Cfcdl
nzVhCAofCWAXYeAFaGYwK259zk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.1 required=5.0 tests=AWL,BAYES_05,GIT_PATCH_2 autolearn=ham version=3.3.1 spammy=Repin, Andrey, andrey, repin
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <5D206C63.4000908@tlinx.org>
Date: Sat, 06 Jul 2019 02:39:47 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: rename a user using setfacl -- possible? how?
References: <5D1FA19D DOT 2020707 AT tlinx DOT org> <113642000 DOT 20190706120641 AT yandex DOT ru>
In-Reply-To: <113642000.20190706120641@yandex.ru>
X-IsSubscribed: yes

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...  (:^|)

> 
> getent passwd
> getent group
---
	those don't display GUID/UUIDs, but *nix user+group ids.

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,...?  

Thanks and sorry my explanation was confusing -- 

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019