From owner-freebsd-questions@FreeBSD.ORG Sun Oct 2 18:07:24 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 79C4316A41F for ; Sun, 2 Oct 2005 18:07:24 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from smtpout1.ywave.com (ycomradius.yelmtel.com [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 1930E43D48 for ; Sun, 2 Oct 2005 18:07:23 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: (qmail 19615 invoked by uid 502); 2 Oct 2005 18:07:22 -0000 Received: from dsl28163.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.163) by 0 with SMTP; 2 Oct 2005 18:07:22 -0000 X-CLIENT-IP: 216.227.115.163 X-CLIENT-HOST: dsl28163.ywave.com Message-ID: <434021D9.6090605@ywave.com> Date: Sun, 02 Oct 2005 11:07:21 -0700 From: Micah User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas Blais References: <200510021402.03282.nb_root@videotron.ca> In-Reply-To: <200510021402.03282.nb_root@videotron.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2005 18:07:24 -0000 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 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? > > Any help appreciated, > Nicolas. Add a something like this to devfs.rules [system=10] 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