I'm following along the Ubuntu sudoers tutorial.
Here's my exact /etc/sudoers
file (screenshot instead of code block because the formatting was getting messed up).
Notice the lines at the bottom which should give the deployer
user poweroff and reboot capabilities. The sudoers file is syntactically fine and saves no problem.
I've ended my ssh session and logged in again.
$ whoami
=> deployer
$ reboot
=> reboot: Need to be root
What could the problem be?
Some thoughts
- I've tried rebooting (with sudo) and still there's no effect
- My shell is ZSH
- I predict I'm going to kicking myself when I get an answer.
sudo reboot
, it just won't ask you for a password.sudo
is what I was looking for. If you put that in an answer I will accept.#
that were being treated as headers. You need a blank line above code blocks for them to be treated as such.#
was being treated as a header and (it looked like it was) forcing the block to be rendered as markdown, which led to massive text sizing. I wasn't aware of the blank line trick so thanks for that.