From owner-freebsd-questions Sat Apr 29 13:45:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 968E237B6F7 for ; Sat, 29 Apr 2000 13:45:51 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id QAA30348; Sat, 29 Apr 2000 16:45:18 -0400 (EDT) (envelope-from cjc) Date: Sat, 29 Apr 2000 16:45:18 -0400 From: "Crist J. Clark" To: Markus Holmberg Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/fbtab login device matching Message-ID: <20000429164518.A30184@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <20000429171114.A23133@mao.acc.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000429171114.A23133@mao.acc.umu.se>; from markush@acc.umu.se on Sat, Apr 29, 2000 at 05:11:14PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 29, 2000 at 05:11:14PM +0200, Markus Holmberg wrote: > /etc/fbtab is a file read at login which sets permissions on devices if > certain conditions are met. > > My problem is that I would like to match the login device against a > simple pattern ("/dev/ttyv*") instead of an absolute name > ("/dev/ttyv0"). This does not seem to be possible using the current > implementation (4.0-RELEASE/5.0-CURRENT). > > 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. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message