*BSD News Article 64420


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!asstdc.scgt.oz.au!metro!metro!news.nsw.CSIRO.AU!mel.dit.csiro.au!munnari.OZ.AU!spool.mu.edu!news.nd.edu!chi-news.cic.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.dfn.de!news.dkrz.de!news.rrz.uni-hamburg.de!news
From: Lars Hofhansl <lars_hofhansl@public.uni-hamburg.de>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Xconsole Problem!!!!!
Date: Wed, 27 Mar 1996 19:00:42 +0100
Organization: private FreeBSD site, Hamburg (Germany)
Lines: 36
Message-ID: <3159824A.41C67EA6@public.uni-hamburg.de>
References: <4in0r7$aff@ustsu10.ust.hk> <4ipcfe$11u@mordillo.physik.fu-berlin.de> <4j4l2u$5tu@uriah.heep.sax.de> <4j5rfq$41n@mordillo.physik.fu-berlin.de>
NNTP-Posting-Host: taipei.public.uni-hamburg.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; FreeBSD 2.1.0-RELEASE i386)

Thomas Graichen wrote:
> 
> J Wunsch (j@uriah.heep.sax.de) wrote:
> : graichen@mail.physik.fu-berlin.de (Thomas Graichen) writes:
> 
> : > :   I have some problem with xconsole that running in FreeBSD2.1.0.
> : > :   It said I can't open /dev/console.  However, I find that the user
> : > :   can't have ownership with /dev/console.  Even with "option UCONSOLE"
> : > :   have appear in the config file of the kernel.
> : >
> : > today i had the same problem - it disapeared after rebooting - but maybe
> : > this won't help for you :-(
> 
> : You are not using xdm, but startx instead, right?
> 
> wrong :-) - i use xdm with the standard console changing stuff - but as i said
> it disapeared after a reboot - the permissions were ok - i tried a bit around
> - and then rebootet - one more of the wonders of unix :-)
> 

Tbis happens when the X-Server terminates abnormally (f.e. SIGKILL etc). In that
case the ownership of /dev/console is not reset back to root.
The next time you reboot your computer, XDM ist started and xconsole is tried
to be started. Since the console is still owned by the user who last used X,
even root is unable to open it ! That's why xconsole disapears immidiately after
being started ! 

After the second reboot the X-Server is obviously terminated as it should... And
taa taa it works...

I put chown root /dev/console in /usr/X11/lib/X11/xdm/Xsetup_0 and now it works
EVERY time !

'hope that does the trick...
-- 
	Lars