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 Reply-To: From: "Alan Miles" To: "kaio" , Subject: RE: WinXP username with spaces --> wmaker ko Date: Sat, 5 Apr 2003 08:50:36 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: All, I have the same problem (on my machine at home) - However I do have a (partial) solution (I am still working on the final solution): This has to be done after CYGWIN installation, but BEFORE and user logon. Edit the /etc/passwd file and replace the space in the first field, and edit the field /home/ to /home/ and save. I am working on a scripting solution to install as part of my installation - maybe this could be incorporated as part of the "main" CYGWIN release. Below is a script fragment on how I am proposing to "automate" this fix. ThePasswordFile="/etc/passwd" ModUserName="$(/usr/bin/echo "${USER}" | /usr/bin/sed -e 's/ /_/g')" ... ModHomeUserName="$(/usr/bin/basename "${HOME}" | /usr/bin/sed -e 's/ /_/g')" ModHomeUserDirName="$(/usr/bin/dirname "${HOME}")/" ModHome="${ModHomeUserDirName}${ModHomeUserName}" /usr/bin/rm -f "${ThePasswordFile}" if [ ! -e "${ThePasswordFile}" -a ! -L "${ThePasswordFile}" ] then /usr/bin/mkpasswd -l -c | /usr/bin/gawk -F':' -v oldUser="${USER}" -v newUser="${ModUserName}" -v newUserHomeDir="${ModHome}" ' BEGIN {OFS=":" ; } $1 ~ oldUser {$1=newUser ; $6=newUserHomeDir; } {print $0 ; } ' > "${ThePasswordFile}" fi Hope this helps. Alan -----Original Message----- From: kaio [mailto:electabuzz AT katamail DOT com] Sent: April 4, 2003 10:48 To: cygwin AT cygwin DOT com Subject: WinXP username with spaces --> wmaker ko i have my administrator user named with a space on WInXP. cygwin installation is ok, but windowmaker don't install: seems that the space generates a new parameter in installation commands! in fact, wmaker installation creates a new dir in /home/ with the first half of username! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/