delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/16/10:40:35

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
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Cygwin handling of space-separated usernames
Date: Thu, 16 Jun 2005 15:37:40 +0100
Lines: 38
Message-ID: <z3k2a0ev9jwv$.1afwxdjmt0ybm$.dlg@40tude.net>
References: <00c001c57275$c0a954b0$150d81a4 AT st DOT com>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019