Skip site navigation (1)Skip section navigation (2)
Date:      27 Oct 2000 23:09:29 +0200
From:      Eric Jacoboni <jaco@teaser.fr>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Mounting CD-Roms as a normal user
Message-ID:  <871yx2c7p2.fsf@titine.fr.eu.org>
In-Reply-To: Mike Meyer's message of "Wed, 25 Oct 2000 14:14:22 -0500 (CDT)"
References:  <14839.12558.199454.322077@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "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 :

% /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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871yx2c7p2.fsf>