From owner-freebsd-questions Thu Jul 18 14:20:24 2002 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 1204137B401 for ; Thu, 18 Jul 2002 14:20:15 -0700 (PDT) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id A043F43E58 for ; Thu, 18 Jul 2002 14:20:14 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: from vectors.cx (8a90095c3b56197007d4393669a14b0e@localhost [127.0.0.1]) by vectors.cx (8.12.4/8.12.4) with ESMTP id g6ILKR2e040684; Thu, 18 Jul 2002 14:20:27 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.4/8.12.4/Submit) id g6ILKQuM040683; Thu, 18 Jul 2002 14:20:26 -0700 (PDT) (envelope-from monkey) Date: Thu, 18 Jul 2002 14:20:26 -0700 From: Adam Weinberger To: Steve Mazerski Cc: questions@freebsd.org Subject: Re: /cdrom for normal users? Message-ID: <20020718212026.GB32643@vectors.cx> Mail-Followup-To: Adam Weinberger , Steve Mazerski , questions@freebsd.org References: <3D386AED1B47D411A94300508B11F18703BC5BCF@fmsmsx116.fm.intel.com> <20020718180952.GA10283@catflap.home.slightlystrange.org> <200207182054.07296.smazerski@yahoo.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207182054.07296.smazerski@yahoo.co.jp> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG there is no such parameter passable to mount called "users". it needs to be removed. if you can mount it from the command line, you should make the fstab line agree with it, and i see no reason why it wouldn't then work. keep in mind that in your fstab, you are attempting to mount the CDROM onto /cdrom. on the command-line, you mounted it onto ~/cdrom. does localuser have permissions on /cdrom? what are those permissions right now? so, in fstab: /dev/acd0c /home/localuser/cdrom cd9660 ro,noauto 0 0 should work fine. change permissions on /cdrom and i'd assume: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 should work fine. -Adam >> (07.18.2002 @ 1154 PST): Steve Mazerski said, in 2.1K: << > On Thursday 18 July 2002 20:09, Daniel Bye wrote: > > On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote: > > > By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You > > > can make it mountable by normal users by changing the /etc/fstab entry to > > > users,ro,noauto > > > > > > /dev/acd0c /cdrom cd9660 users,ro,noauto 0 > > > 0 > > > > Hmm, just edited my /etc/fstab to look like this, and I get a different > > message: > > > > cd9660: -o users: option not supported > > That's what I got when I borrowed the relevent line from my Linux > /etc/fstab. Being a hopeless beginner I presumed this was a naive > error on my part and discretely forgot to mention it. > > > However, google brought me this: > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPY > >MOUNT > > Thanks, but been there, done that (see my original mail). > > So, what's up? At the moment things look like this? > > localuser@localhost > uname -a > FreeBSD localhost.local 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sun Jul 14 > 17:14:44 CEST 2002 root@localhost.local:/usr/src/sys/compile/KERNEL_1 > i386 > > (I recompiled the kernel for ext2fs support) > > root# sysctl -a | fgrep vfs\.usermount > vfs.usermount: 1 > > localuser@localhost > ls -ld /cdrom > drwxrwxr-x 2 root wheel 512 Jul 14 18:10 /cdrom > localuser@localhost > ls -l /dev/acd0c > crw-rw---- 4 root operator 117, 0 Jul 14 18:15 /dev/acd0c > localuser@localhost > groups > localuser wheel operator > localuser@localhost > cat /etc/fstab | fgrep cdrom > /dev/acd0c /cdrom cd9660 ro,noauto,users 0 0 > localuser@localhost > mount /cdrom > cd9660: -o users: option not supported > localuser@localhost > mount -t cd9660 /dev/acd0c ~/cdrom > localuser@localhost > ls ~/cdrom > EULA README RedHat autorun > GPL RPM-GPG-KEY TRANS.TBL > > (well, it was the first one I had to hand ;-) > > Any ideas? Just wondering... > (I may of course be overlooking something). > > S.Mazerski > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > >> end of "Re: /cdrom for normal users?" from Steve Mazerski << -- "Oh good, my dog found the chainsaw." -Lilo, "Lilo & Stitch" Adam Weinberger adam@vectors.cx http://vectors.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message