www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/01/25/07:35:33

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50PCZXdW840389
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 50PCZXdW840389
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=msWHiFQC
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D051385840D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1737808531;
bh=ZmSgcnPBAAnUrBvgwM6bzY/ZGDRqMJkYBmmmxT72j/U=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=msWHiFQCaEM2jr7dhlSyFREoIHIdFs5HBa/AzUdtbhyJm9QT//7x0oP3YLCqbAPOt
LVuZMkjCgQJrOVgyHOUy7tHl9ivCzNavuvqrIg2N73yJlFEmWE5AEqPp5wmy8sM5+S
dD3mNR6DHCRodRhGKsHmarDZ3RpjUTH3kK9NTuDE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7AAB3858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E7AAB3858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737808505; cv=none;
b=mYGVf3MdUens+3bsHSub1tzhH2NfjucY9WoEGR3B+8R0v/WN4TZh/GiL02bblIK82AXuI64AAJfbD9dHA4eprXjvEr+TsHEk0rKFdbeQFkoGlMUNXY5GFfV2LC+Q/2MT3Hi/uLrxXaS1VBCObzRgYw2Hhd4AZ1/qPnM/vRru1bo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1737808505; c=relaxed/simple;
bh=OBEXCt5EvuwmjdrXQLtp9Xb4BClWM4fj3jj+U4CZVoE=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=SZkcbYEXuNN6cv8XIlBWx86p4VXMxAUa2eKPo+D+EwKtfzzAXEpJGqjsvmX8xz94MS5E9FUwAo1DMM7beuCIzxEWOunlFcdhKdruGjfr0AteAiQsZuMmR7bnjO4rebLZXuNeXgyHZEQZDU35RwgxT10W7BLNLEJooSMckpmdnlI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7AAB3858D1E
X-Yandex-Fwd: 1
Date: Sat, 25 Jan 2025 15:22:59 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1377840993.20250125152259@yandex.ru>
To: =?utf-8?Q?Jos=C3=A9_Isa=C3=ADas_Cabrera?= <jicman AT outlook DOT com>,
cygwin AT cygwin DOT com
Subject: Re: Inheriting all ownership, rights and files from an user
In-Reply-To: <AM9P195MB1030A97FD0C126F124850950DEE32@AM9P195MB1030.EURP195.PROD.OUTLOOK.COM>
References: <CPUPR80MB65995C0EA057B6B2D7F1EB81C2E02 AT CPUPR80MB6599 DOT lamprd80 DOT prod DOT outlook DOT com>
<CANV9t=QodxG=CqKrWcX-sJhmoiN6+gb9-G652mXnjjJJY3TvJA AT mail DOT gmail DOT com>
<AM9P195MB1030A97FD0C126F124850950DEE32 AT AM9P195MB1030 DOT EURP195 DOT PROD DOT OUTLOOK DOT COM>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 50PCZXdW840389

Greetings, José Isaías Cabrera!

>> My windows account just changed from e608313 to u618346 and I would like to
>> > use the old setup that I had on the old account under the new account in
>> > cygwin. How is this possible? Thanks.
>> >
>>
>> This may be possible by using the native Windows icacls tool. Running
>> 'icacls /?' shows the following:
>>
>> ICACLS name /save aclfile [/T] [/C] [/L] [/Q]
>>
>> Stores the DACLs for the files and folders that match the name into aclfile
>> for later use with /restore. Note that SACLs, owner, or integrity labels
>> are not saved.
>>
>> ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile [/C]
>> [/L] [/Q]
>>
>> Applies the stored DACLs to files in directory.
>>
>> I don't know if icacls reorders ACEs in ACLs (messing up cygwin's
>> permissions). You would need to test.

> I looked into this, but I ran,

> takeown /R /F c:\cygwin64\*

Eh. That was absolutely unnecessary. Given the path, you most likely had it
installed with administrator rights. Thus no need to adjust permissions on
whole tree.
Only your /home/$USER directory would need to be chown'ed, and that can be
done using cygwin's own tools from elevated shell.

> which sounded like what I wanted, but it damaged the installation. gcc
> didn't work after that, but it was running before. Anyway, I took a picture
> of the packages I had installed, and started from scratch. Thanks for the
> support. I should have had, perhaps, done the icacls. But, one learns every day. :-)



-- 
With best regards,
Andrey Repin
Saturday, January 25, 2025 15:20:57

Sorry for my terrible english...

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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