Granting limited cPanel account access to a developer or other third-party contact
This article describes how to grant limited access to your cPanel account to a third-party contact, such as a developer. Instead of sharing your cPanel username and password (and thereby granting complete access to your account), you can provide select access to just the account areas necessary for website maintenance.
This article describes how to grant limited access to your cPanel account to a third-party contact, such as a developer. Instead of sharing your cPanel username and password (and thereby granting complete access to your account), you can provide select access to just the account areas necessary for website maintenance.
The following procedures demonstrate how to do this. By providing access to a specific file directory (using FTP) and to a specific MySQL database (using remote access), you can enable someone to make changes to a single site without affecting other sites on your hosting account.
Step 1: Configure file access
First, create an FTP account in cPanel that has access only to the directory where the website files are located. To do this, follow these steps:
-
Log in to cPanel.
Note
If you do not know how to log in to your cPanel account, please see this article.
-
On the Tools page, in the Domains section, click Domains:
-
Locate the domain for which you want to grant access, and note the value in the Document Root column for the domain. You will need this information in a few steps.
-
On the Tools page, in the Files section, click FTP Accounts:
-
Under Add FTP Account, in the Log in text box, type the username for the FTP account.
Note
FTP account usernames are in the format [email protected], where user represents the value you type in the Login text box, and example.com represents your domain name.
-
In the Password text box, type the account password.
-
In the Password (Again) text box, retype the account password.
Tip
-
You can click Password Generator and cPanel generates a random, strong password for you.
-
We recommend backing up the password by storing it in a secure location.
-
-
Replace the automatically generated text in the Directory text box with the document root path that you obtained in step 3.
-
Specify the quota for the FTP account. By default, the quota is unlimited. To set a quota, type the number, in megabytes, for the maximum directory size.
-
Click Create FTP Account. cPanel creates the account.
Step 2: Configure database access (optional)
After you configure access to the website's files, you can configure access to the website's MySQL database.
Note
If your website does not use a MySQL database, then this step is not necessary.
Creating a database user
First, create a new database user for the third-party contact, and allow it to access the database. To do this, follow these steps:
-
Get the name of the database that the website uses. The exact steps to do this vary depending on the application you are using. Most sites have a configuration file that specifies the database name. For example, WordPress uses the wp-config.php file to specify the database name.
-
Log in to cPanel.
Note
If you do not know how to log in to your cPanel account, please see this article.
-
On the Tools page, in the Databases section, click Manage My Databases:
Note
If you are using cPanel version 118 or earlier, click MySQL Databases instead:
-
Under Add New User, in the Username text box, type the MySQL username that you want the third-party contact to use.
-
In the Password text box, type the user password.
-
In the Password (Again) text box, retype the user password.
Tip
-
You can click Password Generator and cPanel generates a random, strong password for you.
-
We recommend backing up the password by storing it in a secure location.
-
-
Click Create User. cPanel creates the database user.
-
Under Add User to Database, in the User list box, select the user that you just created.
-
In the Database list box, select the database name you obtained in step 1.
-
Click Add.
-
Select the check boxes to grant the user specific privileges, or select the ALL PRIVILEGES check box to grant the user all permissions to the database.
-
Click Make Changes. cPanel adds the user to the database.
Enabling remote MySQL access
After creating a database user, you must enable remote MySQL access for the third-party contact's IP address. For information about how to do this, please see this article.
Accessing the database
The third-party contact now has access to the database. They can use any number of applications for access, such as MySQL Workbench. For more information about MySQL client applications, please see this article.
Related Articles
Updated 3 days ago