This is the mail archive of the
mailing list for the Cygwin project.
Re: How to handle changed user ID
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 7 Dec 2017 09:12:26 -0500
- Subject: Re: How to handle changed user ID
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple