Managing User Permissions and Access in cPanel

This guide explains how to manage user access and permissions in cPanel. You will learn how to create and control access for FTP users, Web Disk users, database users, and cPanel logins, as well as how to secure access with two-factor authentication and directory protection.

  1. Understanding User Types in cPanel

cPanel uses several different user types, each with its own purpose:

  • cPanel Account User
    Full access to the entire hosting account.
  • FTP Users
    Access to specific folders for file uploads and management.
  • Web Disk Users
    Desktop-style access to selected directories via WebDAV.
  • Database Users
    Access to specific MySQL databases.
  • Email Users
    Access to their own mailbox only.

Each user type has its own permissions and is managed separately.

  1. Managing cPanel Account Access

The main cPanel login has full control over the hosting environment.
To secure this access:

Change the cPanel Password

  1. Log in to cPanel.
  2. Click your username in the top-right corner.
  3. Select Password & Security.
  4. Enter a new password and save.

Enable Two-Factor Authentication

  1. Go to Security > Two-Factor Authentication.
  2. Click Set Up Two-Factor Authentication.
  3. Scan the QR code with an authenticator app.
  4. Enter the verification code.

This adds an extra layer of protection to your account.

  1. Managing FTP User Permissions

FTP users can be restricted to specific directories.

To create or edit an FTP user:

  1. Go to Files > FTP Accounts.
  2. Create a new user or edit an existing one.
  3. Set the Directory the user should access.
  4. Choose a Quota if needed.

FTP users cannot access areas outside their assigned directory.

  1. Managing Web Disk User Permissions

Web Disk users function similarly to FTP users but use WebDAV.

To manage Web Disk access:

  1. Go to Files > Web Disk.
  2. Create or edit a user.
  3. Set the Directory and Permissions (Read-Write or Read-Only).

This is ideal for users who prefer a mapped drive on their computer.

  1. Managing Database User Permissions

Database users control access to MySQL databases.

To manage database users:

  1. Go to Databases > MySQL Databases.
  2. Create a user or select an existing one.
  3. Assign the user to a database.
  4. Choose the permissions:
  • All Privileges for full access
  • Or select specific privileges for restricted access

Database users cannot access files or other parts of the hosting account.

  1. Managing Email Account Access

Email users only have access to their own mailbox.

To manage email users:

  1. Go to Email > Email Accounts.
  2. Create or edit an account.
  3. Set a password and storage quota.

Email users cannot log in to cPanel or access files or databases.

  1. Protecting Directories With Passwords

You can restrict access to specific folders on your website.

  1. Go to Security > Directory Privacy.
  2. Select the folder you want to protect.
  3. Enable password protection.
  4. Create a username and password.

Visitors will be prompted to log in before accessing the protected directory.

  1. Using IP Blocker to Control Access

You can block specific IP addresses from accessing your site or cPanel.

  1. Go to Security > IP Blocker.
  2. Enter the IP address or range.
  3. Click Add.

This is useful for blocking suspicious activity or repeated login attempts.

  1. Best Practices for Managing Permissions
  • Use separate users for FTP, Web Disk, and databases instead of sharing credentials.
  • Give users only the access they need.
  • Enable 2FA on the main cPanel account.
  • Use strong, unique passwords for all user types.
  • Review user accounts regularly and remove any that are no longer needed.
  1. Troubleshooting Common Access Issues

User Cannot Log In

  • Password may be incorrect.
  • Reset the password from cPanel.

Permission Denied Errors

  • The user may not have access to the correct directory or database.
  • Update the directory path or privileges.

FTP or Web Disk Not Connecting

  • Check the assigned directory.
  • Ensure the user has the correct protocol (FTP vs WebDAV).

Database Connection Errors

  • Confirm the user is assigned to the database.
  • Check the host is set to localhost.
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

How to Create and Manage Email Accounts in cPanel

This guide explains how to create, manage, and access email accounts for your domain using...

Using phpMyAdmin to Manage MySQL Databases

This guide explains how to use phpMyAdmin in cPanel to view, edit, and manage your MySQL...

Managing Domains and Subdomains in cPanel

This guide explains how to manage your domains and subdomains in cPanel, including adding new...

Understanding and Using cPanel File Manager

This guide explains how to use the cPanel File Manager to upload, edit, organise, and manage...

Setting Up and Managing FTP Accounts

This guide explains how to create, configure, and manage FTP accounts in cPanel. You will learn...

Powered by WHMCompleteSolution