Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2001 08:56:58 +0300
From:      Igor Robul <igor@raduga.dyndns.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Best way to mount CD-ROM (newbie question)
Message-ID:  <20010306085658.A12972@linux.rainbow>
In-Reply-To: <15012.12212.882588.222135@guru.mired.org>; from mwm@mired.org on Mon, Mar 05, 2001 at 06:30:44PM -0600
References:  <98967198@toto.iv> <15012.12212.882588.222135@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 05, 2001 at 06:30:44PM -0600, Mike Meyer wrote:
> You can then mount the cdrom by doing "mount /cdrom" as root. See the
> FAQ if you want to make it work for non-root users.
Also, if you'll install sudo port (/usr/ports/security/sudo) then
you'll can do 'sudo mount /cdrom' as normal user (if you'll setup
apropriate /usr/local/etc/sudoers file)
Mine follows, in this case I allow myself mount and umount ANY
devices. And also I can use "tail" for /var/log/security :-)

User_Alias OPERATOR = igor

# Cmnd alias specification
Cmnd_Alias MOUNT = /sbin/mount, /sbin/umount

# User privilege specification
root            ALL = (ALL) ALL

OPERATOR        demon = NOPASSWD: MOUNT
OPERATOR        demon = NOPASSWD: /usr/bin/tail


-- 
Igor Robul, Unix System Administrator & Programmer @ sanatorium "Raduga", 
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=304744

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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