Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Dec 2015 03:04:55 -0800 (PST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   adduser - gid error?
Message-ID:  <201512041104.tB4B4s5Z091536@mech-as222.men.bris.ac.uk>

Next in thread | Raw E-Mail | Index | Archive | Help
This is on FreeBSD 10.2-RELEASE #0 r286666 amd64.
I haven't seen this problem before.

I'm adding users with adduser.
There are already several users on the system,
which I added ages ago also with adduser.
All those have default gid equal to uid, e.g.:

user1:*:1002:1002: ...
user2:*:1003:1003: ...

For the user I added today I got:

newuser:*:1004:4294967295: ...

Does this look right?

This gid is not a problem in itself, except
when I try to add one more user, I get:


# adduser
Username: newuser
Full name: New User
Uid (Leave empty for default): 
Login group [newuser]: 
Login group is newuser. Invite newuser into other groups? []: 
Login class [default]: 
Shell (sh csh tcsh bash rbash nologin) [sh]: 
Home directory [/home/newuser]: 
Home directory permissions (Leave empty for default): 
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: 
Username   : newuser
Password   : <disabled>
Full Name  : New User
Uid        : 1005
Class      : 
Groups     : newuser 
Home       : /home/newuser
Home Mode  : 
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
pw: gid `4294967295' has already been allocated
adduser: ERROR: There was an error adding user (newuser).

So the system tries to use the same gid,
as is used already for another user.
This makes me think that 4294967295 is
an error.

Can anybody else see this behaviour?

What shall I do?

Thanks

Anton




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201512041104.tB4B4s5Z091536>