Trouble with mounting USB stick as user

Oliver Fromme olli at lurza.secnetix.de
Wed Feb 8 12:03:44 PST 2006


martinko <martinkov at pobox.sk> wrote:
 > Oliver Fromme wrote:
 > > martinko wrote:
 > > > Oliver Fromme wrote:
 > > > > 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).
 > > > 
 > > > [...]
 > > > $ ll /dev/ad0
 > > > crw-r-----  1 root  operator    0,  96 Feb  8 18:27 /dev/ad0
 > > 
 > > Condition #2 isn't met:  The device must be "rw" for for
 > > the user (in this case for the operator group).  Note
 > > that "r" is not sufficient, even for read-only mounts.
 > 
 > sure. but why did it mount /usr/home/mato/mnt/dos then ??

Maybe /dev/ad0s1 had different permissions?

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.

"One of the main causes of the fall of the Roman Empire was that,
lacking zero, they had no way to indicate successful termination
of their C programs."
        -- Robert Firth


More information about the freebsd-stable mailing list