From owner-freebsd-questions@FreeBSD.ORG Sun Oct 2 18:12:15 2005 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 6FBEF16A41F for ; Sun, 2 Oct 2005 18:12:15 +0000 (GMT) (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 1B5D343D46 for ; Sun, 2 Oct 2005 18:12:14 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0INQ00M6YVWE4DF1@VL-MO-MR002.ip.videotron.ca> for freebsd-questions@freebsd.org; Sun, 02 Oct 2005 14:12:14 -0400 (EDT) Date: Sun, 02 Oct 2005 14:12:08 -0400 From: Nicolas Blais In-reply-to: <434021D9.6090605@ywave.com> To: freebsd-questions@freebsd.org Message-id: <200510021412.08684.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1432750.MCe82mP5SW; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200510021402.03282.nb_root@videotron.ca> <434021D9.6090605@ywave.com> User-Agent: KMail/1.8.2 Cc: Micah Subject: Re: device permission in devfs.conf not working 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: Sun, 02 Oct 2005 18:12:15 -0000 --nextPart1432750.MCe82mP5SW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On October 2, 2005 02:07 pm, Micah wrote: > Nicolas Blais wrote: > > Hi, > > > > I want to be able to use usb drives as a normal user so I added the line > > : > > > > perm da0 0777 > > in /etc/devfs.conf > > > > But when I plug in the device, da0 and da0s1 is created with default > > permission : > > > > [nicblais] /dev> ll da* > > crw-r----- 1 root operator 0, 148 Oct 2 13:53 da0 > > crw-r----- 1 root operator 0, 149 Oct 2 13:53 da0s1 > > > > Although I can mount it fine as root, I have to chmod 777 to make it wo= rk > > for other users. > > > > [nicblais] /dev# chmod 777 da0* > > [nicblais] /dev# ll da* > > crwxrwxrwx 1 root operator 0, 148 Oct 2 13:53 da0* > > crwxrwxrwx 1 root operator 0, 149 Oct 2 13:53 da0s1* > > > > I'm assuming it would work if I left the usb drive plugged in while > > booting but that kinda defeats the purpose of a portable storage media. > > Is my entry in /etc/devfs.conf not correct? > > > > Any help appreciated, > > Nicolas. > > Add a something like this to devfs.rules > [system=3D10] > add path 'da*' mode 0660 group media > > Here I relax access to just the media group, but you could obviously > just use something like "add path 'da*' mode 0777". > > Micah Thanks that worked! =2D-=20 =46reeBSD 7.0-CURRENT #0: Sat Oct 1 11:51:38 EDT 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://66.130.198.54:8081/security/nb_root.asc --nextPart1432750.MCe82mP5SW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDQCL4z38ton5LGeIRAukhAKCOPYmxW/DAabfau48CI1Vo00z1lQCfW/k0 my00RLdFeqw+vvmq+k55Mig= =fZJ7 -----END PGP SIGNATURE----- --nextPart1432750.MCe82mP5SW--