Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 From: "Pierre A. Humblet" Subject: Re: User name with spaces and Cygwin web site suggestion Cc: cygwin AT cygwin DOT com In-Reply-To: References: <3 DOT 0 DOT 5 DOT 32 DOT 20041205105218 DOT 0081e100 AT incoming DOT verizon DOT net> <20041205040609 DOT GA36833365 AT hpn5170> <6 DOT 2 DOT 0 DOT 14 DOT 0 DOT 20041204183421 DOT 04800da8 AT pop DOT prospeed DOT net> <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 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 >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/