delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/14/16:10:41

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: "Michael Caplan" <michael AT eggplant DOT ws>
To: "Harig, Mark A." <maharig AT idirect DOT net>, <cygwin AT cygwin DOT com>
Subject: RE: NEWBIE: Problem with $Home being set to /usr/bin/%USERPROFILE%
Date: Thu, 14 Nov 2002 16:08:25 -0500
Message-ID: <ELEGLBLIMMILFAOLDIPEGEOIEDAA.michael@eggplant.ws>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E90B9D4@ex02.idirect.net>
Importance: Normal

Mark,

Thanks for the reply.  To answer your questions:

1. What does the command 'id' report?  Or, 'id -un'?

$ id
uid=500(Administrator) gid=513(None)
groups=513(None),544(Administrators),545(Users)

$ id -un
Administrator

2. Have you recently changed the contents of /etc/passwd?

No

   What are the permissions and ownership of this file?

-rwx------    1 Administ None          658 Sep 16 13:37 /etc/passwd*

   What are the permissions and ownership of '/etc'?

drwx------   16 Administ None         8192 Nov 14 12:35 etc/

3. What bash initialization files are you using,

  /etc/profile,

   Have you checked their permissions and ownership?

They are fine.

As far as I can tell, one issue lies within /etc/profile.  In the following
passage, $HOME is already set to /usr/bin/%USERPROFILE% and therefore does
not get set to /home/$USER :

# Set up USER's home directory
if [ -z "$HOME" ]; then
	HOME="/home/$USER"
fi


Removing the if -z check resolves the issue.  Where do you suppose bash
picked up the variable $HOME=/usr/bin/%USERPROFILE%  ?  My windows
environmental variables suggest nothing of the sort.


Thanks,

Michael

PS - Sorry about sending the output of env within my last message.



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