From owner-freebsd-questions@FreeBSD.ORG Sun Oct 2 18:04:53 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 2B01316A41F for ; Sun, 2 Oct 2005 18:04:53 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 925CA43D46 for ; Sun, 2 Oct 2005 18:04:51 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id BBE1E5C9B; Sun, 2 Oct 2005 20:04:50 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08902-01; Sun, 2 Oct 2005 20:04:48 +0200 (CEST) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 1EA235C98; Sun, 2 Oct 2005 20:04:48 +0200 (CEST) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Sun, 2 Oct 2005 20:04:48 +0200 (CEST) Message-ID: <51844.192.168.1.20.1128276288.squirrel@webmail.thilelli.net> In-Reply-To: <200510021402.03282.nb_root@videotron.ca> References: <200510021402.03282.nb_root@videotron.ca> Date: Sun, 2 Oct 2005 20:04:48 +0200 (CEST) From: "Julien Gabel" To: "Nicolas Blais" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: freebsd-questions@freebsd.org Subject: Re: device permission in devfs.conf not working. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2005 18:04:53 -0000 > 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 work > 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? The correct way to do things with pluggable devices is to use the devfs.rules(5) configuration file. -- -jpeg.