X-Spam-Check-By: sourceware.org Date: Fri, 23 Dec 2005 11:54:38 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: "Kyle S. Allender" cc: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.5.18-1 on Windows XP group & passwd problem In-Reply-To: <43AC22F7.9040305@mediacomcc.com> Message-ID: References: <43AC22F7 DOT 9040305 AT mediacomcc DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Fri, 23 Dec 2005, Kyle S. Allender wrote: > Morning all. > > I am experiencing a problem with Cygwin @ startup. After having to do a > rebuild on my local XP system, reinstalling Cygwin went fine until I > encountered this message when starting the Cygwin environment: > > CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions) GLE: 32 > CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32 > [snip] > > I apologise for the repetition, but that is what is displayed at the > start of the xterm session. The Cygwin bash shell provided much the > same, but I was unable to capture that portion. > > I have attached the output of: cygcheck -s -v -r as per the posting > instructions. > > I _think_ this is a problem with my domain account, but I'm not certain. > I'm not concerned with accessing domain resources from within Cygwin, so > that can be bypassed if necessary to resolve the issue. > > This was working OK until about a week ago when I was having problems > with my domain account. The admin was helping me sort it out, and while > no one says that my domain account was actually deleted and re-created, > I cannot be certain that that is indeed the case. > > A friend has suggested that what I am seeing is the result of the SID > changing on the domain account - indicating my account's been rebuilt. > However, no other applications are being affected in this way at this > time - that I know of. > > So... > > Can someone out there give me a hint on what might be wrong here? I > created the group and passwd files with these commands: > > mkpasswd -l -s > /etc/passwd ^^ At a guess, here's your problem. This flag completely omits the SIDs from /etc/passwd. When you omit SIDs, there is no way for Cygwin to map your user id back to Windows security mechanisms, so any attempt to use ntsec (which is on by default) will fail. This has nothing to do with the domain. Did you mean to use "-d" instead of "-s"? > mkgroup -l > /etc/group > > The passwd file initially contained a pair of the lines from the message > above when run with mkpasswd -l -d > /etc/passwd, but I'm not certain as > to why. Running any Cygwin program (including mkpasswd) would probably result in the above message if the SIDs are missing. Just rerun the command, delete the offending lines, and see if it fixes your problem. You could try confirming my guess by running "CYGWIN=nontsec bash" before regenerating /etc/passwd -- if I'm right, you shouldn't see these messages. > I _really_ hope someone out there ends up telling me I'm missing > something obvious, but this particular error does not appear on Google > that I can find and the Cygwin docs don't point it out either. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/