Is it possible to grant a particular user sudo access for one particular command only?
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.