This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Windows logins with spaces
- From: "Pierre A. Humblet" <pierre dot humblet at ieee dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 6 Nov 2004 11:48:05 -0500
- Subject: Re: Windows logins with spaces
- References: <418CE5CD.5000406@iinet.net.au>
On Sun, Nov 07, 2004 at 12:55:09AM +1000, Nick Coghlan wrote:
> Hi,
>
> My windows login name has a space in it. I was able to remove the space
> in Cygwin just by editing /etc/passwd (effectively doing 's/login
> name/loginname/') and renaming '/home/login name/' to
> '/home/loginname/'. Cygwin then appeared to find the new home directory
> quite happily and set HOME and USER to the version of the name with no
> spaces. HOMEPATH still points to the correct Windows directory.
>
> This seems much simpler and more flexible than the approach given in the
> current FAQ (which suggests hardcoding values for USER and HOME in
> /etc/profile). It should also work with other programs which access
> /etc/passwd (which *is* mentioned as a problem with the approach given
> in the FAQ).
You are absolutely right. Substitute text has already been proposed,
see the thread
http://cygwin.com/ml/cygwin-patches/2003-q1/msg00315.html
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/