Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 16:29:14 -0500
From:      Mike Meyer <mwm-dated-1050269355.841ea4@mired.org>
To:        "Randy Grafton" <rgrafton@indatacorp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: fbtab and cdrom
Message-ID:  <16019.16170.409151.224235@guru.mired.org>
In-Reply-To: <000b01c2fedd$2a46dd70$7764a8c0@ITDept>
References:  <000b01c2fedd$2a46dd70$7764a8c0@ITDept>

next in thread | previous in thread | raw e-mail | index | archive | help
In <000b01c2fedd$2a46dd70$7764a8c0@ITDept>, Randy Grafton <rgrafton@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@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.



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