delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/09/18:41:29

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Re: username should be lower-case for $USER
Date: Wed, 10 Jan 2007 10:10:40 +1030
Message-ID: <D3DA8E9DB543364DB6DE9B5964BA8EEAC7C51E@auntm231.apac.corp.eds.com>
In-Reply-To: <eo13qf$p4j$1@sea.gmane.org>
From: "Irwin, Doug" <doug DOT irwin AT eds DOT com>
To: <cygwin AT cygwin DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l09NfIZQ022186

Hi all,

My first constructive post to this group outside of my inane question
asking... 

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

As covered later in this thread the user is logging into a domain.
Windows is indeed case insensitive 
WRT logins and can even be forced into case insensitive mode for
passwords programatically (as 
demonstrated by the l0phtcrack algorithm).  But I have never seen a
DOMAIN report the user id back in
lowercase, even when it was specifically entered in lower case (I may be
wrong about this - please let 
me know if you have contrary evidence).

There is another workaround, tho!  In my environment I log into the
domain with a login in the form 
"AA9999", but need my Cygwin environment to recognise me as "sybase".
So I simply edited the 
leading column of my record in /etc/passwd and changed the contents
"sybase".  Since the other tokens
linking me record to the domain account were unchanged Cygwin sees me as
"sybase", but the domain sees
me as myself.  This has been working for well over a year.  If anyone
sees any problems with it I'd
be glad to hear form them.

-doug
----------------------------------------
echo
'[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' |dc
 

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