I have a laptop with Ubuntu 16.06. I am able to execute reboot command as a non-root user without sudo. How can I change this behaviour so that I am not able to run reboot without sudo? I tried checking where reboot actually points:
user:~$ which reboot
/sbin/reboot
user:/sbin$ ls -l reboot
reboot -> /bin/systemctl
But I do not know how to change systemctl behaviour.
user:/sbin$ ls -l /bin/systemctlreturns-rwxr-xr-x 1 root root 659848 feb 15 16:11 /bin/systemctl– Mikhail Aug 01 '17 at 14:31rebootI getreboot: Need to be rootand permissions on reboot are exactly the same. – Mikhail Aug 01 '17 at 14:50