emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; uid problems on w32


From: Lennart Borgman (gmail)
Subject: Re: 23.0.60; uid problems on w32
Date: Sun, 30 Mar 2008 22:33:58 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Eli Zaretskii wrote:
Date: Sun, 30 Mar 2008 17:27:59 +0200
From: "Lennart Borgman (gmail)" <address@hidden>
CC: Eli Zaretskii <address@hidden>, Stefan Monnier <address@hidden>,
 address@hidden

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.

Thanks.

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.

But why is the prefix thrown away?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]