Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-11-26
11
Medium Priority
?
481 Views
Last Modified: 2013-11-22
Why is this message appearing with every new user created?

Thanks in advance!
-D-
0
Comment
Question by:John Gates, CISSP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 29

Expert Comment

by:TeRReF
ID: 18019622
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
 
LVL 18

Author Comment

by:John Gates, CISSP
ID: 18019736
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
 
LVL 29

Expert Comment

by:TeRReF
ID: 18019783
What utility are you using to add users? Is is adduser? And are you adding users as root?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 18

Author Comment

by:John Gates, CISSP
ID: 18019808
adduser yes and of course as root 8)
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 18019987
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
 
LVL 18

Author Comment

by:John Gates, CISSP
ID: 18020244
The last user I created got the GID 1010 so I am even more confused why that message appears...
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 18020393
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
 
LVL 18

Author Comment

by:John Gates, CISSP
ID: 18020465
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
 
LVL 29

Accepted Solution

by:
TeRReF earned 2000 total points
ID: 18043739
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
 
LVL 18

Author Comment

by:John Gates, CISSP
ID: 18044766
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
 
LVL 29

Expert Comment

by:TeRReF
ID: 18044777
You're welcome :)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question