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.
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.
The Fine Manpage sez:
So in your case, you'd probably do something like:
(Probably throwing in a
NOPASSWD:
for convenience)