Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Joseph Marcel" , Subject: RE: HOME set to / [Was: cygwin-1.3.16-1] Date: Wed, 4 Dec 2002 09:14:28 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/