*BSD News Article 5382


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!metro!news
From: dawes@physics.su.OZ.AU (David Dawes)
Subject: Re: [386BSD] XFree86, no console for non-root user
Message-ID: <1992Sep22.043733.22702@ucc.su.OZ.AU>
Sender: news@ucc.su.OZ.AU
Nntp-Posting-Host: physics.su.oz.au
Organization: School of Physics, University of Sydney, Australia
References: <19ks69INNd2l@corax.udac.uu.se>
Date: Tue, 22 Sep 1992 04:37:33 GMT
Lines: 24

In article <19ks69INNd2l@corax.udac.uu.se> goran@astro.uu.se (Goran Hammarback) writes:
>I've installed XFree86 with the kernel patches and it works
>very well except for the slightly annoying problem that when
>a non-root user starts xconsole, the response is :
>   Can't open console.
>Xterm -C does not work either.
>
>I did apply the UCONSOLE option in the configuration file.
>I tried changing the protection on /dev/console, and making
>xconsole suid and sgid, but no luck.
>
>Does anyone know how to fix this?

The user running xconsole or 'xterm -C' must own /dev/console.  Unfortunately
since the getty runs now on /dev/vga the ownership of /dev/console doesn't
get set when logging in.  If you use xdm, then GiveConsole and TakeConsole
should set the ownership and permissions correctly.

David
--
------------------------------------------------------------------------------
 David Dawes (dawes@physics.su.oz.au)    DoD#210      | Phone: +61 2 692 2639
 School of Physics, University of Sydney, Australia   | Fax:   +61 2 660 2903
------------------------------------------------------------------------------