From: Manuel Bouyer (bouyer@bsdtest.ensta.fr)
Date: 09/21/93


From: bouyer@bsdtest.ensta.fr (Manuel Bouyer)
Subject: Re: can't start xconsole in X for non-root user
Date: 21 Sep 1993 19:26:37 GMT

In article <1993Sep21.100138.24996@syma.sussex.ac.uk>, tauq7@syma.sussex.ac.uk (Wai Ho) writes:
|> Hi there,
|> I've been unable to get xconsole to open the console when
|> running X as a non-root user. The xconsole works fine for root or su
|> but not for normal user. I have done the following but no success:
|> 1) set root uid for xterm, xconsole, X386, xdm, xinit
|> 2) set perm for tty0 to be 'rw' for all
|> 3) /dev is now 'rwx' for all
The user that run xconsole MUST BE the owner of /dev/console, and have the rw
rights on it. At login, you have do a
chown $USER /dev/console; chmod 600 /dev/console (or 655)
whith xdm, it can be done in the script defined by the DisplayManager._0.startup
resource. This script is run as root after the passwd controle.
In the srcipt defined by the DisplayManager._0.reset: resource, you can do a
chown root /dev/console;chmod 600 (or 655) /dev/console.
If you uses startx, i thick you whill have to do a root seteuid program to do this.