From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 09:16:42 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 9D07F16A4CE for ; Sun, 4 Jan 2004 09:16:42 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id BD67243D48 for ; Sun, 4 Jan 2004 09:16:39 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 10375 invoked by uid 555); 4 Jan 2004 20:16:37 +0300 Received: from hal.localdomain (213.80.149.138) by t-k.ru with TeleMail/2 id 1073236596-10368 for stacey@vickiandstacey.com; Sun, Jan 4 20:16:36 2004 +0300 (MSK) Date: Sun, 4 Jan 2004 20:11:41 +0300 From: Sergey 'DoubleF' Zaharchenko To: Stacey Roberts Message-Id: <20040104201141.78bde5b0.doublef@tele-kom.ru> In-Reply-To: <20040104005352.GI6131@crom.vickiandstacey.com> References: <20040104005352.GI6131@crom.vickiandstacey.com> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Sun__4_Jan_2004_20_11_41_+0300_dWRoV5LwfZDmU5DL" 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 17:16:42 -0000 --Signature=_Sun__4_Jan_2004_20_11_41_+0300_dWRoV5LwfZDmU5DL Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sun, 4 Jan 2004 00:53:52 +0000 Stacey Roberts probably wrote: > Hello, > I've just realised that I am unable to mount a cdrom disk as a > non-root user for *any* of my machines. > > All hosts concerned are running FreeBSD-4.9Stable, and running through: > http://www.freebsd.org/doc/en_US.IS...SER-FLOPPYMOUNT does *not* work > for me at all.., [snip] Why not use sudo (from the ports) and allow yourself (and anyone who needs) to mount the cdrom? Here's what I have in my sudoers file: df ALL=NOPASSWD: /sbin/umount /cdrom,\ /sbin/mount_cd9660 -o nosuid\,nodev /dev/acd0c /cdrom This means `df' can mount and unmount the cdrom. And I have a couple of scripts, `cdrom+' and `cdrom-', which contain the allowed commands above. As you see, I don't need a password or anything to mount the cdrom (NOPASSWD). HTH. > Regards, > > Stacey > -- > Stacey Roberts > B. Sc (HONS) Computer Science > > Web: www.vickiandstacey.com > -- DoubleF The penalty for laughing in a courtroom is six months in jail; if it were not for this penalty, the jury would never hear the evidence. -- H. L. Mencken --Signature=_Sun__4_Jan_2004_20_11_41_+0300_dWRoV5LwfZDmU5DL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/+ElYwo7hT/9lVdwRAgTzAJ90BrNfhQMlKkmP2gNQeehdGgmFQwCeIyve ypVdMz+EXjS5S0U3ILnaCV4= =Xmen -----END PGP SIGNATURE----- --Signature=_Sun__4_Jan_2004_20_11_41_+0300_dWRoV5LwfZDmU5DL--