From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100299 invoked by alias); 7 Dec 2017 14:12:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 100289 invoked by uid 89); 7 Dec 2017 14:12:28 -0000 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 Received: from mail-it0-f53.google.com (HELO mail-it0-f53.google.com) (209.85.214.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Dec 2017 14:12:27 +0000 Received: by mail-it0-f53.google.com with SMTP id u62so15034175ita.2 for ; Thu, 07 Dec 2017 06:12:27 -0800 (PST) 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) Received: from [192.168.0.9] (d4-50-42-50.try.wideopenwest.com. [50.4.50.42]) by smtp.gmail.com with ESMTPSA id b195sm2599911ioa.43.2017.12.07.06.12.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 06:12:24 -0800 (PST) Subject: Re: How to handle changed user ID To: cygwin@cygwin.com References: <03c139ef-2ef9-e4bb-e8d8-11e8a1e00e9c@towo.net> Reply-To: cygwin@cygwin.com From: cyg Simple Message-ID: <7b97953c-8df0-6a7b-6740-6bbed1fd744c@gmail.com> Date: Thu, 07 Dec 2017 15:03:00 -0000 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 X-SW-Source: 2017-12/txt/msg00054.txt.bz2 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