adduser - gid error?

Anton Shterenlikht mexas at bris.ac.uk
Fri Dec 4 11:04:57 UTC 2015


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



More information about the freebsd-questions mailing list