How to create a new sudo / super admin / wheel user in AlmaLinux CentOS Ubuntu

The “wheel” user has special privileges that allow it to perform administrative tasks on the system. To create a wheel user, follow these steps:

  1. Open a terminal window and log in as the root user. You can do this by running the su command and entering the root password when prompted.
  2. Once you’re logged in as root, run the useradd command to create a new user account. For example, to create a user named john, you would run the following command:
useradd john
  1. Next, you’ll need to set a password for the new user account. You can do this by running the passwd command, followed by the username of the account you want to set the password for. For example:
passwd john
  1. When prompted, enter and confirm the password for the new user account. Make sure to choose a strong password that is difficult for others to guess.
  2. Finally, you’ll need to add the new user to the wheel group, which gives them the necessary privileges to perform administrative tasks. To do this, run the usermod command and specify the -aG option, followed by the name of the group you want to add the user to. For example:
usermod -aG wheel john

That’s it! You’ve successfully created a new wheel user in AlmaLinux 8. To log in to the new account, simply type the username and password you set in step 3 at the login prompt. You can then use the sudo command to perform administrative tasks as needed.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x
Scroll to Top