Re: How to handle changed user ID
- Date: Thu, 7 Dec 2017 09:12:26 -0500
- From: cyg Simple <cygsimple@xxxxxxxxx>
- Subject: Re: How to handle changed user ID
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