You can use your cPanel username and password to access all folders and files via FTP. However, if you want to create an FTP user account for a specific folder or you don't want to allow access to your root files, then you can create a separate FTP account.
1. Log into your cPanel account.
2. In the "Files" section, click on the"FTP Accounts" icon.
3. Under the "Add FTP Account" text, fill in the following details:
- Log in: FTP username like "newuser" (without the quotes and spaces);
- Password: (Enter a new FTP password or generate a new password by clicking the "Password Generator" button);
- Directory: If you want to give access to the entire /public_html folder, enter "public_html" or change folder path to a different path, e.g. "public_html/newuser" and your FTP user will be granted access to the "newuser" folder only. Your FTP user will also be unable to access folders outside of the "public_html/newuser" folder;
- Quota: Specify the quota in numerical words or select "unlimited".
4. Click on the "Create FTP Account" button.
Now you can access your FTP account by using your newly-created FTP account. For example:
- Host: Your website IP or enter your website name ftp.example.com (replace example.com with your website address).
- Username: NewFTPUser@example.com
- FTP Port: 21 (Default port is 21)
- FTP Password: Your FTP password