From owner-freebsd-stable@FreeBSD.ORG Wed Feb 8 20:03:43 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F08D916A420 for ; Wed, 8 Feb 2006 20:03:43 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCFBF43D4C for ; Wed, 8 Feb 2006 20:03:42 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (nmrgri@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k18K3ZNT077078 for ; Wed, 8 Feb 2006 21:03:40 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k18K3ZQJ077077; Wed, 8 Feb 2006 21:03:35 +0100 (CET) (envelope-from olli) Date: Wed, 8 Feb 2006 21:03:35 +0100 (CET) Message-Id: <200602082003.k18K3ZQJ077077@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 08 Feb 2006 21:03:40 +0100 (CET) Cc: Subject: Re: Trouble with mounting USB stick as user X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2006 20:03:44 -0000 martinko 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