How to designate a user as an administrator in CentOS?
On the CentOS operating system, you can set a user as an administrator by following these steps:
- Log in to the administrator user account on the CentOS system.
- Open the terminal window and enter the following command to switch to the root user:
su -
- Enter the password for the root user to confirm permission.
- Add administrative permissions to a user by using the following command:
usermod -aG wheel username
The username is the username that needs to be set as the administrator.
- Please restart the system or log out and log back in to apply the changes.
The user has now been designated as an administrator with sudo privileges, allowing them to perform actions that require administrative permissions.