delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/07/10:04:07

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=nqNsdZ+lHR74bHVs1PPX/MgiSAE6E5t/y8j0H8Iu4Eyi4GXSYC3qP
Hl6OQ85iFyJ7Z0UiYpLXj0UYcbfqL56v6SSwFAbrJVZYjgMt5pWMQ5PjQVj4BthQ
Ac09DBaD/H9CIKa3D3t4xaGJxSCX1/3/LU+MxAcv7O8NKHCNd3ldxg=
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=Cj+l0EXAUNJIgyiYdkuI4WvnbQ4=; b=udbIVxTbw2K/UHOtR2TZmUxLllqm
lb5yBgJos7z+51lsRmXk6c2Wm/KYICbvY6nppCZDItCMRTtkUQ6+pSaVC4XZtGG6
8QbNWfYHsm7SB8/26LN1AyeVUtuJCL+mOt61ezwnIdCm5dZYkOydvP1ahh7/vFX+
OmouFDyBBxPMHvM=
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=-100.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: drew.franken.de
Date: Thu, 7 Dec 2017 16:03:35 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to handle changed user ID
Message-ID: <20171207150335.GB10123@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <03c139ef-2ef9-e4bb-e8d8-11e8a1e00e9c AT towo DOT net> <7b97953c-8df0-6a7b-6740-6bbed1fd744c AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <7b97953c-8df0-6a7b-6740-6bbed1fd744c@gmail.com>
User-Agent: Mutt/1.9.1 (2017-09-22)

--E39vaYmALEf/7YXx
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec  7 09:12, cyg Simple wrote:
> On 12/7/2017 2:50 AM, Thomas Wolff wrote:
> > I had to delete a corrupted Windows account and recreate it.
> > For cygwin, the new account, although with the same name, has a
> > different user id.
> > Of course, this creates access problems for existing files (even if they
> > appear to have the same user in ls -l, because the *old user* is still
> > listed in /etc/passwd).
> > Is there a canonical solution to this problem, other than running chown
> > -R $USER ~ ?
> > Can the new user be forced to use the previous user ID?
>=20
> What happens if you simply remove /etc/passwd and /etc/group files?  A
> change long ago caused these files to not be needed.
>=20
> You may need to take ownership of the directories and their files at the
> Windows system level.

Definitely, and this is independent of Cygwin.  The files have been
created with the Windows SID of the old user and thus the ownership
is still set to the old user.  Either taking ownership in Windows,
or starting a shell as admin and using chown -R (or more intelligent
variations using find) should do it.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--E39vaYmALEf/7YXx
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJaKVhHAAoJEPU2Bp2uRE+gfz8P/i2ZWr9Br8ImRnli9emfW9sP
8uVF+beCPVRrTLKuvvfMtzSJ53BfnwNufzcgr4BnHK2t8cJZQns2kKzizZ/OfGND
sBrDI2BTkMnsNuKqpCJhFQAGePnpNf32kWLhLFERgE7ms/AZndR7CLnlXYbPbwum
YXv+CDve0yIBsxajzMzCfC5Urb1674yNOIuhdbFNf3zLu47D0uDfj0nnZUpnrUO4
pLUV+8eAZiDLId6VOnXcovroEeeEyM253y4n8o81pmUJFCey1drAZn24Hr0ZUkad
mNl2r8c/AHd3SsF5JEG71yvDDiba0algtC1vkbOwYsgwSVy1iPjrGtVHHwJZMliV
gYcqK/dvXj5Srl70FOcujfhHph0dqoKzsv2lpNLBaexbhKOj4gL7SdJYuqey54SH
aPwnEJBPU2+NUzh/eVMro5kyd+cnjIMAubja5fdSFT7RxvGzLb7XgxIm3EE07wWO
tMamgbo07RlMuYP9gNbN3p5EobhzYAfe2Dic9nJAhif1NK5uMuWkkc/T90mh6ZbW
u2I4nbGcRxj88DMhLBb+8HFFp84n1HpbwHYO5bzsvEq0K4KQsocR4N7PMhNBh93E
Xhs6uzuGQwTF/YBA006Cd8HIcXsHSHRzRJBq5CtKsjgn695q+q4iG0FUOjttCTRs
eV8Ppe0oBWBhuMw+pz6j
=W8GH
-----END PGP SIGNATURE-----

--E39vaYmALEf/7YXx--

- Raw text -


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