"groupadd" command not working

Discussion in 'Technical' started by HostYim, Mar 13, 2011.

  1. HostYim

    HostYim New Member

    Hi everyone,

    I have a problem when trying to create a new group
    by using command "groupadd" follow by group name

    I've check /etc/group but the group wasn't added.

    and when I use command like :
    # groupadd clamav
    # useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
    useradd: unknown group clamav <<< give me this results ..

    Anyone experiencing problem like this?
  2. HostYim

    HostYim New Member

    I keep searching on the internet but still can't get it to work

    1.I've logged in as "root"
    2.I've try to use fullpath as a command /usr/sbin/groupadd groupname

    Please help! :)
  3. falko

    falko Super Moderator ISPConfig Developer

    What's your distribution?

    Is your new group listed in /etc/groups?
  4. HostYim

    HostYim New Member

    1.CentOS 5.5

    2.Nope, new group doesn't listed in /etc/group
    also group.lock files has created
  5. HostYim

    HostYim New Member

    Now, It's fixed. I found out a solution. Will post soon!
    Last edited: Mar 14, 2011
  6. falko

    falko Super Moderator ISPConfig Developer

    That would be great! :)
  7. HostYim

    HostYim New Member

    You must check your secure log files

    See what it tell you after type commands.


    In my case, /etc/login.defs has been removed from the system.
    That's why my "groupadd" commands doesn't work.

    So, I decided to copy new login.defs from another machine. And it now worked.

Share This Page