Trouble with mounting USB stick as user
Oliver Fromme
olli at lurza.secnetix.de
Wed Feb 8 05:27:19 PST 2006
Michael Ekstrand <lists at elehack.net> wrote:
> Rob <rbyrnes at mailshack.com> wrote:
> > Can anyone shed some light on what is happening here?
>
> AFAIK, only root can mount things under FreeBSD, period. I could be
> wrong on this...
You are wrong. :-)
> but I looked around a while ago for something to do
> the job of the Linux 'user' option, and found nothing. I kinda remember
> trying changing permissions too.
>
> If I'm wrong, I'd love to be corrected :-).
You're welcome. :-)
To enable user mounts, there are three conditions:
1. sysctl vfs.usermount=1
2. The user must have read+write permission on the device
which is to be mounted. This is usually accomplished
by creating a special group for this device.
3. The user must _own_ the mountpoint (r/w permission is
not sufficient).
Of course, an alternative is to use sudo (ports/security/sudo)
or super (ports/security/super, which prefer).
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"With sufficient thrust, pigs fly just fine. However, this
is not necessarily a good idea. It is hard to be sure where
they are going to land, and it could be dangerous sitting
under them as they fly overhead." -- RFC 1925
More information about the freebsd-stable
mailing list