List active FTP connections/users

To list the active FTP connections on your server use:

netstat -n | grep :21

root@web [~]# netstat -n | grep :21
tcp        0      0     TIME_WAIT
tcp        0      0       TIME_WAIT
tcp        0      0     ESTABLISHED
tcp       30      0       CLOSE_WAIT
tcp        0      0       TIME_WAIT
tcp        0      0    FIN_WAIT2
tcp        0      0     ESTABLISHED
tcp        0      0       ESTABLISHED
tcp        0      0    TIME_WAIT

To list the server users, use:

ps aux| grep ftp

root@web [~]# ps aux| grep ftp
root       129  0.0  0.0  42688    80 ?        Ss    2019   0:11 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/local/cpanel/bin/pureauth
root       550  0.0  0.0 148816   276 ?        Ss    2019   0:13 pure-ftpd (SERVER)
bobcom   20107  0.0  0.0 148820   892 ?        S    05:41   0:00 pure-ftpd (IDLE)
root     20108  0.0  0.0 148820   604 ?        S    05:41   0:00 pure-ftpd (PRIV)
bobcom   20303  0.0  0.0 148820   892 ?        S    05:42   0:00 pure-ftpd (IDLE)
root     20304  0.0  0.0 148820   604 ?        S    05:42   0:00 pure-ftpd (PRIV)
root     24943  0.0  0.0   9096   664 pts/1    S+   05:54   0:00 grep --color=auto ftp
root@web [~]# 

To summarize the above output:

ps aux | grep ftp | awk {'print $1'} | sort | uniq -c

root@web [~]# ps aux | grep ftp | awk {'print $1'} | sort | uniq -c
      2 bobcom
      6 root
root@web [~]#

Notice that the most information about the FTP activity you will get from the /var/log/messages. This is the log file for the Pure-FTPd on web hosting servers.

Share this post:

Check active FTP connections to your hosting account in cPanel

cPanel allows you to see all active FTP connections to your web hosting account. You also have the possibility to disconnect users.

Steps to see the live FTP connections:

  1. Connect to your cPanel account
  2. Look for the FILES section, click on FTP Connections link
  3. Under Current Connections you will see the list of the FTP connections (you can also connection details, like IP, Login Time, Connection Status)
  4. Use the Reload button, to reload the active connections
  5. If you want to disconnect an user, click the Disconnect link. Confirm the action. 
cPanel FTP Connections
cPanel FTP Connections

Check the video tutorial here:

Share this post:

How to reset your FTP account password in cPanel

If you forgot your FTP password you can easily reset it via cPanel. Follow these steps:

  1. Log in to cPanel account
  2. Go to FTP Accounts under the FILES section
  3. Go to FTP Accounts section, locate your FTP account and click the Change Password link on the corresponding row.
  4. Enter the new password (2 times) or use the Password Generator function.
  5. Click the Change Password button. That’s all. You can now use your new password.
Change FTP Password
Change FTP Password
Notice that cPanel automatically creates an FTP account with the same username and password as the cPanel ones. Contact your host if you need to reset the cPanel password.

Also take a look at the video tutorial we built:

Share this post:

What is and how to use the public_ftp folder

The folder /home/username/public_ftp/ is used by the FTP server to store files for the “anonymous” users. Anonymous users are users that connect to the FTP server with the “anonymous” username. They don’t need to have a password.


public_ftp folder
public_ftp folder in cPanel File Manager
Notice that you have a similar folder in your account /public_html/ – this folder stores the site’s content that is available for the public. Do not delete this folder.
For security reasons, anonymous FTP is disabled on most of the shared and reseller servers. Ask your host for more details.
Share this post:

How to create an FTP account in cPanel

Necessary steps to create a new FTP account in cPanel:

  1. Log into your cPanel account.
  2. Go to FTP Accounts under Files category.
  3. At the top of the page you will see the Add FTP Account section. Enter the desired Log In username and the Password.
  4. Here you also must choose the root directory of the new FTP user and the account’s Quota.
  5. Click the Create FTP Account button. The new account will be created and you will be able to see it in the FTP Accounts list.
cPanel Add FTP Account
cPanel Add FTP Account

The video tutorial. See how easy is to create a new FTP account. 

Related KB : Use FileZilla to connect via FTP to your web hosting account

cPanel automatically create an FTP account. The FTP username and password are the same as for the cPanel account.
Share this post:
Page 1 of 2
1 2