delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/16/16:11:46

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Bug Report: Purging Old and Invalid User Names With Spaces
Date: Fri, 16 Mar 2007 16:11:07 -0500
Message-ID: <297343D29C14AA4D822142893ABEAEF302DDE6EE@srv1163ex1.flightsafety.com>
In-Reply-To: <45FB0398.1090808@gmail.com>
From: "Thrall, Bryan" <bryan DOT thrall AT flightsafety DOT com>
To: <cygwin AT cygwin DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l2GLBZ6M032403

Robert Peaslee wrote on Friday, March 16, 2007 3:53 PM:
> Windows XP stores the first username you choose and will associate
> your current username to it regardless of what you change it to.
> Cygwin stores nothing, it is asking Windows what your username is and
> getting a response of what Windows tells it. I can't verify this
> right now, but I do believe that if you navigate to C:\Documents and
> Settings\ you should find that your old usernames still exist in
> place of your new usernames. That should be verification that it is
> Windows that is acting strangely, and is not a Cygwin problem.
> 
> You can get around this by either reinstalling XP and setting up new
> usernames that are correct from the start, creating new users
> completely (not changing the names of existing users) and migrate
> your personal information to the new user profiles, or finally, just
> get used to typing quotes around your usernames or escaping the
> spaces when using Cygwin.

Yes, WinXP stores your username twice ("Full name" and "User Name") and
Cygwin uses the "hidden" one ("User Name"), but I'm pretty sure you
don't have to reinstall XP to change it!

IIRC, you can change the username from Control Panel->User
Accounts->Advanced tab->Advanced button->Users->right click on the user
and select "Rename". You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).

Also, as someone already said, it is trivial to replace the
names-with-spaces in the /etc/passwd file with names that have no
spaces, as long as you don't mess with the SID.

-- 
Bryan Thrall
FlightSafety International
Bryan DOT Thrall AT flightsafety DOT com

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