I have a menu script which will allow our computer operators to run various tasks. One of these tasks I'd like them to be able to perform is to poweroff our nodes. Does anyone know how to allow them to run root commands without having them be part of the admin group or without having them gain root access? I've tried to use the following command, "su - root -c $passwd "command here". However, I can't seem to get around having to manually enter the passwd for root. Is there a way to pass the passwd without having to type it manually?
Any help/info would be greatly appreciated.
Regards
Jake
Any help/info would be greatly appreciated.
Regards
Jake