From owner-freebsd-questions Wed Jun 11 07:10:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA25058 for questions-outgoing; Wed, 11 Jun 1997 07:10:53 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA25035 for ; Wed, 11 Jun 1997 07:10:49 -0700 (PDT) Received: by mail.EUnet.hu, id QAA03305; Wed, 11 Jun 1997 16:10:35 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id NAA00528 for freebsd-questions@freebsd.org; Wed, 11 Jun 1997 13:47:45 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706111147.NAA00528@CoDe.hu> Subject: Re: permissions on /dev/console To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Wed, 11 Jun 1997 13:47:44 +0200 (MET DST) In-Reply-To: <199706102136.PAA05737@xmission.xmission.com> from Wes Peters - Softweyr LLC at "Jun 10, 97 03:36:50 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Somebody asked: > % I am trying to arrange to see my console messages. This is 2.2.1R. > % the /dev/console is > % > % crw-rw-rw- 1 root wheel 0, 0 Jun 5 21:18 /dev/console > % > % Xterm -C never picks up anytrhing, and xconsole says it can not open > % the console. This looks like a permissions problem. What should they > % be; and who should be the owner. Whne I exit from Xwindows, I find > % all the messages on the tty screen where I logged in. > > Gabor replied: > > If I remember right, you have to be the OWNER of /dev/console, to grab it > > with xconsole or xterm -C. So man 5 fbtab (or change it with chown). > > Make sure your kernel is configured with: > > options UCONSOLE #Allow users to grab the console > > This will allow any user to grab the console, so xterm -C and xconsole > will work. Well, in my 2.1.5, I have UCONSOLE in kernel, but have to be the owner of the file. I tried, with chown root:tty /dev/console (in my kernel, there is UCONSOLE), but neither xterm -C, nor xconsole cannot work. So I have to explicitly chown /dev/console, to work. It's in the xterm manual, but nothing about it in xconsole's man. Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"