Giving reboot/shutdown powers to a user is a BAD idea so you always need root privileges either by elevating your privilege by su or sudo dependant on which type of distro you're using.
Imagine giving a user these rights on a server running loads of virtual systems. Nightmare! So...
Quote:
I need to run reboot command by a user expect root!
|
Exactly! This is best practice so you should get used to it.
Play Bonny!