From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 17:23:02 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 AA47616A4CE for ; Sat, 3 Jan 2004 17:23:02 -0800 (PST) Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.8.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4539D43D1F for ; Sat, 3 Jan 2004 17:22:57 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from 82-68-31-179.dsl.in-addr.zen.co.uk ([82.68.31.179] helo=crom.vickiandstacey.com) by heisenberg.zen.co.uk with esmtp (Exim 4.22) id 1Acwyi-0002Ep-4m; Sun, 04 Jan 2004 01:22:52 +0000 Received: from crom.vickiandstacey.com (localhost [127.0.0.1]) i041MeCi058976; Sun, 4 Jan 2004 01:22:46 GMT (envelope-from stacey@crom.vickiandstacey.com) Received: (from stacey@localhost) by crom.vickiandstacey.com (8.12.10/8.12.10/Submit) id i041MZpH058975; Sun, 4 Jan 2004 01:22:35 GMT (envelope-from stacey) Date: Sun, 4 Jan 2004 01:22:35 +0000 From: Stacey Roberts To: Gautam Gopalakrishnan Message-ID: <20040104012235.GK6131@crom.vickiandstacey.com> References: <20040104005352.GI6131@crom.vickiandstacey.com> <20040104005929.GA70684@madras.dyndns.org> <20040103171241.209d23f4.cpressey@catseye.mine.nu> <20040104011118.GA71333@madras.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ELVYuRnMxQ5nnKRy" Content-Disposition: inline In-Reply-To: <20040104011118.GA71333@madras.dyndns.org> User-Agent: Mutt/1.4.1i X-Originating-Heisenberg-IP: [82.68.31.179] cc: Chris Pressey cc: freebsd-questions@freebsd.org cc: stacey@vickiandstacey.com 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 01:23:02 -0000 --ELVYuRnMxQ5nnKRy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, ----- Original Message ----- From: "Gautam Gopalakrishnan " To: To Chris Pressey Date: Sun, 04 Jan, 2004 01:11 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for an= yone? > On Sat, Jan 03, 2004 at 05:12:41PM -0800, Chris Pressey wrote: > > On Sun, 4 Jan 2004 11:59:29 +1100 > > Gautam Gopalakrishnan wrote: > >=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 > > > > user: 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 > > > Gautam > >=20 > > I worked around this a different way: I chown'd /dev/acd0c to the uid of > > the user. Probably *not* the recommended procedure :) >=20 > I guess a cleaner solution is to add the user to the operator group > and chmod to 664. >=20 Err.., but this *is* part of the procedure in the HandBook (http://www.free= bsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT) that doe= s not work for me..,=20 Regards, Stacey > Gautam >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com --ELVYuRnMxQ5nnKRy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUBP/dq2X3Q4C/Onfd9AQF0+gf9F9gG/yL2HNthka2FmLD0TJ4vIhG+oNpa 8+uYeQoI0Hl7ptyXP/0eZgfW7YfSQjKZcj6+oOgHDANzjpac+BlQ1YMaaoepcWSA cu1ivIusKdw3/yeZ3VYc3reFD9M6MqivOjcn39zl2CE9ciQpOpkivCGsBF1dtvng n35G6zGgP7yVL2U/DOLByEJyS9JrH6uHC0yi9yRhix9+epp2Be2zCw7BgHLGf8xL OvbNHMGUO7AytD0HgxI3G7/76pmHr6fm81eUHn+wOVoGA9jW3K8C5xTt9rm+PsvD 2Re3pzBu2BwLpQbTs3nykbT9VsCEnx2+EKgIja08I5XI1yrn/AJ7mg== =M2uW -----END PGP SIGNATURE----- --ELVYuRnMxQ5nnKRy--