Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <3.0.5.32.20041205202706.008242c0@incoming.verizon.net>
X-Sender: vze1u1tg@incoming.verizon.net
Date: Sun, 05 Dec 2004 20:27:06 -0500
To: Rodrigo de Salvo Braz <braz@uiuc.edu>
From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
Subject: Re: User name with spaces and Cygwin web site suggestion
Cc: cygwin@cygwin.com
In-Reply-To: <Pine.GSO.4.58.0412051323090.9463@snow.cs.uiuc.edu>
References: <3.0.5.32.20041205105218.0081e100@incoming.verizon.net> <20041205040609.GA36833365@hpn5170> <Pine.GSO.4.58.0412031735480.3808@snow.cs.uiuc.edu> <6.2.0.14.0.20041204183421.04800da8@pop.prospeed.net> <Pine.GSO.4.58.0412042109100.6868@snow.cs.uiuc.edu> <20041205040609.GA36833365@hpn5170> <3.0.5.32.20041205105218.0081e100@incoming.verizon.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

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/

