The installation of the Ubuntu 14.04 Server version, the installation process created a normal user, using a normal user login can not execute shutdown, init, halt, reboot command, prompting the need for root permission to execute these commands. The root user was not created during the installation process, what can I do?
Through the search to find the answer, Wang Po sell melon and share with you, have met with me the same situation can try.
The prompt for normal user logon is $
$vi sudo
Add a row
Youruser All=/sbin/shutdown,/sbin/reboot,/sbin/halt
Save Exit, execute:
$sudo-V
Then log in using youruser and Execute
$sudo/sbin/shutdown
You can do it.
Remember: Youruser is your user name, but do not really write Youruser this name OH
This article is from the "8792265" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1586014
How to shut down the normal user of Linux system?