home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20278 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.6 KB  |  50 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!Germany.EU.net!rz.uni-hildesheim.de!agsc!veeble.han.sub.org!gkminix!gero
  3. From: gero@gkminix.han.de (Gero Kuhlmann)
  4. Subject: Re: xdm and gwm
  5. References: <1992Dec9.075254.18980@ncsu.edu>
  6. Organization: gkminix, Hannover, Germany
  7. Date: Sun, 13 Dec 92 17:25:27 GMT
  8. Message-ID: <1992Dec13.172527.1825@gkminix.han.de>
  9. Lines: 39
  10.  
  11. linville@garfield.catt.ncsu.edu (John W. Linville) writes:
  12. > 1)  When using xdm, is there anything special that I need to do to allow xdm
  13. >     to log-in users?  I have removed the tty's from inittab and I put xdm at
  14. >     the end of my /etc/rc file.  The login screen comes-up fine.  The problem
  15. >     is that anytime I try to login, the login/password box disappears, only
  16. >     to reappear without ever starting a user session.  I have made ssessreg
  17. >     a setuid program.  Does anyone know how to make this work.  I am using
  18. >     the latest SLS.
  19.  
  20. I had the same problem. It is that rc is started by init with /dev/tty1 setup
  21. as stdin/stdout. But xdm returns immediately after starting because it is a
  22. daemon putting itself into the background. That means that the rc script
  23. returns almost immediately after calling xdm and init closes /dev/tty1. So
  24. when xdm starts xterm that doesn't find a valid console (just do it and look
  25. at the 'ps -ax' output: you will see that there is no console attached to
  26. xdm and therefore couldn't be attached to xterm either). And it's not xdm
  27. which fails but xterm which couldn't find a console. And because xterm is
  28. called as the last process in Xsession, it returns an error to xdm which then
  29. shows up the login window again.
  30. But from where to start xdm then? When doing it from a normal login, xdm
  31. tries to access the console the same way as the underlaying bash is doing.
  32. That makes it almost impossible to enter anything at the login window. But
  33. removing the tty from inittab isn't a solution either because then there is
  34. no way to start xdm. To solve this problem I wrote an alias of the following
  35. form:
  36.     alias xdm='xdm; exec </dev/tty8; exec >/dev/tty8'
  37.  
  38. Now when starting xdm, it returns immediately and the shell attaches the
  39. stdin and stdout to /dev/tty8 which is normally not used in the inittab.
  40. So xdm is attached to the current controlling console and the shell is
  41. redirected to /dev/tty8. That also means that if xdm closes the server
  42. due to some error, you will find your previous vc with <ALT+F8>!
  43.  
  44. gero.
  45.  
  46. -- 
  47. Gero Kuhlmann            Zerberus:  G.KUHLMANN@A-LINK-H.ZER
  48. Donarweg 4            SubNet:    gero@gkminix.sub.org
  49. D-3000 Hannover 51              IN:        gero@gkminix.han.de
  50.