From owner-freebsd-questions Mon Oct 1 18:27: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 9C81237B405 for ; Mon, 1 Oct 2001 18:27:00 -0700 (PDT) Received: (qmail 2482 invoked by uid 100); 2 Oct 2001 01:26:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15289.6115.915896.605507@guru.mired.org> Date: Mon, 1 Oct 2001 20:26:59 -0500 To: Abdulmohsen Alwuhaib Cc: questions@freebsd.org Subject: Re: fbtab file In-Reply-To: <53493378@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Abdulmohsen Alwuhaib types: > I have a question about the fbtab file > I checked the man pages and I understand the first two > fields: > /dev/ Permission > But what is the last field mean? > it is not clear in the man pages > if I wanted to add a cdrom or a sound card for > example: > /dev/acd0c 555 /? > /dev/sndstat ??? /??/?? > can I have an example of how to use it? > thank you Your examples are backwards. Here's a cut from mine: # login on perm devices /dev/ttyv0 0600 /dev/console /dev/ttyv0 0600 /dev/pass5 # aka /dev/scanner /dev/ttyv0 0600 /dev/cd0c:/dev/cd1c # cdrom drives /dev/ttyv0 0600 /dev/fd0:/dev/fd0c # and the floppy, of course. /dev/ttyv0 0600 /dev/da3s1 # The smartmedia reader Basically, these all do the same thing: if someone logs into /dev/ttyv0 - the first virtual terminal - it changes the ownership of the list under devices to them, and makes the mode 0600. That includes both cdrom drives /dev/cd0c & /dev/cd1c and both the raw floppy and the partition for mounting unix file systems on it. This could all be done on one line, but I prefer sorting things out by function so I can comment the function in question. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message