From owner-cvs-all Thu Dec 31 19:49:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA26057 for cvs-all-outgoing; Thu, 31 Dec 1998 19:49:56 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA26051 for ; Thu, 31 Dec 1998 19:49:52 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (peter@localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Netplex) with ESMTP id LAA94480; Fri, 1 Jan 1999 11:49:09 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199901010349.LAA94480@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo cc: bde@zeta.org.au (Bruce Evans), committers@FreeBSD.ORG Subject: Re: can i add /usr/bin/pcmio ? In-reply-to: Your message of "Thu, 31 Dec 1998 11:18:43 +0100." <199812311018.LAA20069@labinfo.iet.unipi.it> Date: Fri, 01 Jan 1999 11:49:06 +0800 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Luigi Rizzo wrote: > > >of it. (Plus it is my idea that whenever possible, all devices > > >should have in the base system a simple control utility for testing > > >etc.) > > > > These utilities are usually named /usr/sbin/foocontrol or /sbin/foocontrol. > > BTW: there are two spppcontrol... the one in /usr/sbin is apparently > a dynamically-linked version of the one in /sbin > > luigi Some general guidelines: / vs /usr : If the control program is (or might be) needed in order to get /usr mounted (including over nfs etc), then it should be in / bin vs sbin : There are a number of interpretations, but generally things that are superuser only or only generally useable by the sysadmin should go in sbin instead of bin. So, things that do ioctl's on devices that require root privs go in sbin, otherwise they just clutter up people's $PATH's. Since pcmio is hardly going to be needed to boot the system and get /usr online, then it's /usr. If any user can use it, then it goes in /usr/bin. If it's a superuser only thing, then /usr/sbin. I guess this depends a bit on what the default permissions are on the device... If it is likely to be chmod'ed to allow global access to the audio device, then I'd be tempted to go for /usr/bin.. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message