The system failed to add or edit the FTP consumer, according to this post.

Signs and Symptoms: A alert appears when adding an FTP account.

The system failed to edit the user:
The <abbr title="File Transfer Protocol">FTP</abbr>
user <username> at the domain domain.tld already exists.

You’ll see something like this in the cPanel error log:

Entry for cptest missing in /etc/shadow at
line 30.\n\tCpanel::PwCache::Helpers::cluck
(\"Entry for cptest missing in /etc/shadow\")
called at /usr/local/cpanel/Cpanel/ line 

Description: You can receive an alert that the user already exists when adding a new user for the FTP accounts. Check the “User Manager” section of the cPanel interface as well as the FTP Accounts for the previously generated accounts, as it can appear in one but not both.


If this warning occurs, you’ll need to verify the user name is part of /etc/passd and /etc/shadow. You can use ‘grep’ from the command line to search these files. As an example:

grep cptest /etc/passwd /etc/shadow

To quickly check for a list of the users reported in the error log, you can run the following to list the users that are reported missing from the /etc/shadow and or /etc/passwd file:

grep "Cpanel::PwCache::Helpers::cluck" /usr/local/cpanel/logs/error_log  |awk '{print $3, $4, $5, $6}' |sort |uniq -c |sort -n

If the users aren’t there, you’ll have to restore the files from backups or manually add them to the files. /etc/passwd and /etc/shadow would be present if you allowed cPanel backups and System Backups, and can be used to restore the missing users.

We hope that you now have a good understanding of The FTP consumer that could not be added or edited by the machine. Visit our site for more of this type of knowledge base and search for updates on a regular basis. Also, don’t forget to take a look at our Web hosting plans right now.