From owner-freebsd-questions Mon Aug 14 11:16:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom3-092.telepath.com [216.14.3.92]) by hub.freebsd.org (Postfix) with SMTP id 66DA637BB30 for ; Mon, 14 Aug 2000 11:16:08 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 12352 invoked by uid 100); 14 Aug 2000 18:15:29 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14744.14145.199363.850926@guru.mired.org> Date: Mon, 14 Aug 2000 13:15:29 -0500 (CDT) To: Jan Pfeifer Cc: questions@freebsd.org Subject: allow users to mount CD In-Reply-To: <51682104@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" 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 X-Loop: FreeBSD.ORG Jan Pfeifer writes: > How do I let users mount a CD, or any other mount point ? This question was answered just last week. Basically, you add "vfs.usermount=1" to /etc/sysctl.conf (creating it if you need to), chmod the cd devices to mode 660, put the users you want to be able to mount things in group operator (which owns the CD devices by default; fix that or use the group that owns them instead if this isn't the case), then reboot the system. Users in group operator can then mount cds on directories *they* own. > ps2.: I wanted to avoid to make a suid script to do this ... Suid scripts are a very bad idea, so that's a good thing to avoid. If the above doesn't work, make it a C program instead of a script.