This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xfree problem


Pierre,

I've gotten a success and I propose a solution, at least for now... skip to
the bottom if you just want the meat and potatoes.

> Cygwin thinks that your gid is 10513 but Windows only puts
> you in Everyone and Users.

Interesting.

> Editing /etc/passwd to change your gid to 545 should solve the 
> problem. 
> Do you know why it is 10513? Does mkpasswd make it that way?

First of all: no Cygwin/XFree86 user should have to run mkpasswd in order for
Cygwin/XFree86 to be run.  In other words, I won't be satisified if we make a
fix to mkpasswd that corrects the problem but that requires any NT/2000/XP
user with restricted privelelges in Windows to run mkpasswd.  With that said,
yes, mkpasswd sets my group as 10513:

=====================================================
hunt@NUCFAC13 ~
$ mkpasswd -u hunt -d
hunt:unused_by_nt/2000/xp:15136:10513:Harold Hunt,U-NSCL_USER\hunt,S-1-5-21-2139
319003-1153703952-439713625-5136:/home/hunt:/bin/bash
=====================================================

I have no idea what group 10513 is supposed to be either, /etc/groups contains:
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-910902540-1879534186-1274898322-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:


Hand editing /etc/passwd and changing my group id from 10513 (unknown) to 545
(Users) causes xterm to start working.  The output from id follows:

============================================================
hunt@NUCFAC13 ~
$ id
uid=15136(hunt) gid=545(Users) groups=0(Everyone),545(Users)
============================================================

So, we've got a problem were getting the gid to be correct may be difficult,
if not impossible (mkpasswd screws up the gid, and we don't want to require NT
Domain users to run mkpasswd), yet we're requiring a valid gid.  I think the
obvious solution is that we can't require a valid gid, we revert to the old
behavior, and we put a giant comment in the source code to indicate why
requiring a valid gid is a bad idea.

Thanks for helping Pierre, I think we will be able to fix this,

Harold


"Pierre A. Humblet" <Pierre.Humblet@ieee.org> said:

> Harold L Hunt wrote:
> > 
> > Pierre,
> > 
> > After setting CYGWIN=ntsec:
> > =======================================================
> > hunt@NUCFAC13 ~
> > $ id
> > uid=15136(hunt) gid=10513 groups=0(Everyone),545(Users)
> > =======================================================
> 
> Cygwin thinks that your gid is 10513 but Windows only puts
> you in Everyone and Users.
> 
> Editing /etc/passwd to change your gid to 545 should solve the 
> problem. 
> Do you know why it is 10513? Does mkpasswd make it that way?
> 
> 
> Pierre
> 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]