Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 00:41:57 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Piotr Smyrak <piotr.smyrak@heron.pl>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: user can eject root mounted cd
Message-ID:  <1124426517.46824.17.camel@shumai.marcuscom.com>
In-Reply-To: <20050817123140.5dd03d24@smyru>
References:  <20050817123140.5dd03d24@smyru>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1124426517.46824.17.camel>