Is it possible to create a sudo user who has exact privileges of a root user ? If so can you guide me through how to create one using cmd.
Ex: I have created a sudo user who can't restart for some reason. He can always do sudo -i and then restart, but is there some other way which makes the user by default have all the permissions.
I know it's vulnerable but since it runs on local network it's fine.
@muru The above error shows up
– Hari Aakash Nov 08 '17 at 03:13reboot
was the command – Hari Aakash Nov 08 '17 at 03:17systemd
the shutdown and reboot now do not require root privilege , see https://askubuntu.com/q/789058/295286 Try to poke around polkit settings as shown in that post, maybe server settings are different from desktop. But any user that is in sudo group can just dosudo shutdown -r now
. You can also edit/etc/sudoers
file to run a command without requiring password, there's questions around on AskUbuntu about that,too. – Sergiy Kolodyazhnyy Nov 08 '17 at 03:29reboot
has different behaviour: https://i.stack.imgur.com/EeOd6.gif – pa4080 Nov 08 '17 at 12:18