From owner-freebsd-questions Sat Apr 29 8:11:21 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 389EE37BA2B for ; Sat, 29 Apr 2000 08:11:17 -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 e3TFBFI14438 for ; Sat, 29 Apr 2000 17:11:15 +0200 Received: (from markush@localhost) by mao.acc.umu.se (8.9.3/8.9.3/Debian/GNU) id RAA25573 for freebsd-questions@freebsd.org; Sat, 29 Apr 2000 17:11:14 +0200 Date: Sat, 29 Apr 2000 17:11:14 +0200 From: Markus Holmberg To: freebsd-questions@freebsd.org Subject: /etc/fbtab login device matching Message-ID: <20000429171114.A23133@mao.acc.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.11i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG /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?) on any of /dev/ttyv* without explicitely list each of them (/dev/ttyv0-7). Instead I would like to use a pattern like "/dev/ttyv*". Would a patch for src/usr.bin/login/login_fbtab.c that uses some kind of pattern matching, like glob(3) for example, be desirable? 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