![]() To grant sudo privileges to the existing users, you need to add the user to the wheel group. Step 3: Grant Sudo Privileges to existing Users Perfect, output above confirms that user is a part of wheel group. Run following id command to verify that whether user is part of wheel group or not. Make sure to choose a strong and secure password. Replace with the name of the new user you just created. ![]() To set a password for the new user, enter the following command: # passwd This command creates a new user account with a home directory and a default shell of /bin/bash.Įxample # useradd -G wheel -s /bin/bash opsadmĪfter creating the user, you need to set a password for the user. Replace with the name of the new user you want to create. While creating a new user, one assign sudo privileges to it using following useradd command, Now that you are logged in as the root user, you can create a new user account. Step 2: Create a New Regular User & assign Sudo Privileges After entering the correct password, you will be logged in as the root user. # ssh will be prompted to enter the root user password. Open the terminal window.Īlternate way: If your linux server is on network, then ssh it is using root user credentials. To create a sudo user, you will need to log in as the root user on your Linux system. ![]() ![]() Step 1) Access Your System with Root User When we add any regular to wheel then that user will have administrative rights. In Linux distros like RHEL, CentOS, Rocky Linux & Alma Linux, a wheel group is created automatically during the installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |