From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 02:13:43 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 18A4D16A4CE for ; Wed, 31 Dec 2003 02:13:43 -0800 (PST) Received: from mail-in.m-online.net (svr8.m-online.net [62.245.150.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id BED0C43D46 for ; Wed, 31 Dec 2003 02:13:40 -0800 (PST) (envelope-from h@schmalzbauer.de) Received: from mail.m-online.net (svr14.m-online.net [192.168.3.144]) by svr8.m-online.net (Postfix) with ESMTP id 7B9B34C7C; Wed, 31 Dec 2003 11:13:39 +0100 (CET) Received: from cale.flintsbach.schmalzbauer.de (ppp-62-245-161-209.mnet-online.de [62.245.161.209]) by mail.m-online.net (Postfix) with ESMTP id 307DA2F08A; Wed, 31 Dec 2003 11:13:39 +0100 (CET) From: Harald Schmalzbauer To: "Andrew L. Gould" , Dany , freebsd-questions@freebsd.org Date: Wed, 31 Dec 2003 11:13:29 +0100 User-Agent: KMail/1.5.4 References: <3FF2612A.6050903@natzo.com> <200312310308.36294.algould@datawok.com> In-Reply-To: <200312310308.36294.algould@datawok.com> X-Birthday: 06 Oktober 1972 X-Name: Harald Schmalzbauer X-Phone1: +49 (0) 163 555 3237 X-Phone2: +49 (0) 89 18947781 X-Address: Munich, 80686 X-Country: Germany MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_SFq8/3qCYfMVIli"; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200312311113.38233@harrymail> 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 10:13:43 -0000 --Boundary-02=_SFq8/3qCYfMVIli Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Wednesday 31 December 2003 10:08, Andrew L. Gould wrote: > 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 ? > > Thanx > > > > 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.*? No, 5 has devfs. Dany, make sure you have CD9660 compiled into the kernel, normal user aren'= t=20 allowed to load kernel modules. Also securemode should net be set. And the mountpoint should be owned by the user (which is in your case I thi= nk=20 since its under $home). I had the same problem and it was simply the missing CD9660 bits in the ker= nel =2DHarry > > Andrew Gould > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --Boundary-02=_SFq8/3qCYfMVIli Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/8qFSBylq0S4AzzwRAtvHAJ49LAnj/GDzpxf1LSVctWrXJG3PjACffGw/ pfOGeNVF59PgVAkJfOILYME= =n0rx -----END PGP SIGNATURE----- --Boundary-02=_SFq8/3qCYfMVIli--