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: How to get xdm working?


On Mon, 8 Sep 2003, Sylvain Petreolle wrote:

> This doesnt work for me on Win2K.
> I have an account that is in the Administrators group.
> I copied the SYSTEM line and changed it to root: xdm fails the same
> way.
> I tried with the Administrator line too, no way.
>
> rcv0095@GE1C01WN2K30 ~
> $ grep 544 /etc/passwd
> SYSTEM:*:18:544:,S-1-5-18::
> root:*:18:544:,S-1-5-18::
> Administrators:*:544:544:,S-1-5-32-544::
>
> rcv0095@GE1C01WN2K30 ~
> $ xdm
> Only root wants to run xdm
>
> > This is probably a bug in xdm.  It's been discussed on this list
> > before. Cygwin (or, rather, Windows) doesn't have a root user, but
> > does have users with various permissions usually attributed to "root".
> > On Win9x you can simply add a line for "root" to /etc/passwd (on
> > WinNT/2k/XP you can copy the line for "system" and change the user
> > name in that new line to "root").

Erm, yes.  I forgot that some programs check for root by checking whether
UID==0.  You might need to also change the UID (3rd field) to 0.  If xdm
will try to do a seteuid(), use the SYSTEM line as your template (to have
the same SID).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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