Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 16:40:45 +0100
From:      Christoph Sold <so@server.i-clue.de>
To:        so@server.ms-agentur.de
Cc:        Brandon Fosdick <bfoz@glue.umd.edu>, questions@FreeBSD.ORG
Subject:   Re: A different "user mounting of /cdrom"
Message-ID:  <3A7831FD.79D35FE2@i-clue.de>
References:  <3A778EA0.2ED43768@glue.umd.edu> <3A782CAF.8AB6AE40@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Ooops, didn't paste completely...

Christoph Sold schrieb:
> 
> 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


# User privilege specification
root    ALL=(ALL) ALL
CD_ROM_USERS ALL=MOUNT_CD

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A7831FD.79D35FE2>