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:subject:to:references:reply-to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ycc/szVpGxFBdGpt 3ajTFZ/+QtGE+O7481n1GOHKtJt59K8F6LaEYmsPxdR8pczZbVnUrxtDVy5R3Yqt KqTO/7Z9ESyrg+Fv1qnlQMUogwF8pSENXwfU5c15Aqp8N6tGJwv1F1vQrkNIOd9w CPHQP73vv11OxmTT1Fr4aqzRvG8= 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:subject:to:references:reply-to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=GtzUr2byu6mLQlUHw1X959 aZCo8=; b=N9CN93KHmKWW85H/x8wcGqzRojYn412UpQR3CWlmd+I62OhV+p3udu UPrD3fUWMuOVLtfVDi9oR6uZuCFE9ugRY2U+697bvDHk6eEp8fcnwYNB4SY5Jpcg KuNWHGRf5nGhrUDnZmlAfq8wSNcce9NMpLwe2DX0VJK4zKNNaCkfY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=USER, Wolff, wolff, $USER X-HELO: mail-it0-f53.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Cy82qSccht8cHGDnsjPGwFxDAGyrQdVxmYbz1g7jg6M=; b=ZzvWzOaP5vT+X4Ao6XQ+OggNXqHo5t4DKJjZTkepZIMGL5rJSePnLOmnyXHP099FB0 HW+AaLcOL97QEMQ8TfC4IOwKWNlihLFZiheLZvh3batrF58YwP48Ea5txs8XKdYfUtAQ WTO+jlDmcNqeQEb8pEiUrjFMsYg0OJdUWTNThHBAAbk4V0DLh8QBLlUKpYyhkL9Vf1wz VxKKdVvnYxXgfUMBxmeD1+XOU6Z9wh+pQdfR3ZY22/dsX9bj8+YRoh7BERLgWGaEJCw3 SQro3qu4KYMy3Rb2fAto7JzYClUw18H26xOaX3OJCgdnnAoDPKkw3HogxVdjT77zHIW+ C4eA== X-Gm-Message-State: AJaThX4B50+5na+dFckk1IzxGuZf9u6pM+xe3QN9Rq20fmMKYbjwdjDn nv/eq6zrgs3P1RY5ZlIjqev24g== X-Google-Smtp-Source: AGs4zMbYInjOn4WtXm2eEefEnYT+VJrl5vZmHe3S8+5vO0RRcvvLG+JULaniyVgnd6oVBrwQ3N4r4w== X-Received: by 10.107.20.21 with SMTP id 21mr38818962iou.116.1512655945317; Thu, 07 Dec 2017 06:12:25 -0800 (PST) Subject: Re: How to handle changed user ID To: cygwin AT cygwin DOT com References: <03c139ef-2ef9-e4bb-e8d8-11e8a1e00e9c AT towo DOT net> Reply-To: cygwin AT cygwin DOT com From: cyg Simple Message-ID: <7b97953c-8df0-6a7b-6740-6bbed1fd744c@gmail.com> Date: Thu, 7 Dec 2017 09:12:26 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <03c139ef-2ef9-e4bb-e8d8-11e8a1e00e9c@towo.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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? What happens if you simply remove /etc/passwd and /etc/group files? A change long ago caused these files to not be needed. You may need to take ownership of the directories and their files at the Windows system level. -- cyg Simple -- 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