Date: Wed, 31 Jan 2001 16:18:07 +0100 From: Christoph Sold <so@server.i-clue.de> To: Brandon Fosdick <bfoz@glue.umd.edu> Cc: questions@FreeBSD.ORG Subject: Re: A different "user mounting of /cdrom" Message-ID: <3A782CAF.8AB6AE40@i-clue.de> References: <3A778EA0.2ED43768@glue.umd.edu>
index | next in thread | previous in thread | raw e-mail
Brandon Fosdick schrieb:
>
> Ok, so I've been through the FAQ entry for allowing users to
> mount/umount removable media. It works exactly like the FAQ said it
> would, and thats my problem.
>
> The provided method allows users to mount media to directories owned by
> the user in question. How do I allow many users to mount the cdrom to
> /cdrom as opposed to ${HOME}/whatever? AFAIK I can't make /cdrom owned
> by all of the users, and setting the group on /cdrom didn't work.
Have a look at /usr/ports/security/sudo.
I'd config it this way:
---</usr/local/etc/sudoers:>---
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_alias CD_ROM_USERS=luserOne,luserTwo,anotherLuser
# Cmnd alias specification
Cmnd_alias MOUNT_CD=/sbin/mount /cdrom
---<snip>---
This way, the named lusers may do
sudo /sbin/mount /cdrom
as root, without giving them a root passwd.
Of course, you should allow them to unmount the darn thing, too.
HTH
-Christoph Sold
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A782CAF.8AB6AE40>
