delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/09/17:19:37

X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790701091419m14d3bd8m15d136e75b62da39@mail.gmail.com>
Date: Tue, 9 Jan 2007 22:19:12 +0000
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: username should be lower-case for $USER
In-Reply-To: <eo13qf$p4j$1@sea.gmane.org>
MIME-Version: 1.0
References: <8241120 DOT post AT talk DOT nabble DOT com> <eo13qf$p4j$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 1/9/07, Shankar Unni  wrote:
> TDavid Smiley wrote:
> > I am new to Cygwin.  I noticed that the $USER environment variable has my
> > username in upper-case.  So it is "DSMILEY".
>
> As David said, that's because you created your username in ALL UPPERCASE
> when setting up the user on Windows.
>
> The only way to "fix" this for you would be to rename your Windows user
> to have a lower-case name. (If windows allows that operation..)
>
>

My user ID is numbers only so I cannot test this.

The suggestion of just renaming your user account is actually the
easiest one if you have administrative rights in your domain.

But I do have a few other suggestions in case you don't.

Since Windows is not a case-sensitive operating system and since the
$USER environment variable is dynamically populated when you logon,
try logging on with your user name as 'dsmiley' instead of 'DSMILEY'
and see if that changes the environment variable.

If it doesn't, you may be able to fix it by deleting your user profile
and then logging on with your user name in lower case.

As I said, Windows is not case-sensitive as far as user names go.  You
can log on as 'DSMILEY', 'dsmiley', or 'DsMiLEy' and it will work.
But I don't know if it will change your $USER environment variable
because I don't know exactly how Windows populates it.

-Jason

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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