From owner-freebsd-stable@FreeBSD.ORG Tue Nov 8 20:54:50 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86C1216A420 for ; Tue, 8 Nov 2005 20:54:50 +0000 (GMT) (envelope-from andyfraser@gmail.com) Received: from mail.linuxuser.org.uk (213-152-59-115.dsl.eclipse.net.uk [213.152.59.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0A1E43D46 for ; Tue, 8 Nov 2005 20:54:49 +0000 (GMT) (envelope-from andyfraser@gmail.com) Received: from localhost (mantis.linuxuser.org.uk [127.0.0.1]) by mail.linuxuser.org.uk (Postfix) with ESMTP id EA2022075A for ; Tue, 8 Nov 2005 20:54:47 +0000 (GMT) Received: from mail.linuxuser.org.uk ([127.0.0.1]) by localhost (mantis.linuxuser.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10335-02 for ; Tue, 8 Nov 2005 20:54:42 +0000 (GMT) Received: from wasp.linuxuser.org.uk (wasp.linuxuser.org.uk [192.168.0.10]) by mail.linuxuser.org.uk (Postfix) with ESMTP id A96AC20528 for ; Tue, 8 Nov 2005 20:54:42 +0000 (GMT) From: Andy Fraser To: freebsd-stable@freebsd.org Date: Tue, 8 Nov 2005 20:54:41 +0000 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511082054.42113.andyfraser@gmail.com> X-Virus-Scanned: by amavisd-new (Gentoo) at linuxuser.org.uk Subject: USB Card Reader Permissions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 20:54:50 -0000 Hi, I was wondering if someone could tell me how to set the permissions for a USB card reader when it's plugged in? I've been Googling for hours and found nothing concrete so far although I'll keep looking. So far I have this situation: I plug in the card reader and device nodes are created (e.g. /dev/da0s1, /dev/da1s1 etc). I can mount this as root and if I manually set the permissions I can mount it as my user too. What I can't work out is how to change the permissions when I plug it in so I can just use the reader as my user. I've read the man pages for devfs, devfs.conf and devfs.rules. devfs.rules looks like what I need but I can't work out what I actually need to do or how to test a rule without rebooting. I'm using FreeBSD 6.0-STABLE. Thanks in advance to anyone who can help. -- Andy.