From owner-freebsd-gnome@FreeBSD.ORG Fri Aug 19 04:41:59 2005 Return-Path: X-Original-To: freebsd-gnome@freebsd.org Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6480616A41F for ; Fri, 19 Aug 2005 04:41:59 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDD3443D45 for ; Fri, 19 Aug 2005 04:41:58 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.3/8.13.3) with ESMTP id j7J4gHJe050201; Fri, 19 Aug 2005 00:42:17 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Piotr Smyrak In-Reply-To: <20050817123140.5dd03d24@smyru> References: <20050817123140.5dd03d24@smyru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-p61fw4pX6jzTMURhQACK" Organization: MarcusCom, Inc. Date: Fri, 19 Aug 2005 00:41:57 -0400 Message-Id: <1124426517.46824.17.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-gnome@freebsd.org Subject: Re: user can eject root mounted cd X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 04:41:59 -0000 --=-p61fw4pX6jzTMURhQACK Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2005-08-17 at 12:31 +0200, Piotr Smyrak wrote: > Hi, >=20 > I did not know it is possible, and I am not sure it should be... >=20 > Here is a description: > * I manually mount a cd from inside root account >=20 > # mount_cd9660 -C iso8859-2 -o ro /dev/cd0 /cdrom >=20 > * an icon appears on my user desktop.=20 > * I forget it was mounted as root, click on the icon and choose > Eject > * the cd is ejected, but it still is mounted! >=20 > # mount | grep cd > /dev/cd0 on /cdrom (cd9660, local, read-only) >=20 > Here is my fstab: >=20 > # Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1d /tmp ufs rw,noexec 2 2 > /dev/cd0 /cdrom cd9660 ro,noauto,nodev,nosuid 0 0 > /dev/ad0s4 /home ufs rw 0 0 > # > /dev/acd0 /home/smyru/mnt/cdrom cd9660 ro,noauto,nodev,nosuid 0 0 > /dev/da0s1 /home/smyru/mnt/memstick msdosfs rw,noauto,nodev,nosuid,-m=3D6= 44,-M=3D755 0 0 > #/dev/da0s1 /home/smyru/mnt/memstick msdosfs > rw,noauto,nodev,nosuid,-D=3DCP852,-L=3Dpl_PL.ISO8859-2,-m=3D644,-M=3D755 = 0 0 > # nie dziala? > #//GABI@asia/smyru /home/smyru/mnt/samba smbfs rw,noauto,nodev,nosuid 0 0 >=20 > Is that known? The cdcontrol command is used to eject the CD. If you have read-write access to the CD device, you will be able to eject the CD, regardless of whether or not it's mounted, or who mounted it. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-p61fw4pX6jzTMURhQACK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDBWMVb2iPiv4Uz4cRAs3xAJsF047EpnSQDJogAnVC7JDAg6qnqgCgm5kO 3qToVHwcYVIus8EfOAvqLtE= =0uEX -----END PGP SIGNATURE----- --=-p61fw4pX6jzTMURhQACK--