From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 21:46:23 2004 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 204CB16A4CE for ; Sat, 3 Jan 2004 21:46:23 -0800 (PST) Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.91.148.154]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AA3C43D48 for ; Sat, 3 Jan 2004 21:46:20 -0800 (PST) (envelope-from tmclaugh@sdf.lonestar.org) Received: (qmail 2892 invoked from network); 4 Jan 2004 05:46:59 -0000 Received: from unknown (HELO ?192.168.1.128?) (192.168.1.128) by 192.168.1.129 with SMTP; 4 Jan 2004 05:46:59 -0000 From: Tom McLaughlin To: Stacey Roberts In-Reply-To: <20040104011313.GJ6131@crom.vickiandstacey.com> References: <20040104005352.GI6131@crom.vickiandstacey.com> <20040104005929.GA70684@madras.dyndns.org> <20040104011313.GJ6131@crom.vickiandstacey.com> Content-Type: text/plain Message-Id: <1073195295.318.14.camel@compass> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 04 Jan 2004 00:48:15 -0500 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? 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: Sun, 04 Jan 2004 05:46:23 -0000 On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > Hello, > Thanks for the reply.., > > ----- Original Message ----- > From: "Gautam Gopalakrishnan " > To: To Stacey Roberts > Date: Sun, 04 Jan, 2004 00:59 GMT > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > On Sun, Jan 04, 2004 at 12:53:52AM +0000, Stacey Roberts wrote: > > > Hello, > > > As root I can mount and read the CD fine.., checking for non-root user: > > > exit > > > ~ $ mount /cdrom > > > cd9660: /dev/acd0c: Operation not permitted > > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom > > > cd9660: /dev/acd0c: Operation not permitted > > > ~ $ > > > > > > Attempting to mount to mount-point in user home dir: > > > ~ $ cd ~ > > > ~ $ pwd > > > /home/stacey > > > ~ $ ls -ltra cdrom > > > total 6 > > > drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./ > > > drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../ > > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom > > > cd9660: /dev/acd0c: Operation not permitted > > > ~ $ > > > > chmod +s /sbin/umount /sbin/mount > > > > works fine for me (without any other changes necessary). Don't know > > if it's the recommended procedure though. > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., Given that the HandBook provides what I thought would have been straight-forward instructions on what (presumably) is I hoped is a simple procedure.., I'd not want to start making undocumented config changes. > > Thanks all the same for taking the time to respond. > > Regards, > > Stacey > > > Gautam > > Stacey, what are permissions of /dev/acd0c? The handbook example changes the permissions of a SCSI cdrom. I made the mistake of not noticing this when I first tried to do make my cdrom user mountable. Tom