From owner-freebsd-stable@FreeBSD.ORG Wed Feb 8 13:27:19 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 5E50D16A420 for ; Wed, 8 Feb 2006 13:27:19 +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 AC6D443D46 for ; Wed, 8 Feb 2006 13:27:18 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wdixgp@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k18DRCnZ061981 for ; Wed, 8 Feb 2006 14:27:17 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k18DRCY2061980; Wed, 8 Feb 2006 14:27:12 +0100 (CET) (envelope-from olli) Date: Wed, 8 Feb 2006 14:27:12 +0100 (CET) Message-Id: <200602081327.k18DRCY2061980@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <20060208064637.11c015ee.lists@elehack.net> 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 14:27:17 +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 13:27:19 -0000 Michael Ekstrand wrote: > Rob 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