Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com To: cygwin@cygwin.com From: Thorsten Kampe Subject: Re: Cygwin handling of space-separated usernames Date: Thu, 16 Jun 2005 15:37:40 +0100 Lines: 38 Message-ID: References: <00c001c57275$c0a954b0$150d81a4@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: 40tude_Dialog/2.0.15.1 X-IsSubscribed: yes PCYMTWLL, please - http://cygwin.com/acronyms/#PCYMTWLL * Michael PARKER (2005-06-16 14:17 +0100) > Our domain logins have usernames of the form "firstname lastname". Cygwin assigns the USER env. variable to the "firstname lastname" string, No, Cygwin doesn't do anything like that. It's bash in /etc/profile. > but many utilities (such as rsh, passwd)that rely upon seeing a non-space-separated username, encounter problems when processing logins, reporting user passwd information etc. Quote the username properly and file a bug report if that doesn't work. > Has anyone encountered similar problems and found a successful workaround? "Don't use spaces in usernames" is the best solution for that. > Can Cygwin be told to map the space-separated Windows domain login to a non-space-separated string? Sure (/etc/passwd) > Is this a bug in Cygwin's conversion of Windows login/user data? No. There is nothing converted so there can be no bug. Cywin (or to be more precise: "mkpasswd" uses simply the original NT account name and the original NT SID)/ > Any help would be greatly appreciated. You should definitely read the user guide to get some basic information about Cygwin. And please get some basic information about shells, too. The proper handling of space separated values is neither limited to Unix shell and utilities, not even to usernames, because the problem is the same in legacy Windows cmd.exe/command.com. Thorsten -- 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/