Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 1996 16:23:20 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        robert@elastica.com (Robert Nicholson)
Cc:        questions@FreeBSD.org
Subject:   Re: ownership of /dev/console?
Message-ID:  <199604280653.QAA10666@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199604272246.SAA00351@justine.elastica.com> from "Robert Nicholson" at Apr 27, 96 06:46:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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  [[



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