Cpanel error on accounts(can't use an undefined value as a HASH reference)

Written on 11:22 PM by David S Anand

Scenario

In few domains under reseller account or whole cpanel box might show errors in
control panel as bellow

ANSWER

Use the script

for i in $(cat /etc/passwd | awk '{ print $1 }' FS=":"); do
SHDW=`grep $i /etc/shadow`; if [ -z "$SHDW" ]; then echo "$i is
missing from /etc/shadow"; fi; done

If any output comes as user names ensure that the account is not properly
created passwd and shadow files miss the list of users.

If the script didn't give any kind of user names in the server.Login to whm
and reset the owner of the account has problem that will fix the issue.




If you enjoyed this post Subscribe to our feed

No Comment

Post a Comment