Linux gives ordinary users root privileges

Source: Internet
Author: User

Test environment: CentOS 6.51, add users, first add a normal user with the AddUser command, the command is as follows: #adduser Tommy//Add a user named Tommy #passwd Tommy   // Modify the password changing password for user Tommy. New UNIX Password:     //Enter this password here Retype Unix password:  //Enter new password again passwd:all authentication tokens updated Successfully. 2, give root permission method One: Modify the/etc/sudoers file, find the following line, the previous comment (#) removed # # allows people in group wheel to run all Commands%wheel
   all= (All)    Su- , you can get root permission to operate. Method Two: Modify the/etc/sudoers file, locate the following line, and add a line below root as follows: # allow ROOT to run any commands anywhereroot    all= (All)     Alltommy   all= (All)     Su- , you can get root permission to operate.

But it looks like the red and thicker Su-- I usually use sudo. I don't know if the author is a typo or something, because with Su, I need to know the root password, so sudo will be better.

Linux gives ordinary users root privileges

Related Article

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.