When trying to remove an account, you get the error:
You do not have a user named “user”
If the account is partially removed and has data in /var/cpanel/userdata/ missing, the account cannot be removed/terminated.
The cPanel account's userdata folder needs to be created, and the group needs to be set. In the following steps, replace "$username" with the username you're trying to remove.
- Create the userdata directory:
- Change the group of the directory to match the user:
chgrp $username /var/cpanel/userdata/$username
- Set the proper permissions for the directory:
chmod 750 /var/cpanel/userdata/$username