How to Create a WHM Reseller Without an Associated Domain

Valid for versions 82 through 98

Version:

82

100


Last modified: November 12, 2021

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 similar tasks to a root user.

Warning:

If you create a reseller without a domain, certain parts of WHM will not function either when logged in as that user or when you attempt to perform actions which affect that user.

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 8 and select the desired permissions for this user.

  6. 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).

  7. Select username from the menu and click Submit.

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

Change the password for a WHM reseller account without an associated domain

You cannot change the password for this account type using WHM’s Password Modification interface (WHM >> Home >> Account Functions >> Password Modification) or List Accounts interface (WHM >> Home >> Account Information >> List Accounts). The only way to change the password of this account type is using the following command:

passwd username

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. Remove the /var/cpanel/users/username file.

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

    rm /var/cpanel/users/username

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

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

    userdel username

Known limitations for a WHM reseller account without an associated domain

Known limitations for this type of account include, but are not limited to:

Important:

We recommend running /usr/local/cpanel/scripts/updateuserdomains after creating a WHM Reseller without an associated domain before using any WHM API calls.

Additional Documentation