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,

Before setting CYGWIN=ntsec:
=========================================
hunt@NUCFAC13 /usr/X11R6/bin
$ id
uid=15136(hunt) gid=10513(Administrators)
=========================================

After setting CYGWIN=ntsec:
=======================================================
hunt@NUCFAC13 ~
$ id
uid=15136(hunt) gid=10513 groups=0(Everyone),545(Users)
=======================================================

However, now if I run startxwin.sh, XWin.exe starts, but I get no clients
displaying and:
======================================================
hunt@NUCFAC13 /usr/X11R6/bin
$ startxwin.sh
Xlib: connection to "nucfac13:0.0" refused by server
Xlib: Client is not authorized to connect to Server
xsetroot:  unable to open display 'nucfac13:0.0'

hunt@NUCFAC13 /usr/X11R6/bin
$ Xlib: connection to "nucfac13:0.0" refused by server
Xlib: Client is not authorized to connect to Server
twm:  unable to open display "nucfac13:0.0"
Xlib: connection to "nucfac13:0.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: nucfac13:0.0
======================================================

If I run startxwin.bat, XWin.exe starts and so do X clients (xcalc, xeyes, and
xterm.exe (with -hold parameter)) but I get a new error from xterm:
===============================
setuid failed: Invalid argument
===============================

Hope that helps,

Harold

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

> Harold L Hunt wrote:
> > 
> > Pierre,
> > 
> > We're going to have to make this discussion public because I don't know enough
> > about setuid, getuid, and xterm to answer all questions.  I'll be sure to cc
> > you on any replies and I ask the anyone else replying do the same (Pierre is
> > not subscribed to the cygwin-xfree@cygwin.com mailing list).
> > 
> > > Have you run xterm under strace?
> > 
> > I've done straces and posted links to them in the following emails:
> > http://cygwin.com/ml/cygwin-xfree/2002-07/msg00014.html
> > http://cygwin.com/ml/cygwin-xfree/2002-07/msg00011.html
> 
> The problem is here
>   728 5428494 [main] xterm 1536 seteuid32: uid: 15136 myself->gid: 10513
> 
>   385 5428879 [main] xterm 1536 seteuid32: Process token not verified
> 
> cygwin thinks that you want to set your group to 10513 and uid 15136.
> It checks your process to see if you are already there (you should be)
> but concludes you are not. Why?
> 
> It then tries to put you there, but because you are not privileged 
> it fails.
> 
> If you are on the machine where it fails, could you type "id",
> with CYGWIN=ntsec in your env?
> 
> I just downloaded xfree and will try on my side.
> 
> Pierre
> 




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