From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; uid problems on w32 Date: Sun, 30 Mar 2008 21:39:04 +0300 Message-ID: References: <47EEBE03.9030104@gmail.com> <47EEE4D9.9090600@gnu.org> <47EFA826.6070907@gnu.org> <47EFB17F.70903@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206902528 27283 80.91.229.12 (30 Mar 2008 18:42:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 18:42:08 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 20:42:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jg2U8-0004L5-GB for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 20:42:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg2TS-0006uv-To for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 14:41:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg2R5-0005tI-3K for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:39:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg2R3-0005s7-5b for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:39:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg2R3-0005rx-1O for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:39:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg2R2-0008Va-Me for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:39:16 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jg2R2-00055C-Ee for emacs-pretest-bug@gnu.org; Sun, 30 Mar 2008 14:39:16 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jg2Qz-0008Uy-Cd for emacs-pretest-bug@gnu.org; Sun, 30 Mar 2008 14:39:16 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg2Qv-0008Ty-6c; Sun, 30 Mar 2008 14:39:09 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-21-134.inter.net.il [80.230.21.134]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FJN38517 (AUTH halo1); Sun, 30 Mar 2008 21:39:06 +0300 (IDT) In-reply-to: <47EFB17F.70903@gmail.com> (lennart.borgman@gmail.com) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93919 gmane.emacs.pretest.bugs:21803 Archived-At: > Date: Sun, 30 Mar 2008 17:27:59 +0200 > From: "Lennart Borgman (gmail)" > CC: Eli Zaretskii , > Stefan Monnier , > emacs-pretest-bug@gnu.org > > Jason Rumney wrote: > > Eli Zaretskii wrote: > >> I'm still clueless about why Cygwin shows 60830, while we show 50830. > >> Ideas, anyone? > >> > > > > Cygwin adds 10000 to domain uid and gids to avoid clashes with local ids. > > > > http://cygwin.com/ml/cygwin-developers/2001-04/msg00048.html > > http://cygwin.com/ml/cygwin-patches/2001-q2/msg00043.html > > But that does not happen in my case where id is 1003 both in > server-ensure-safe-dir and cygwin id. That's because your uid is of a local user, not of a domain user. Domain users are defined by a prefix in the SID that is different from the prefix of the local machine. The way we (and Cygwin) map SIDs to a uid is by throwing away the prefix and keeping only the last part -- the so-called RID, the relative ID -- which is okay as long as the prefix is identical for all users. But once users defined in the domain server come into play, you could have 2 different users -- one local, the other domain user -- with the same RID. That is what Cygwin is trying to avoid.