The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to create users - Emergency

Discussion in 'General Discussion' started by bdeivid, Oct 8, 2010.

  1. bdeivid

    bdeivid Member

    Joined:
    Jun 1, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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 ???
     
  2. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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.
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
  4. bdeivid

    bdeivid Member

    Joined:
    Jun 1, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1


    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
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Please escalate this issue via a support request

    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.
     
  6. bdeivid

    bdeivid Member

    Joined:
    Jun 1, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1

    Support request is: 950929

    Thnx in advance.
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Steps to replace a corrupted "/etc/login.defs" file in RHEL/CentOS

    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.
     
Loading...

Share This Page