3

Below is the terminal execution

[root@machine chef-server]# useradd -s '/bin/sh' -d '/opt/chef-server/embedded' -r chef_server
useradd: Can't get unique system GID (no more available GIDs)
useradd: can't create group
[root@machine chef-server]# uname -a
Linux machine 2.6.39-300.20.1.el6uek.x86_64 #1 SMP Mon Nov 12 04:30:55 PST 2012 x86_64 x86_64 x86_64 GNU/Linux

What is preventing the group creation?

The command is generated by Chef server reconfigure command and i don't have any control on it.

1 Answers1

8

Just add SYS_GID_MIN and SYS_GID_MAX inside /etc/login.defs:

SYS_GID_MIN               2000
SYS_GID_MAX               9000
bbodenmiller
  • 1,075