How to shut down the normal user of Linux system?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.