john_rambo said:
SirDice said:
You need to set the
sysctl(8) vfs.usermount to 1 to allow non-root users to mount. You will have to restart the machine after making the changes.
This is my
sysctl.conf
Code:
$ cat /etc/sysctl.conf
# $FreeBSD: release/10.0.0/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
kern.ipc.shm_allow_removed=1
vfs.usermount=1
Rebooted then tried mounting a CD using thunar. It just keeps trying. The busy sign besides the drive stays like that.
Greetings,
@john_rambo.
While it may seem counter-intuitive, not all the
sysctl() settings can be initiated through
sysctl.conf().
Some require loading the settings in
loader.conf(). So try moving
vfs.usermount=1
from
sysctl.conf to
/boot/loader.conf, and see if that doesn't fix it, for you. While I haven't checked
vfs.usermount=1
specifically. You might also be able to get away with simply performing
sysctl vfs.usermount=1
, as root, to get it immediately.
NOTE: that won't necessarily remain set after re-boots, unless you have also declared it within
/boot/loader.conf.
UPDATE: I should have also mentioned that you can determine current state of
vfs.usermount
by issuing:
sysctl vfs.usermount
--Chris