Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

pw: unable to allocate a new gid - range fully used

Why is this message appearing with every new user created?

Thanks in advance!
-D-
0
John Gates, CISSP
Asked:
John Gates, CISSP
  • 6
  • 5
1 Solution
 
TeRReFCommented:
How many users are already present?
You've probably used up al available group ids and with every new user, a new group id is needed (for their own group)
0
 
John Gates, CISSPSecurity ProfessionalAuthor Commented:
The user creation continues and there does not seem to be a problem...  But why is this message appearing, and how do I get rid of it?  There are not many users on the system at all maybe 3-4 users over the base system.
0
 
TeRReFCommented:
What utility are you using to add users? Is is adduser? And are you adding users as root?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
John Gates, CISSPSecurity ProfessionalAuthor Commented:
adduser yes and of course as root 8)
0
 
TeRReFCommented:
Well, I hardly use root, I'm a big fan of sudo. But some things just need root, adduser is not one of them ;P
Anyway, When you add a user, the users Group ID should be within a certain range. Usually this range is between 1000 and 32000 and it's set by min_gid and max_gid.

adduser should be able to retrieve next_gid (which is the next available free gid) and use that for the new users own group. In your case it should be around 1005.

Have a look at your passwd file with
# vipw
and see what groupids are used for your current users.
0
 
John Gates, CISSPSecurity ProfessionalAuthor Commented:
The last user I created got the GID 1010 so I am even more confused why that message appears...
0
 
TeRReFCommented:
Looking at the source of pw_group.c I find this:

    330             /*
    331              * Another sanity check
    332              */
    333             if (gid < cnf->min_gid || gid > cnf->max_gid)
    334                   errx(EX_SOFTWARE, "unable to allocate a new gid - range fully used");

In other words you only get the message  if gid is out of range. That doesn't help you any further of course. It just means that min_gid and/or max_gid is not set properly.

If you add a user, what groupid does adduser suggest?
0
 
John Gates, CISSPSecurity ProfessionalAuthor Commented:
Username: test
Full name:
Uid (Leave empty for default):
pw: unable to allocate a new gid - range fully used
Login group [test]:
Login group is test. Invite test into other groups? []:
Login class [default]:

this is what the output looks like but my guess is 1011 will be the next id given.
0
 
TeRReFCommented:
Have a look at /etc/group
All group ids should be below 1000, except for the created users and these two:
nogroup:*:65533:
nobody:*:65534:

If that's not the case, the cause of the message might be coming from there...
0
 
John Gates, CISSPSecurity ProfessionalAuthor Commented:
Somehow my username had a 30000 GID...  I am guessing that happened in one of the upgrade processes somehow..  Thanks for your help!  The message is gone.
0
 
TeRReFCommented:
You're welcome :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now