Unable to create users - Emergency

bdeivid

Member
Jun 1, 2009
16
0
51
Hello,

after installing clamav plugin in WHM, I'm not able to create new users in whm nor in console running useradd or adduser
When I try to create new user in shell, there is no error, but the user is not crated, nor his home dir nor his group.
When i try to create new user in WHM i get the error:

Account Creation Status: failed (Unable to add group xxxxx)

no user is created, and no group, but homedirs are created ????

i checked th nscd service, it is not running.
I tried to reboot but did not help.
I saw in /etc/gshadow /etc/gshadow- that there was no entry for CLAMAV ????
Clamav is only in /etc/passwd and /etc/group /etc/shadow /etc/shadow-


Please advise ?? is there any way to synchronise users and groups files ???
 

WiredTree Joe

Well-Known Member
Dec 13, 2006
68
1
158
Chicago, IL
Have you tried removing ClamAV to see if it corrects the issue? Make sure you disable ClamAV via the service manager first ( Main >> Service Configuration >> Service Manager) and then un-install it via the plugins section.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Hello,

after installing clamav plugin in WHM, I'm not able to create new users in whm nor in console running useradd or adduser
When I try to create new user in shell, there is no error, but the user is not crated, nor his home dir nor his group.
When i try to create new user in WHM i get the error:

Account Creation Status: failed (Unable to add group xxxxx)

no user is created, and no group, but homedirs are created ????

i checked th nscd service, it is not running.
I tried to reboot but did not help.
I saw in /etc/gshadow /etc/gshadow- that there was no entry for CLAMAV ????
Clamav is only in /etc/passwd and /etc/group /etc/shadow /etc/shadow-


Please advise ?? is there any way to synchronise users and groups files ???
Is the server running within a virtual environment, such as Xen, OpenVZ, or Virtuozzo?

What is the output from the following commands?
Code:
# grep -H '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype
 

bdeivid

Member
Jun 1, 2009
16
0
51
Is the server running within a virtual environment, such as Xen, OpenVZ, or Virtuozzo?

What is the output from the following commands?
Code:
# grep -H '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype


Hello,

no it is not a VPS or something like that.

/etc/redhat-release:CentOS release 5.5 (Final)
/usr/local/cpanel/version:11.26.9-STABLE_48422
/var/cpanel/envtype:standard

br
deivid
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Please escalate this issue via a support request

Hello,

no it is not a VPS or something like that.

/etc/redhat-release:CentOS release 5.5 (Final)
/usr/local/cpanel/version:11.26.9-STABLE_48422
/var/cpanel/envtype:standard

br
deivid
Please submit a support request so that we may assist with further investigation; direct access will be necessary so that we may fully inspect the circumstances involved to properly diagnose and troubleshoot the issue. When available, please let me know your ticket ID number so that we may follow-up internally; this will be greatly appreciated.
 

bdeivid

Member
Jun 1, 2009
16
0
51
Please submit a support request so that we may assist with further investigation; direct access will be necessary so that we may fully inspect the circumstances involved to properly diagnose and troubleshoot the issue. When available, please let me know your ticket ID number so that we may follow-up internally; this will be greatly appreciated.

Support request is: 950929

Thnx in advance.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Steps to replace a corrupted "/etc/login.defs" file in RHEL/CentOS

Support request is: 950929

Thnx in advance.
Thank you for the information and ticket submission.

The user creation difficulty appeared to stem from the following file becoming corrupt and needing to be reset to stock-default:
Code:
/etc/login.defs
The following command will show which RPM, (i.e., software package), may have installed a specific file as defined by the path(s) entered:
Code:
# rpm -qf /etc/login.defs
Example output (from a test system running CentOS 5.5):
Code:
# rpm -qf /etc/login.defs
shadow-utils-4.0.17-15.el5
For the file path "/etc/login.defs" entered we see it is provided by an RPM named "shadow-utils" that is included with the OS distribution.

If a file is known to be corrupt, I recommend to rename the existing copy so that we can ensure a new, stock-default copy will be installed:
Code:
# mv -v /etc/login.defs /etc/login.defs.backup.corrupt
In RHEL5/CentOS5, the software package manager, YUM, has a "reinstall" option to perform an RPM re-install using just one command:
Code:
# yum reinstall shadow-utils
In RHEL4/CentOS4, the yum "reinstall" option may not be available; however, if the RPM "yum-utils" is installed we can simply use the included "yumdownloader" utility. Here are alternative steps using yumdownloader via yum-utils:
Code:
# yum install yum-utils
# yumdownloader shadow-utils
# rpm --force -hUv shadow-utils*.rpm
Please note that, by default, yumdownloader will place the downloaded RPM into the current directory.