Linux Normal user with root privileges

Source: Internet
Author: User

In production, sometimes due to security reasons, usually non-Linux administrators are only ordinary users of the account, but sometimes some operations require root permissions, this can be done by sudo, the steps are as follows:

A. For example, our average user account name is XUSJ. To edit the configuration file for sudo:

Input: Visudo

Find root all= (all) all this line

Add XUSJ This user below, give him root permission, add a new line:

XUSJ all= (All) all

B. At this time in XUSJ this user, input sudo bash, will be prompted to enter XUSJ This user's password, input can enter the root operation mode.

[[email protected] ~]$ sudo bash

[sudo] password for XUSJ: XUSJ

[email protected] xusj]#


This article is from the "less stubborn" blog, please be sure to keep this source http://xushaojie.blog.51cto.com/6205370/1680421

Linux Normal user with root privileges

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.