delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/15/09:38:05

X-Spam-Check-By: sourceware.org
Date: Thu, 15 Mar 2007 10:37:40 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Keith Mitchell <kpmitchell AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Purging Old and Invalid User Names With Spaces
In-Reply-To: <45F8BEFC.9090504@gmail.com>
Message-ID: <Pine.GSO.4.63.0703151035440.18554@access1.cims.nyu.edu>
References: <45F8BEFC DOT 9090504 AT gmail DOT com>
MIME-Version: 1.0
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 Wed, 14 Mar 2007, Keith Mitchell wrote:

> In am running Windows XP SP2. I was having trouble with applications
> running under CygWin because I originally had spaces in my user names. I
> changed all the user names on my system, eliminating all the spaces in
> the user names. I then rebooted the computer just in case. Nothing
> changed. I then deleted my whole CygWin installation and reinstalled
> everything fresh from the web from scratch. Things were still broken in
> the same way!! I checked /etc/passwd file. All the user names were
> wrong. The user names were the same old user names I had in place before
> I changed the names eliminating the spaces. I do not know where CygWin
> found a list of those old and obsolete user names containing spaces, but
> it did find them somewhere. (probably in the registry). And it used
> them.
>
> My question. How can I purge those old and now invalid user names so
> CygWin uses only the current, correct, and valid user names, user names
> without spaces?

Your /etc/passwd was generated when you installed Cygwin, and wasn't
regenerated since, so did not pick up the changes in your usernames.  If
you have not edited it, you can simply regenerate it using "mkpasswd" (see
"man mkpasswd" or the appropriate section of the Cygwin User's Guide for
details).  Alternatively, as Larry said, you can just edit that file and
fix up the usernames, which are in the first column.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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