Why can't one add group using ldgroupadd command in Red Hat Enterprise Linux 6.7?

Solution Unverified - Updated -

Issue

  • On Red Hat Enterprise Linux 6.7 with libuser-0.56.13-8.el6_7.x86_64 trying to add a group locally with lgroupadd, it returns with an error code of 2 saying that the group already exists when it doesn't:
root@localhost # uname -a
Linux utora05b 2.6.32-573.1.1.el6.x86_64 #1 SMP Tue Jul 14 02:46:51 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
root@localhost # grep dba /etc/group
root@localhost # lgroupadd dba
Group creation failed: entry already present in file
root@localhost # grep dba /etc/group
dba:x:501:

Environment

  • Red Hat Enterprise Linux 6.7
  • libuser-0.56.13-8.el6_7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content