From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 01:07:53 2003 Return-Path: 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 A684116A4CE for ; Wed, 31 Dec 2003 01:07:53 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BA9E43D3F for ; Wed, 31 Dec 2003 01:07:52 -0800 (PST) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by heron.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1AbcKS-0001R2-00; Wed, 31 Dec 2003 01:07:48 -0800 From: "Andrew L. Gould" To: Dany , freebsd-questions@freebsd.org Date: Wed, 31 Dec 2003 03:08:36 -0600 User-Agent: KMail/1.5.4 References: <3FF2612A.6050903@natzo.com> In-Reply-To: <3FF2612A.6050903@natzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200312310308.36294.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b8e4f779866cc4de824b7d0d6e4881e9e350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Subject: Re: Mounting CDROM as user under 5.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 09:07:53 -0000 On Tuesday 30 December 2003 11:39 pm, Dany wrote: > Hello, > > Because I didn't get any response on BSDforums, I've decided to try my > chance here. > > I'm trying to get my single user (belonging to the wheel group) mounting > a CD drive under 5.x using devfs (5.2RC2). > Could somebody post a very simple howto showing the files to modify ? Tha= nx > > So far I've tried the following things without success : > > mkdir /home/username/mount/cdrom > chown username /home/username/mount/cdrom > chmod 755 /home/username/mount/cdrom > > added the following to /etc/sysctl.conf > vfs.usermount=3D1 > > added the following to /dev/devfs.conf > link acd0 cdrom > perm acd0 0660 > > added /etc/devfs.rules with > [my_ruleset=3D10] > add path 'acd*' mode 660 > > added the following to /etc/rc.conf > devfs_system_ruleset=3D"my_ruleset" > > /dev/cdrom now shows up and root can use it to play a DVD for example > but user cannot use it either directly (/dev/cdrom) or when trying to > mount a CD (mount_cd9660 /dev/cdrom /home/username/mount/cdrom) .. the > result is =93Operation not permitted=94 > > Thank you > Dany All I do for my user that's a member of wheel under FreeBSD 4.* is: chmod u+s /sbin/*mount Does this not work in FreeBSD 5.*? Andrew Gould