From owner-freebsd-questions Wed Apr 24 02:43:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03618 for questions-outgoing; Wed, 24 Apr 1996 02:43:26 -0700 (PDT) Received: from plum.blueberry.co.uk ([194.70.52.50]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA03610 for ; Wed, 24 Apr 1996 02:43:19 -0700 (PDT) Received: (from nik@localhost) by plum.blueberry.co.uk (8.7.5/8.6.12) id KAA16885; Wed, 24 Apr 1996 10:39:20 +0100 (BST) From: Nik Clayton Message-Id: <199604240939.KAA16885@plum.blueberry.co.uk> Subject: Re: /dev/console To: s_koyin@eduserv.its.unimelb.EDU.AU (HMG coA reductase) Date: Wed, 24 Apr 1996 10:39:16 +0100 (BST) Cc: questions@freebsd.org In-Reply-To: from "HMG coA reductase" at Apr 24, 96 12:31:52 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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