From owner-freebsd-questions@FreeBSD.ORG Thu Oct 26 00:21:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFD3216A415 for ; Thu, 26 Oct 2006 00:21:09 +0000 (UTC) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67A7343D46 for ; Thu, 26 Oct 2006 00:21:09 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([24.202.77.103]) by VL-MO-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J7P00ET9VN8IH00@VL-MO-MR002.ip.videotron.ca> for freebsd-questions@freebsd.org; Wed, 25 Oct 2006 20:21:08 -0400 (EDT) Date: Wed, 25 Oct 2006 20:21:02 -0400 From: Nicolas Blais In-reply-to: <200610251918.41383.lane@joeandlane.com> To: freebsd-questions@freebsd.org Message-id: <200610252021.07073.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart10201586.1VOkSirNiM; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200610251918.41383.lane@joeandlane.com> User-Agent: KMail/1.9.4 Cc: Lane Subject: Re: "User" mount of usb "key" drive ... question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2006 00:21:10 -0000 --nextPart10201586.1VOkSirNiM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 25 October 2006 20:18, Lane wrote: > I guess I don't know how to ask google and "man fstab" the correct way ... > > How can I grant a non-root user the authority to mount (and then write to) > a usb "key" drive? Especially when said user is already "up in" kde? > > The drive works fine if "root" mounts it, but I'd rather not be root when= I > do this on my laptop. And opening a konsole window, "su"ing and then > mounting , is cumbersome. > > I've been looking at "man devfs.rules," as this seems to be near the place > I want to be. But I haven't quite fingered out a way... > > Ya'll don't gotta just tell me the answer, if you don't want. I'm a "man" > man, so to speak. I'm eager to look it up myself, only I don't rightly > know whereinaheck to look. > > Thanks, > > lane In /etc/devfs.rules I have: [devfsrules_local=3D15] add path 'da*' mode 0777 and in /etc/rc.conf I have: devfs_system_ruleset=3D"devfsrules_local" and in /etc/fstab: #user mounts for umass devices /dev/da0s1 /home/myhome/usbdrive msdosfs rw,noauto 0 0 and it works in KDE. =2D-=20 =46reeBSD 7.0-CURRENT #1: Sat Oct 7 15:11:02 EDT 2006 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart10201586.1VOkSirNiM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFP/9z4wTBlvcsbJURAtmhAJ9JjO8RRk8C+3SCPkoKV2L63KDQpgCgqz0U jqKLOuh6LGKHA4fVZkQARP0= =kGxM -----END PGP SIGNATURE----- --nextPart10201586.1VOkSirNiM--