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 Date: Thu, 9 Jun 2005 10:17:01 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cygwin.bat fails with "WFMO failed waiting for cygthread 'WnetGetResourceInformation' Message-ID: <20050609081701.GD11065@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2934074 DOT 1118246513177 DOT JavaMail DOT tjhart AT mac DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2934074.1118246513177.JavaMail.tjhart@mac.com> User-Agent: Mutt/1.4.2i On Jun 8 11:01, Tim Hart wrote: > On Jun 7 19:06, Tim Hart wrote: > >> having the same home directory path. I can use a few pattern matching tools > >> to filter out the appropriate domain users and modify /etc/passwd > >> accordingly. Obviously mkpasswd needs to be updated in order to produce > >> correct home directory entries (possibly a unique format for Windows XP?). > > >The information returned by Windows is used unchanged. There should be > >no need for some special handling. > > In this case mkpasswd isn't using any information returned by Windows other than the homeroot > prefix. > > The full command ( for reference ), is > > mkpasswd -d -l -p "$(cygpath -H)" > /etc/passwd > > mkpasswd -d -l is returning information on two different users: the local TJHart and > CORPORATE\TJHart. The -p option overwrites any directories returned by Windows. mkpasswd has no intelligence built in. It just appends the user name to the path given by -p, nothing else. If you leave out the -p option you'll get the home directory return by the Windows function NetUserEnum. If there hasn't been stored any homedir in the SAM, you get /home/username. If the NetUserEnum function doesn't return the correct path, there's no way to get what you want which I'm aware of. I don't know how NT generates different paths for the same user name in different Domains. If you need a more complex layout, either manipulate the resulting passwd file by hand or consider to write a patch to mkpasswd. You know, http://cygwin.com/acronyms/#SHTDI and http://cygwin.com/acronyms/#PTC ;-) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/