Date: Fri, 27 Oct 2000 18:56:41 -0500 (CDT) From: Mike Meyer <mwm@mired.org> To: Eric Jacoboni <jaco@teaser.fr> Cc: questions@FreeBSD.ORG Subject: Re: Mounting CD-Roms as a normal user Message-ID: <14842.5689.977751.898819@guru.mired.org> In-Reply-To: <871yx2c7p2.fsf@titine.fr.eu.org> References: <14839.12558.199454.322077@guru.mired.org> <871yx2c7p2.fsf@titine.fr.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Jacoboni writes: > >>>>> "Mike" == Mike Meyer <mwm@mired.org> 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. <mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14842.5689.977751.898819>