From owner-freebsd-questions Sat Apr 27 23:55:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA12181 for questions-outgoing; Sat, 27 Apr 1996 23:55:53 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA12175 for ; Sat, 27 Apr 1996 23:55:51 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id QAA10666; Sun, 28 Apr 1996 16:23:20 +0930 From: Michael Smith Message-Id: <199604280653.QAA10666@genesis.atrad.adelaide.edu.au> Subject: Re: ownership of /dev/console? To: robert@elastica.com (Robert Nicholson) Date: Sun, 28 Apr 1996 16:23:20 +0930 (CST) Cc: questions@FreeBSD.org In-Reply-To: <199604272246.SAA00351@justine.elastica.com> from "Robert Nicholson" at Apr 27, 96 06:46:52 pm 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 Robert Nicholson stands accused of saying: > > Hi, I'm using xterm -C and I'd like to know how generally controlling > ownership of /dev/console is performed. I want to capture the output > of the console ... Is there a problem doing that? > > Currently, I've had to chown /dev/console to the login user. This is how it's normally done, AFAIK. Looking at /usr/X11R6/lib/X11/xdm/GiveConsole : # Assign ownership of the console to the invoking user # $XConsortium: GiveConsole,v 1.2 93/09/28 14:29:20 gildea Exp $ # # By convention, both xconsole and xterm -C check that the # console is owned by the invoking user and is readable before attaching # the console output. This way a random user can invoke xterm -C without # causing serious grief. # chown $USER /dev/console > Cheers. -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[