Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2000 16:45:18 -0400
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Markus Holmberg <markush@acc.umu.se>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: /etc/fbtab login device matching
Message-ID:  <20000429164518.A30184@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <20000429171114.A23133@mao.acc.umu.se>; from markush@acc.umu.se on Sat, Apr 29, 2000 at 05:11:14PM %2B0200
References:  <20000429171114.A23133@mao.acc.umu.se>

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




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