Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 1996 10:39:16 +0100 (BST)
From:      Nik Clayton <nik@blueberry.co.uk>
To:        s_koyin@eduserv.its.unimelb.EDU.AU (HMG coA reductase)
Cc:        questions@freebsd.org
Subject:   Re: /dev/console
Message-ID:  <199604240939.KAA16885@plum.blueberry.co.uk>
In-Reply-To: <Pine.OSF.3.91.960424123101.3879B-100000@eduserv.its.unimelb.EDU.AU> from "HMG coA reductase" at Apr 24, 96 12:31:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> try to set the setuid bit on /usr/X11R6/bin/xconsole. ie:
> chmod 4755 /usr/X11R6/bin/xconsole

As far as I can tell, this shouldn't be necessary. To quote from the 'xterm'
man page:

       -C      This option  indicates  that  this  window  should
               receive  console output.  This is not supported on
               all systems.  To obtain console output,  you  must
               be  the  owner of the console device, and you must
               have read and write permission for it.  If you are
               running  X under xdm on the console screen you may
               need to have the session startup  and  reset  pro-
               grams  explicitly change the ownership of the con-
               sole device in order to get this option to work.

which implies that regular users should be able to do this (in fact, it's
because I can do this under SunOS 4.1.3 that I want to do it under FreeBSD).

Taking a poke around /usr/local/X11R6/lib/X11/xdm, I can see

    -rwxr-xr-x  1 root  10    390 Nov  3 00:24 GiveConsole*
    -rwxr-xr-x  1 root  10    249 Nov  3 00:24 TakeConsole*

and the comments within them imply that they set the console permissions 
correctly. However, it also looks like they're meant to be run from xdm,
which runs as root and so can do this. The 'xdm_config' file shows that
these programs are to be run at xdm startup and reset respectively.

A regular user running 'startx' can't do this. For purely historical reasons
(i.e., it's what I started with, and it's now ingrained in the fingers)
I normally use 'startx'. And I'd quite like the console stuff to work
correctly with this.

The only other suggestion so far (add myself to the operator group) hasn't
worked.

N
-- 
--+=[ Blueberry Hill                   Blueberry Design                   ]=+--
--+=[ http://www.blueberry.co.uk/      1/9 Chelsea Harbour Design Centre, ]=+--
--+=[ WebMaster@blueberry.co.uk        London, England, SW10 0XE          ]=+--
--+=[       Don't anthropomorphize computers.  They don't like it.        ]ENTP



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604240939.KAA16885>