delorie.com/archives/browse.cgi | search |
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: | <418CE5CD.5000406@iinet.net.au> |
Date: | Sun, 07 Nov 2004 00:55:09 +1000 |
From: | Nick Coghlan <ncoghlan AT iinet DOT net DOT au> |
Reply-To: | ncoghlan AT email DOT com |
User-Agent: | Mozilla Thunderbird 0.9 (Windows/20041103) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Windows logins with spaces |
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). Regards, Nick. -- Nick Coghlan | Brisbane, Australia Email: ncoghlan AT email DOT com | Mobile: +61 409 573 268 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |