1

How can i enable user to have reboot privileges without sudo?
Need to keep sudo password enabled.

ssh user@server "sudo reboot" does not work because it requires a password to be entered.

Want this to work: ssh user@server "reboot"

i have tried /etc/shutdown.allow but reboot: Need to be root

muru
  • 197,895
  • 55
  • 485
  • 740
rjt
  • 426
  • I think if you try ssh -t user@ sudo it will work – j0h Apr 02 '15 at 21:40
  • i had already tried the -t but that did not work either. Adding NOPASSWD for specific commands is the way to go. – rjt Apr 03 '15 at 13:48

0 Answers0