How To Create a Sudo User on CentOS?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Mar 15, 2020

 

To create a Sudo user on the CentOS, follow these steps on your command-line shell.

  1. Log in to your server $ssh root@server_ip_address
  2. Create a new user account $useradd username
  3. Set the user password $passwd username
  4. Add the new user to the sudo group $usermod -aG wheel username
  5. To switch to the newly created user $su - username

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Centos Interview Questions

    What is CentOS?

    CentOS is one of the Linux distribution that is affiliated with the Red Hat. It is an open-source operating system that was first launched in 2004. This free operating system officially supports x86-6...

    Centos Interview Questions

    What is the CentOS variant?

    The CentOS variant is a special edition of CentOS. With this variant, you can allow another open-source project to run more effectively using CentOS as the base platform. The CentOS variant starts wit...

    Centos Interview Questions

    What is the current stable release of CentOS?

    The current stable release of the CentOS is version 8.1.1911 that was released in January 2020....