The “wheel” user has special privileges that allow it to perform administrative tasks on the system. To create a wheel user, follow these steps:
- Open a terminal window and log in as the root user. You can do this by running the
sucommand and entering the root password when prompted. - Once you’re logged in as root, run the
useraddcommand to create a new user account. For example, to create a user namedjohn, you would run the following command:
useradd john
- Next, you’ll need to set a password for the new user account. You can do this by running the
passwdcommand, followed by the username of the account you want to set the password for. For example:
passwd john
- 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.
- Finally, you’ll need to add the new user to the
wheelgroup, which gives them the necessary privileges to perform administrative tasks. To do this, run theusermodcommand and specify the-aGoption, 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.
