How to Create a WHM Reseller Without an Associated Domain

Valid for versions 82 through the latest version

Version:

82


Last modified: August 26, 2020

Overview

You can create administrative user accounts in WHM that do not correspond to a cPanel account. These accounts allow a user, such as an employee, to access WHM without root access and perform the following tasks:

  • Review bandwidth reports.

  • Reset passwords.

  • Configure mailboxes.

  • Suspend and unsuspend accounts.

  • Manage DNS entries.

Warning:
We strongly recommend that you do not use this method to create administrative user accounts. This method can cause problems with your server configuration.

Create a WHM reseller account without an associated domain

To create a WHM reseller account without an associated domain, perform the following steps:

Note:
In the steps below, username represents the desired account username.
  1. Connect to the server via SSH as the root user.

  2. Create a new user with the following command:

    adduser username 

  3. Set the new user’s password with the following command:

    passwd username

  4. Set the permissions for the new user’s home directory with the following command:

    chmod -v 711 /home/username

  5. Create an entry in the /var/cpanel/resellers file for username with the following command:

    echo "username:" >> /var/cpanel/resellers
    Important:
    Make certain that you follow step 9 and select the desired permissions for this user.

  6. If the /var/cpanel/users/username file exists, open that file with a text editor and remove the following line:

    DNS=

  7. Log in to WHM as the root user and navigate to WHM’s Edit Reseller Nameservers and Privileges interface (WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges).

  8. Select username from the menu and click Submit.

  9. Select the checkboxes that correspond to the desired user permissions. Click Save to save these changes.

Remove a WHM reseller account without an associated domain

To remove a WHM reseller account without an associated domain, perform the following steps:

Note:
In the steps below, username represents the account’s username.

  1. Connect to the server via SSH as the root user.

  2. Open the /var/cpanel/users/resellers file and remove username from the file.

  3. Remove the /var/cpanel/users/username file.

  4. Remove the user file username in the /var/cpanel/users/ directory. To do this, run the following command:

    rm /var/cpanel/users/username

  5. Open the /var/cpanel/resellers file and remove the username user entry from the file.

  6. Remove the user from the system with the following command:

userdel username

Additional Documentation