If you are creating a Cpanel account for a domain, letís say abc.com and after filling

Up all the details, required to create an account, you get the error Unable to add the user


In that case, refer the below steps to rectify the issue:

1) First check /usr/local/cpanel/logs/error_log for the error when trying to create an account.

2) chmod +w passwd,v ( cd /etc)

3) ll /etc/group*
-rw-r--r-- 1 root root 6336 Nov 16 21:40 /etc/group
-rw------- 1 root root 6359 Nov 16 21:39 /etc/group-

4) chattr -i /etc/group

5) mv /etc/gshadow /etc/gsahdow.corrupted.