home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- 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
- From: gero@gkminix.han.de (Gero Kuhlmann)
- Subject: Re: xdm and gwm
- References: <1992Dec9.075254.18980@ncsu.edu>
- Organization: gkminix, Hannover, Germany
- Date: Sun, 13 Dec 92 17:25:27 GMT
- Message-ID: <1992Dec13.172527.1825@gkminix.han.de>
- Lines: 39
-
- linville@garfield.catt.ncsu.edu (John W. Linville) writes:
- > 1) When using xdm, is there anything special that I need to do to allow xdm
- > to log-in users? I have removed the tty's from inittab and I put xdm at
- > the end of my /etc/rc file. The login screen comes-up fine. The problem
- > is that anytime I try to login, the login/password box disappears, only
- > to reappear without ever starting a user session. I have made ssessreg
- > a setuid program. Does anyone know how to make this work. I am using
- > the latest SLS.
-
- I had the same problem. It is that rc is started by init with /dev/tty1 setup
- as stdin/stdout. But xdm returns immediately after starting because it is a
- daemon putting itself into the background. That means that the rc script
- returns almost immediately after calling xdm and init closes /dev/tty1. So
- when xdm starts xterm that doesn't find a valid console (just do it and look
- at the 'ps -ax' output: you will see that there is no console attached to
- xdm and therefore couldn't be attached to xterm either). And it's not xdm
- which fails but xterm which couldn't find a console. And because xterm is
- called as the last process in Xsession, it returns an error to xdm which then
- shows up the login window again.
- But from where to start xdm then? When doing it from a normal login, xdm
- tries to access the console the same way as the underlaying bash is doing.
- That makes it almost impossible to enter anything at the login window. But
- removing the tty from inittab isn't a solution either because then there is
- no way to start xdm. To solve this problem I wrote an alias of the following
- form:
- alias xdm='xdm; exec </dev/tty8; exec >/dev/tty8'
-
- Now when starting xdm, it returns immediately and the shell attaches the
- stdin and stdout to /dev/tty8 which is normally not used in the inittab.
- So xdm is attached to the current controlling console and the shell is
- redirected to /dev/tty8. That also means that if xdm closes the server
- due to some error, you will find your previous vc with <ALT+F8>!
-
- gero.
-
- --
- Gero Kuhlmann Zerberus: G.KUHLMANN@A-LINK-H.ZER
- Donarweg 4 SubNet: gero@gkminix.sub.org
- D-3000 Hannover 51 IN: gero@gkminix.han.de
-