www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/05/20:32:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-Id: <3.0.5.32.20041205202706.008242c0@incoming.verizon.net>
X-Sender: vze1u1tg AT incoming DOT verizon DOT net
Date: Sun, 05 Dec 2004 20:27:06 -0500
To: Rodrigo de Salvo Braz <braz AT uiuc DOT edu>
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Subject: Re: User name with spaces and Cygwin web site suggestion
Cc: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.58.0412051323090.9463@snow.cs.uiuc.edu>
References: <3 DOT 0 DOT 5 DOT 32 DOT 20041205105218 DOT 0081e100 AT incoming DOT verizon DOT net> <20041205040609 DOT GA36833365 AT hpn5170> <Pine DOT GSO DOT 4 DOT 58 DOT 0412031735480 DOT 3808 AT snow DOT cs DOT uiuc DOT edu> <6 DOT 2 DOT 0 DOT 14 DOT 0 DOT 20041204183421 DOT 04800da8 AT pop DOT prospeed DOT net> <Pine DOT GSO DOT 4 DOT 58 DOT 0412042109100 DOT 6868 AT snow DOT cs DOT uiuc DOT edu> <20041205040609 DOT GA36833365 AT hpn5170> <3 DOT 0 DOT 5 DOT 32 DOT 20041205105218 DOT 0081e100 AT incoming DOT verizon DOT net>
Mime-Version: 1.0

At 01:25 PM 12/5/2004 -0600, Rodrigo de Salvo Braz wrote:
>On Sun, 5 Dec 2004, Pierre A. Humblet wrote:
>
>> Just type "mkpasswd -l" (assuming you are a local user) and send the output
>> together with the name you use to login into Windows and the name reported
>> by id -un.
>
>Thanks. Here it is:
>
>$ mkpasswd -l

<snip>

>Rodrigo Braz:unused_by_nt/2000/xp:1006:513:Rodrigo,U-RODRIGONOTEBOOK\Rodrigo Braz,S-1-5-21-3615762775-3924064129-568730901-1006:/home/Rodrigo Braz:/bin/bash
>
>The Windows login name is "Rodrigo Braz", although now it changed to
>"Rodrigo" on the screen (but looks like it is a superficial change).

If the Windows login name is still "Rodrigo Braz", that means that you
have not changed it.
Have looked into Nick Coghlan's suggestion?
  
>The cygwin page mentions running mkpassswd in a way that does change the
>system, what is this way?

"mkpasswd -l > /etc/passwd"

Cygwin relies on /etc/passwd for things such as "id -un"

mkpasswd is a program that essentially dumps the Windows user database
into a Unix like format. For example your Windows login name appears just
after U-RODRIGONOTEBOOK\ above, while your "name" appears just before.

So you should do what the faq says. Either change your Windows login name
to something without space and run "mkpasswd -l > /etc/passwd"
or edit /etc/passwd and change the name (first field) in your record.
You may also want to change your home directory (next to last field).

Pierre


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