Symptoms
When trying to remove an account, you get the error:
You do not have a user named “user”
Description
If the account is partially removed and has data in /var/cpanel/userdata/ missing, the account cannot be removed/terminated.
Workaround
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:
mkdir /var/cpanel/userdata/$username
- 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
Comments
0 comments
Article is closed for comments.