This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: User name with spaces and Cygwin web site suggestion


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]