From owner-freebsd-questions@FreeBSD.ORG Fri Feb 14 07:45:37 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 87E7E6DE for ; Fri, 14 Feb 2014 07:45:37 +0000 (UTC) Received: from mailrelay4.qsc.de (mailrelay4.qsc.de [195.158.160.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E8D641930 for ; Fri, 14 Feb 2014 07:45:36 +0000 (UTC) Received: from mx01.qsc.de ([213.148.129.14]) by mailgate4.qsc.de; Fri, 14 Feb 2014 08:45:32 +0100 Received: from r56.edvax.de (port-92-195-112-109.dynamic.qsc.de [92.195.112.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 064113CB1F; Fri, 14 Feb 2014 08:45:32 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s1E7j9Lq001929; Fri, 14 Feb 2014 08:45:09 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 14 Feb 2014 08:45:09 +0100 From: Polytropon To: B J Subject: Re: Can't Mount USB Drive As User Under FreeBSD 10 Message-Id: <20140214084509.ee5a0b1b.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailgate4 with 3C8291490001 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=, IP=213.148.129.14 X-cloud-security: scantime:.2444 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 07:45:37 -0000 On Fri, 14 Feb 2014 04:39:46 +0000, B J wrote: > I've had problems configuring the machine to mount external USB > drives. I can mount USB thumb drives when logged in as root using: > > mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/root > > after creating the directory /mnt/root. Make sure the user who wants to perform the mount operation has sufficient rights, which is that he has +rw for the device file and he is the owner of the mount point directory. > It appears that external USB hard drives will automatically mount on > the desktop while I'm operating as root as well. You should not operate a desktop as root. :-) > If I try the "mount -t msdosfs" command for a USB thumb drive while > running as a user, I get an "operation not permitted" error. External > hard drives won't mount at all. Correct. USB thumb drives and USB external hard disks are the same kind of device to the OS. > I followed the steps given in section 18.5 of the handbook > and I even modified: > > /usr/local/etc/PolicyKit/PolicyKit.conf > > in accordance with Step 2, Section 3 of: > > http://www.freebsd.org/gnome/docs/halfaq.html#q3 > > Nothing seems to work. What did I do wrong? Did I miss something? Probably. 18.5.2. instructs you to put "vfs.usermount=1" into the /etc/sysctl.conf configuration file. I assume this is the important step you've been missing. Also see the instructions about "operator" group membership and additional tuning of /etc/devfs.rules in the same chapter. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...