Sudo prevent switches/arguments on command

sudo

Is it possible to allow a user to run a command using sudo, but prevent them from adding any arguments to the command?

For example, if I want a user to be able to run:

/sbin/mii-tool

but not:

/sbin/mii-tool -r

Thanks.

Best Answer

The Fine Manpage sez:

you can specify "" to indicate that the command may only be run without command line arguments.

So in your case, you'd probably do something like:

ALL ALL=(root) /sbin/mii-tool ""

(Probably throwing in a NOPASSWD: for convenience)