From owner-freebsd-questions Fri Oct 27 16:56:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 3122A37B479 for ; Fri, 27 Oct 2000 16:56:43 -0700 (PDT) Received: (qmail 66564 invoked by uid 100); 27 Oct 2000 23:56:42 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14842.5689.977751.898819@guru.mired.org> Date: Fri, 27 Oct 2000 18:56:41 -0500 (CDT) To: Eric Jacoboni Cc: questions@FreeBSD.ORG Subject: Re: Mounting CD-Roms as a normal user In-Reply-To: <871yx2c7p2.fsf@titine.fr.eu.org> References: <14839.12558.199454.322077@guru.mired.org> <871yx2c7p2.fsf@titine.fr.eu.org> X-Mailer: VM 6.75 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 Eric Jacoboni writes: > >>>>> "Mike" == Mike Meyer writes: > Mike> Not quite. You can set vfs.usermount to 1 (i.e. - as root, "sysctl -w > Mike> vfs.usermount=1") to let users mount devices - provided the device and > Mike> directory permissions allow it, and with no suid on the device. The > Mike> correct way to arrange for that to be set at boot is to add the line > Mike> "vfs.usermount=1" to /etc/sysctl.conf, possibly creating it in the > Mike> process. > I'm using FBSD 4.1.1-S and I've tried to do so and never succeeded, > even by "opening to the world" all the relevant directories and > devices : I wasn't quite clear enough, but the FAQ entry is. The mount point (the directory) "permissions that allow it" are that it be owned by the user who is doing the mounting. > % ls -ld /cdrom > drwxrwxrwx 2 root wheel 512 13 mai 1999 /cdrom That's owned by root. World read/writable isn't enough for the directory (though it's required for the device); the mount point has to be owned by the user who's going to mount it.