delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=t0USBTyUFr9N6A5vTeWDNMcEIloX3KxkKG1NxEHZme8Tqx6tQGHct | |
comU1UDpqwpp4m5VTTeSsM3GhFDkeLZ3m/pBm6u1qy8naAu4VSFR/BTiVTMlvBlT | |
BMDoM8kugMQQUXmVv3HoKyv9YNnFJ6msswY/c0eQd770ggJcSCudFw= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=P4g9zxmQBJ+pTV17N/znfRH4xFM=; b=taJyIYb//UKM9jJEo9mAcNP4p5RX | |
i6ewdNpAhooljXo0R5wBI93Hk+b/t911/4Y1ZBHk/k1Lq1iz8+a04h/eWoz4+W1b | |
smoe0eiezmOV93k1T1bzP16O54z5Emp9SaTl0Ii2Q6YrXPBf6sJRPXLFyemkxEJx | |
2X1/dcBwb7fXfHQ= | |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-95.6 required=5.0 tests=AWL,BAYES_05,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=wild, Repairing, elevated, H*i:sk:f5bh9cd |
X-HELO: | calimero.vinschen.de |
Date: | Tue, 28 Jun 2016 12:34:06 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Repairing permissions after windows reinstall |
Message-ID: | <20160628103406.GB22797@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <f5bh9cdociz DOT fsf AT troutbeck DOT inf DOT ed DOT ac DOT uk> |
MIME-Version: | 1.0 |
In-Reply-To: | <f5bh9cdociz.fsf@troutbeck.inf.ed.ac.uk> |
User-Agent: | Mutt/1.6.1 (2016-04-27) |
--mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 28 11:04, Henry S. Thompson wrote: > Good news: My cygwin file tree survived a Windows (10) reinstall > Not-so-good news: I have a new SID, so not only do I not own those files > any more (that's easily fixed), but I don't have the permissions I > should, because they are now held by some miscellaneous old SID. >=20 > In fact I see _two_ raw SIDs when I look at the security tab for any > directory in the old cygwin tree: one has Full control, and the other > just Read & execute. >=20 > I presume the first is the old me, what's the second? >=20 > Can this be easily fixed, i.e. put me back where I used to be? Off the top of my head, what you could do is this: - Generate an /etc/passwd entry for your old user SID by hand. Make sure to use an arbitrary weird UID like 98765. - Exit and start an elevated shell. - find . -uid 98765 | xargs chown <newuser name or UID> Analog for the group if necessary. Alternativaly there are tools in the wild to change the SID of a file. But those *might* break Cygwin POSIX ACLs. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXclKeAAoJEPU2Bp2uRE+gaPQP/2emd29iXawxtWQlvZNToV1c r3WvNsIp5kVsox0sXUqY6brAi51JbEVEI0QwsXyRXqnFg/D3dEZVHb5xxFi+NH0/ QzSOO4dMywECG6MoD3iI++vD8IY0pbkKrcMKuCMaNS+EzL1eKCMCzmMEg4RTy0GR G2SxAspgafwThsldeeAisiV2WoGRWAilb311Z6S8dSi1NinoVyb5Yj3tnaVPztxi oMF8FYdcvHkW7oVx9p3gCOIjOBIM2A0xbYtz/pbrmrKegwPtzyOvTWuDNueK5Dis wrQmMYB4V4/zqrHvg+UBPED76TVsEttTCqb/6CYfQZcA0+aC/4JNqMjVHgpqCJGu VqGbz8T6nyw190vrKOBttblrx2U1b3SPB/EWHpwSpw3IBbH7/jvQPdSbc1LoFgiH kp7EN2iIdHtexMmtfddQ6HwBsBWKgSrd6CZRdjoghZYwQl2ltIFWUIwUbsYp8NqQ +VlMwLRc+hCskv2JE7Vci4tuDQ7TnMRqbqmmNOz1qcTyDMoW+MK6y/LnIZeMjbcj AgfMrRTjPQVBY8NPWOkE6Civn79gsRAsOC3e1KCYIECE4Vsf++ZLSxnsUEsqoUwN Rp6beaEzt1ml7CtcpZjrlU4QWLoQmpUSx4Kwn+OP9MGEJrbZvTYpSGrYJtfhjtpg 5XCy2Il65j3rWfHKHXUU =HDB6 -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |