From owner-freebsd-questions Fri Oct 27 14:11: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from postfix1.free.fr (postfix1.free.fr [212.27.32.21]) by hub.freebsd.org (Postfix) with ESMTP id 55B9737B479 for ; Fri, 27 Oct 2000 14:10:59 -0700 (PDT) Received: from titine.fr.eu.org (toulouse-1-52-40.dial.proxad.net [213.228.52.40]) by postfix1.free.fr (Postfix) with ESMTP id 1960B28028; Fri, 27 Oct 2000 23:10:54 +0200 (MEST) Received: by titine.fr.eu.org (Postfix, from userid 1000) id 042D43A229; Fri, 27 Oct 2000 23:09:29 +0200 (CEST) X-Attribution: Jaco To: Mike Meyer Cc: questions@FreeBSD.ORG Subject: Re: Mounting CD-Roms as a normal user References: <14839.12558.199454.322077@guru.mired.org> From: Eric Jacoboni Date: 27 Oct 2000 23:09:29 +0200 In-Reply-To: Mike Meyer's message of "Wed, 25 Oct 2000 14:14:22 -0500 (CDT)" Message-ID: <871yx2c7p2.fsf@titine.fr.eu.org> Lines: 42 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "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 : % /sbin/sysctl vfs.usermount vfs.usermount: 1 % ls -ld /cdrom drwxrwxrwx 2 root wheel 512 13 mai 1999 /cdrom % ls -l /sbin/mount -r-xr-xr-x 1 root wheel 184128 21 oct 23:57 /sbin/mount (all the /sbin/mount* have the same permissions) % ls -l /dev/acd0c crw-rw-rw- 1 root operator 117, 2 10 mar 2000 /dev/acd0c % grep cdrom /etc/fstab /dev/acd0c /cdrom cd9660 ro,noauto 0 0 % /sbin/mount /cdrom cd9660: Operation not permitted % mount /cdrom % The last command runs ok as it's a sudo script. I still don't understand why the sysctl method doesn't run... -- Éric Jacoboni, né il y a 1276045603 secondes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message