From owner-freebsd-questions Sun Apr 30 1:16:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kleopatra.acc.umu.se (kleopatra.acc.umu.se [130.239.18.150]) by hub.freebsd.org (Postfix) with ESMTP id A0D3537B627 for ; Sun, 30 Apr 2000 01:16:43 -0700 (PDT) (envelope-from markush@acc.umu.se) Received: from mao.acc.umu.se (root@mao.acc.umu.se [130.239.18.154]) by kleopatra.acc.umu.se (8.10.1/8.10.1) with ESMTP id e3U8GfI31482; Sun, 30 Apr 2000 10:16:41 +0200 Received: (from markush@localhost) by mao.acc.umu.se (8.9.3/8.9.3/Debian/GNU) id KAA01364; Sun, 30 Apr 2000 10:16:41 +0200 Date: Sun, 30 Apr 2000 10:16:41 +0200 From: Markus Holmberg To: cjclark@home.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/fbtab login device matching Message-ID: <20000430101640.A896@mao.acc.umu.se> References: <20000429171114.A23133@mao.acc.umu.se> <20000429164518.A30184@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.11i In-Reply-To: <20000429164518.A30184@cc942873-a.ewndsr1.nj.home.com>; from cjc@cc942873-a.ewndsr1.nj.home.com on Sat, Apr 29, 2000 at 04:45:18PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 29, 2000 at 04:45:18PM -0400, Crist J. Clark wrote: > > I want to change the ownership of /dev/console to the user that logs in > > (which sounds reasonable, right?) > [snip] > > Well, what happens when more than one user is logged in to the > machine? For example, I frequently will log into a machine as a > "mortal" user first on ttyv0. If at some point I need root privs, I go > to the next ttyv and log in there as root rather than su. Who should > own the console? You are setting yourself up for a reverse-race > condition (the last person wins ;) over console ownership. That's true :(. The main reason for using fbtab is to be able to grab the console (with xconsole) when running as a normal user. su:ing and running xconsole each time I start X is not an option :/. Would "chmod o+r /dev/console" be an option? I'm not sure what security implications this might have. Anyone could read the console log messages.. But for what use? Markus -- Markus Holmberg | Give me Unix or give me a typewriter. markush@acc.umu.se | http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message