Duplicate FTP Hosts in Show IP Usage

Ran into an issue today where a domain was showing in the cPanel “Show IP Address Usage” twice in the “FTP Usage” column. This was distressing the client so I looked into it and it appears this list is pulled from the /etc/pure-ftpd/ directory, which has the following directory structure:

root@server(/etc/pure-ftpd)$ ll
total 16
drwxr-xr-x  2 root root   4096 Dec  8 13:42 ./
drwxr-xr-x 90 root root  12288 Dec  8 13:42 ../
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 1.2.3.4 -> /home/user1/public_ftp/
lrwxrwxrwx  1 root wheel    24 Dec  8 13:40 2.3.4.5 -> /home/user2/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 3.4.5.6 -> /home/user3/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 4.5.6.7 -> /home/user4/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 5.6.7.8 -> /home/user5/public_ftp/
lrwxrwxrwx  1 root wheel    23 Dec  8 13:40 6.7.8.9 -> /home/user3/public_ftp/

In my case, user3 had two IPs pointing to his public_ftp directory which caused the issue. I removed the symlink and then the IP Usage showed properly.

Just a quick fix for anyone else who experiences this issue!

Leave a Reply

Your email address will not be published. Required fields are marked *