www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/04/04:14:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
To: "Joseph Marcel" <jmarcel AT cisco DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: HOME set to / [Was: cygwin-1.3.16-1]
Date: Wed, 4 Dec 2002 09:14:28 -0000
Message-ID: <OIENKAGCMBEDKDHGANIKGELFCJAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-reply-to: <4.3.2.7.2.20021203083224.02308bc0@dogwood.cisco.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

> From: Joseph Marcel
> 
> I've run into this problem as well on Windows 2000 after my 
> upgrade yesterday.

Upgrade or clean install?

> I'm getting around it by unsetting HOME in /etc/profile (as the first 
> line), so /etc/profile will do what it has been doing in the past 
> (important for 1st time users on our team).
> 
> A side effect, I'm fairly certain, my Id changed as well.  My home was 
> always /home/Administrator (the user on the machine); even though 
> I log on 
> to a domain.  'id -un' formerly returned Administrator???  I created a 
> symbolic link (ln -s /home/Adminstrator /home/jmarcel).
> 
> So, potentially two issues:
>    1) HOME is set to /;
>    2) Id is now that of my domain (jmarcel:unknown), and I think it was 
> Administrator:none (which I'm less concerned with, as our machines are 
> single user laptops/clients);

The way this is set has changed and *should* work ootb with a clean
installation.

The easiest way (I believe) atm is to...

$ cp /etc/group /etc/group.old
$ cp /etc/passwd /etc/passwd.old
$ /etc/postinstall/passwd-grp.sh.done

this should recreate /etc/group and /etc/passwd (check before
closing!)  Then close and restart cygwin.  You should now
be your domain user *not* your local Admin.

Also note that /etc/profile has changed, the new version
is kept as /etc/profile.default and should not overwrite any
previous copy.

The functionality has changed slightly.  It doesn't run
~/.bashrc by default, as per specs it runs ~/.bash_profile
which should check and, if appropriate, run ~/.bashrc

Feel free to change how this works - it is your system
afterall :)

J.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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