Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2006 14:27:12 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Trouble with mounting USB stick as user
Message-ID:  <200602081327.k18DRCY2061980@lurza.secnetix.de>
In-Reply-To: <20060208064637.11c015ee.lists@elehack.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Ekstrand <lists@elehack.net> wrote:
 > Rob <rbyrnes@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



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