fbtab and cdrom
Mike Meyer
mwm-dated-1050269355.841ea4 at mired.org
Tue Apr 8 14:29:17 PDT 2003
In <000b01c2fedd$2a46dd70$7764a8c0 at ITDept>, Randy Grafton <rgrafton at indatacorp.com> typed:
> I've just installed 4.8 and am having some trouble with non-root users
> mounting cdroms. I have following entries in /etc/fbtab:
[...]
> My goal is that a non-root user can log in to the console and execute a
> script that mounts the cdrom, copies its contents to a folder on the system
> and then unmounts the cdrom.
> Any and all help is appreciated.
Normal users are - by default - not permitted to mount file
systems. Anyone who can mount a file system can get a root shell.
To enable this, you need to do:
# sysctl vfs.usermount=1
Add a "vfs.usermount=1" line to /etc/sysctl.conf to get this done at
automatically at boot time.
See the FAQ at <URL:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT
> for more information.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
More information about the freebsd-questions
mailing list