delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/22/10:10:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_MK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AuIAANJKiE2cKEcW/2dsb2JhbACYBY02d6kYmhqDDoJaBJBX
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "'Tod'" <listacctc AT gmail DOT com>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Tue, 22 Mar 2011 10:09:34 -0400
Subject: RE: Migrating to windows 7
Message-ID: <0105D5C1E0353146B1B222348B0411A209E396A1F6@NIHMLBX02.nih.gov>
References: <4D889D81 DOT 2010607 AT gmail DOT com>
In-Reply-To: <4D889D81.2010607@gmail.com>
MIME-Version: 1.0
X-IsSubscribed: yes
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

Tod sent the following at Tuesday, March 22, 2011 9:01 AM
>I've migrated to Win7 and basically just copied over my existing cygwin
>install over to the new drive. Things are working but my user account
>has changed so I'm getting an error saying my homedir is owned by
>someone else. I can still do work but I'd like to get this corrected.
>Can someone point me in the right direction?

I don't know but here are some guesses based on advice given by others
in the past.  (This is from memory - I have not searched the archives.)

My main guess is that when you copied C:\cygwin, the old file/directory
ownerships were copied.  It would be useful to know if
$ ls -ld ~
and
$ ls -l ~
lists your old user account or some intermediate (copying) user account
as owner(s).

If so, might something like the following work?
$ chown --recursive YOUR_NEW_USER_ACCOUNT ~
or
$ chown --recursive YOUR_NEW_USER_ACCOUNT /cygdrive/c/cygwin
Note:  I've no chown experience; use at your own risk.

Running mkpasswd and mkgroup again might help.
http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd
http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup
etc.

Although this would affect the ownership problem, you might check
environmental variables inherited from Windows, especially CYGWIN,
are as they were on your old machine.
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
http://cygwin.com/cygwin-ug-net/setup-env.html

Good luck,
- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
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

- Raw text -


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