[Wylug-discuss] How to allow users resticted mount/unmounts

Chris Davies chris.davies at bcs.org.uk
Tue Jan 6 16:35:27 GMT 2004


On Tuesday, January 06, 2004 4:22 PM, wylug-discuss-admin at wylug.org.uk
wrote:
>   The problem comes in building the filesystem to be tested.  To
> place files into a filesystem you have to mount it, and to mount it
> you have to be root.

I guess you can't predefine the filesystems in /etc/fstab and use the
"user" option?

>   I have been looking at sudo, but it seems to be either too
> restrictive or not restrictive enough.  That is, I can let users run
> mount/unmount with any arguments, or with a fixed set of arguments.

What about creating a small shell script that validates its arguments
(or derives them based on the userid of the caller) and running that
from sudo?

Chris





More information about the Wylug-discuss mailing list