From owner-freebsd-gnome@FreeBSD.ORG Thu Oct 7 12:06:21 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99E5216A4CE for ; Thu, 7 Oct 2004 12:06:21 +0000 (GMT) Received: from sv02.webonaut.com (kirk.webonaut.com [212.41.243.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 510BD43D39 for ; Thu, 7 Oct 2004 12:06:21 +0000 (GMT) (envelope-from klammer@webonaut.com) Received: from localhost (localhost [127.0.0.1]) by sv02.webonaut.com (Postfix) with ESMTP id DB0DC76421; Thu, 7 Oct 2004 14:06:15 +0200 (CEST) Received: from sv02.webonaut.com ([127.0.0.1]) by localhost (sv02.webonaut.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58798-07; Thu, 7 Oct 2004 14:06:10 +0200 (CEST) Received: from [192.168.0.9] (sisko.webonaut.com [212.41.243.28]) by sv02.webonaut.com (Postfix) with ESMTP id 5D28F7641F; Thu, 7 Oct 2004 14:06:10 +0200 (CEST) Message-ID: <41653133.7080604@webonaut.com> Date: Thu, 07 Oct 2004 14:06:11 +0200 From: Franz Klammer User-Agent: Mozilla Thunderbird 0.8 (X11/20041211) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vova@fbsd.ru References: <41652770.8040308@webonaut.com> <1097149827.1248.29.camel@localhost> In-Reply-To: <1097149827.1248.29.camel@localhost> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at webonaut.com cc: gnome Subject: Re: gnome 2.8 Changes for FAQ: 19. How do I mount my removablemedia in Nautilus? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 12:06:21 -0000 Vladimir Grebenschikov wrote: >>3. (maybe) OT question: when i insert my memory stick the access right set >> for the device created by usbd (/dev/da0s1) don't allow access from a >> normal user. currently i helped my with a dirty trick: >> >> adding to /etc/devfs.conf: >> perm da0s1 0666 >> >> and to /etc/usbd.conf: >> device "MEGA" >> devname "umass0" >> attach "/bin/sleep 5; /etc/rc.d/devfs restart" >> >> if there is a (which i'm sure there is) a good solution that >> should also be added to the FAQ. >> > >I guess it is much better to use devfs.rules file: > >% cat /etc/devfs.rules >[devfsrules_common=7] >add path 'da*' mode 660 group operator >add path 'acd*' mode 660 group operator >add path 'cd*' mode 660 group operator >add path 'pass*' mode 660 group operator >add path 'xpt*' mode 660 group operator >% fgrep devfs /etc/rc.conf >devfs_system_ruleset="devfsrules_common" >% > >This approach configures device permission on devfs on adding drive >automatically, also with ATA-based (or any other not-USB) memory stick >there is no USB attach event. >('operator' group can be changed to 'cdrom' or like) > didn't know this. will try it later. thanks for the hint. franz.