Sudo Usage Note in slackware

Source: Internet
Author: User

After installing slackware 14, no new account is created, and the root account is still logged on. If you are planning to log on to the IRC of slackware, you are prompted that the root account cannot be used. Therefore, a common user, adduser, is created. Enter the user name and press Enter. Switch account logon. Everything works.


Then it is troublesome to compile the software in QY (my new normal account). You must switch to the root account. Use sudo. The system prompts that it is not in the sudo group. After searching online, log on with the root account, edit the/etc/sudoers file, and add the following sentence:

QY all = (all) All

Switch to the QY account again to use The sudo command.


Assume that the root account password is 12345.

QY account password is 789.

When you use the sudo command under the QY account, you are prompted to enter the password. In this case, the password should be QY, not the password of the root account.

You must enter the password of the root account only when you use su root to switch to the root account under the QY account.

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.