Date: Wed, 11 Jun 1997 13:47:44 +0200 (MET DST) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Subject: Re: permissions on /dev/console Message-ID: <199706111147.NAA00528@CoDe.hu> In-Reply-To: <199706102136.PAA05737@xmission.xmission.com> from Wes Peters - Softweyr LLC at "Jun 10, 97 03:36:50 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <myloginname> /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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706111147.NAA00528>