This command is documented in many places, including here. You should not edit the /etc/sudoers file directly but use the command visudo to make changes. If your wheel user can not use sudo to gain root access, make sure that this line exists in /etc/sudoers This file determines what commands different users and groups may use. You can tell that the user has root privileges if the command whoami returns "root". This step allows the user access to the sudo command.Įnsure that the user you created can log in via ssh and use the command sudo su with their password to gain root privileges. Once you have a username, you can go to WHM » Manage wheel group users and move the user you've just created into the wheel group. You can determine what shell the user has by going to WHM » Manage Shell Access. You can also create a system (Linux) user with the adduser command.Įnsure that the user is using a normal shell - like /bin/bash. If you choose this method, it will count towards your total cPanel users for licensing purposes, so you cannot use this method on a cPanel Solo server. The easiest way to create a user is to create an additional cPanel user. ( Find out how to disable direct root logins in this article.)Īdditionally, if you'd like to create a reseller without a domain, but with sudo access, please see our documentation. Creating a sudo user with root privileges needs to be done, for instance, if you wish to disable direct root logins. However, the most common use for a sudo user on a cPanel server is to create an administrative user that can gain root access on the server. It can have just some extra privileges or full root access. A "sudo" user is a user that has extra privileges. One way to achieve that on Centos is by performing the following 2 steps: Firstly, you have to remove any mention of the aforementioned user (the one for which you do not want any sudo privileges) from the /etc/sudoers file or (if it exists) from any file under the /etc/sudoers.d path.
0 Comments
Leave a Reply. |