From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 05:31:24 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 8B04216A4CF for ; Sun, 4 Jan 2004 05:31:24 -0800 (PST) Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.8.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 241AD43D41 for ; Sun, 4 Jan 2004 05:31:22 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from 82-68-31-182.dsl.in-addr.zen.co.uk ([82.68.31.182] helo=crom.vickiandstacey.com) by heisenberg.zen.co.uk with esmtp (Exim 4.22) id 1Ad8Le-0006aR-UJ; Sun, 04 Jan 2004 13:31:19 +0000 Received: from crom.vickiandstacey.com (localhost [127.0.0.1]) i04DVBCi060593; Sun, 4 Jan 2004 13:31:16 GMT (envelope-from stacey@crom.vickiandstacey.com) Received: (from stacey@localhost) by crom.vickiandstacey.com (8.12.10/8.12.10/Submit) id i04DV6n8060592; Sun, 4 Jan 2004 13:31:06 GMT (envelope-from stacey) Date: Sun, 4 Jan 2004 13:31:06 +0000 From: Stacey Roberts To: Tom McLaughlin Message-ID: <20040104133106.GN6131@crom.vickiandstacey.com> References: <20040104005352.GI6131@crom.vickiandstacey.com> <20040104005929.GA70684@madras.dyndns.org> <20040104011313.GJ6131@crom.vickiandstacey.com> <1073195295.318.14.camel@compass> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="AGBBLMjITsWHeOTZ" Content-Disposition: inline In-Reply-To: <1073195295.318.14.camel@compass> User-Agent: Mutt/1.4.1i X-Originating-Heisenberg-IP: [82.68.31.182] cc: freebsd-questions@freebsd.org cc: Stacey Roberts 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 13:31:24 -0000 --AGBBLMjITsWHeOTZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, Thanks for the reply. ----- Original Message ----- From: "Tom McLaughlin " To: To Stacey Roberts Date: Sun, 04 Jan, 2004 05:48 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for an= yone? > On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > > Hello, > > Thanks for the reply.., > >=20 > > ----- 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 fo= r anyone? > >=20 > > > 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 u= ser: > > > > exit > > > > ~ $ mount /cdrom > > > > cd9660: /dev/acd0c: Operation not permitted > > > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom > > > > cd9660: /dev/acd0c: Operation not permitted > > > > ~ $ > > > >=20 > > > > 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 > > > > ~ $ > > >=20 > > > chmod +s /sbin/umount /sbin/mount > > >=20 > > > works fine for me (without any other changes necessary). Don't know > > > if it's the recommended procedure though. > > >=20 > >=20 > > 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 straigh= t-forward instructions on what (presumably) is I hoped is a simple procedur= e.., I'd not want to start making undocumented config changes. > >=20 > > Thanks all the same for taking the time to respond. > >=20 > > Regards, > >=20 > > Stacey > >=20 > > > Gautam > > >=20 >=20 > 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. >=20 $ ls -la /dev/acd* crw-r----- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0a crw-r----- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0c $ That's what the permissions are like after running through the procedure in= the HandBook. On that note, fr the record, on all machines, there are IDE = CDROM drives and one IDE CD-RW drive that I've got here. Thanks again. Regards, Stacey > Tom >=20 --=20 Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com --AGBBLMjITsWHeOTZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUBP/gVl33Q4C/Onfd9AQGGXAf+KuBMADDLfwJLwAqCP0Hua0kbqK9Uf2to HIDsN7st1qstUSRe89ZLrdHa4mxi2ZDNGNOlvUcZ51L6FUXam+uaGC/4z2IGxgg+ 0Ca6vbEvFjp/vUXGlOkDM6gZXLMjN+Lg8oM7ruQ9SMZPbaOcQy1CT6iKi3YSjFPO aKFy0CsB/x6mOOJgcwoW9Nj8GS7TSk6RbY1Vt9g1oqIFQ1HAQWpVlPXqBu/GYdvj wbqyZR60MqTP2UJvCUDON7F4bkSjEJI8d2DYhoZ2SJcL6p+L0JE3SEfCNZW4a+rm UrPXbcPOwnDYDP2+st3DhbaM4ADEVPtIDUJnb1DMTCgUq5QJdYJD+A== =ChkC -----END PGP SIGNATURE----- --AGBBLMjITsWHeOTZ--