linux: selective sudo access for a particular command

Posted by bguiz on Super User See other posts from Super User or by bguiz
Published on 2010-12-22T05:36:48Z Indexed on 2010/12/22 5:55 UTC
Read the original article Hit count: 231

Filed under:
|
|

Hi,

Is it possible to grant a particular user sudo access for one particular command only?

Thanks

--

More info:

We farm out lengthy optimisation runs to each other's boxes over ssh. These runs take hours, sometimes days.

The shutdown command can only be run in sudo. Being conscious of my environmental footprint, I would like to give the initiator(s) of these runs sudo access to the shutdown command on my box, without sudo access for everything else - so that they may shutdown my machine when they no longer need it.

I am aware that I can schedule a shutdown before I leave my box, but I am looking for a better solution.

© Super User or respective owner

Related posts about shutdown

Related posts about sudo