From owner-freebsd-fs@FreeBSD.ORG Mon Jan 31 15:52:15 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE1516A4CE for ; Mon, 31 Jan 2005 15:52:15 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CA7543D39 for ; Mon, 31 Jan 2005 15:52:14 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j0VFqCKM009772; Mon, 31 Jan 2005 18:52:12 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Mon, 31 Jan 2005 18:52:12 +0300 (MSK) From: Maxim Konovalov To: Stan Sorochan In-Reply-To: <25212.1107184908@www21.gmx.net> Message-ID: <20050131185131.S8282@mp2.macomnet.net> References: <25212.1107184908@www21.gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Info: Profile: Formal (206/050130) X-SpamTest-Info: Profile: Detect Hard (4/030526) X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking - Keywords (2/030321) X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0124], SpamtestISP/Release cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removable media? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 15:52:15 -0000 On Mon, 31 Jan 2005, 16:21+0100, Stan Sorochan wrote: > Hi everyone! > > I am running FreeBSD 5.2 on a PIV machine > > What I need to do is let ordinary users mount removable media (CD's, > floppies, flash cards, digicams, etc) > > So I went ahead and done the following steps: > > enabled vfs.usermount (i've checked it - after reboot I do this: > # sysctl -a | grep vfs.usermount > and get > vfs.usermount=1 > > then I've added the following groups to my group file and added myself to > them: > usb, floppy, cdrom. their GID's are all above 1001 > > then I've added the following to my /etc/devfs.conf: > > own acd0 root:cdrom > perm acd0 0660 > > own fd0 root:floppy > perm fd0 0660 > > **************************************************************** > ***After all of the above I can mount a CD without doing a su*** > **************************************************************** > > Then I've created a /etc/devfs.rules and put the following lines into it: > > [fetbox_usb=10] > add path 'da*s*' mode 0660 group usb > > and I've added the follwing line to my /etc/rc.conf: > > devfs_system_ruleset="fetbox_usb" > > so that my rule was loaded at boot time > > but I still cannot mount stuff on the USB port. > > If I check the permission rights for my da* device, everything seems OK, the > device gets assigned the correct gid and rights. > > What am I missing? How can I make my USB devices accessible without SU??? /dev/xpt0? -- Maxim Konovalov