X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: Bug Report: Purging Old and Invalid User Names With Spaces Date: Fri, 16 Mar 2007 22:49:36 -0000 Lines: 28 Message-ID: References: <45FAFBD7 DOT 4000802 AT gmail DOT com> <45FB0398 DOT 1090808 AT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 * Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400) > Actually, this information is incorrect. > > Windows XP stores the first username you choose and will associate your > current username to it regardless of what you change it to. Cygwin > stores nothing, it is asking Windows what your username is and getting a > response of what Windows tells it. Cygwin asks Windows at first install about the user names and creates /etc/passwd. The problem is (or can be) that this list never gets updated even if the user names change or new user are added. As Keith wrote: "Subsequent installations of CygWin utilize the aforementioned out of date username list, even though those usernames have been changed and are no longer valid." The secret is to run mkpasswd -l -c > /etc/passwd and mkgroup -l -c > /etc/group Also you have to run this if you're in a domain (because Cygwin retrieves only the local user names, not the domain names). 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/