From owner-freebsd-questions@freebsd.org Fri Dec 4 11:04:57 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD9A6A40D7F for ; Fri, 4 Dec 2015 11:04:57 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CB63178D for ; Fri, 4 Dec 2015 11:04:57 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wmuu63 with SMTP id u63so57265143wmu.0 for ; Fri, 04 Dec 2015 03:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to; bh=JW241bBFyo+GwRQE7uTo6BAeSv2AcfVRThJH+2K/IIA=; b=OuNYX4YGYxv66Xypx/77xqqurlgRon6USEAYBMjuFPw9ez9QoG4bh7fO2cHXrKVSHU tC+7+mwJMVMUFBN4aXZaEStHhCyATjGl/HabBv9RCXL14l5AdbA00Qnne4D4Ek6Bb/g6 XN74J/+IgHOcporqCGX0two9yxzUoMLYsEkZkX5fhnsUQSsObBOKH7Pegi94NdjhZaYE SorD6s6yFVPVkjq179Mnph72hGip7SY85DoYfGG49gs1THZRfQM1rrNXSsxlZ6VqUu9J OFAkj83UN34UxDuhmIGHpxjSLaIi+GYjtSep6+fxcKBKWTdeN1YMJ5ktDhL2xA87eOTJ ua1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=JW241bBFyo+GwRQE7uTo6BAeSv2AcfVRThJH+2K/IIA=; b=gmRONASefIbFHJD5vE+M3yzTf33lugIxYINyRE8ohiGPFtKMTEiNvhX7d7r9IeVt9h K6SJqyIwCjLrtBIvT4DbVN2MP3RyMyMHFTT2YjcNDtUgWIkXPS43jxPpsmZj4IuFP6zq 2DaqVT5OmcTBAqnz0AnljqgVkS3W5HFPCELelr3X00hESvEe0i+CTlibRwozv9sLugL2 PcEH++Z9i/YVDzymzhVXkrlcCDWEKjwHnEIb4uOJ4xj13y0Xfn0uU91zwMRhR8q0BMxq I4kQcAteuBRPR0ARwoVMFeqpxMyPHwQo8aEjW7L7mXFSwdUqucosnylW7BS8LC1bPEzJ Hrxg== X-Gm-Message-State: ALoCoQnYodnzGVZiwgUWC8tEJ3TlmZWd3mupoqyr3g5MBaR0ukWp8Zq0rxWWntfkLhUdUjBdolvA X-Received: by 10.194.236.228 with SMTP id ux4mr17277670wjc.56.1449227095425; Fri, 04 Dec 2015 03:04:55 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id jm4sm11576131wjb.7.2015.12.04.03.04.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2015 03:04:55 -0800 (PST) Date: Fri, 04 Dec 2015 03:04:55 -0800 (PST) X-Google-Original-Date: Fri, 4 Dec 2015 11:04:54 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id tB4B4sAP091537 for ; Fri, 4 Dec 2015 11:04:54 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id tB4B4s5Z091536 for freebsd-questions@freebsd.org; Fri, 4 Dec 2015 11:04:54 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201512041104.tB4B4s5Z091536@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: adduser - gid error? Reply-To: mexas@bris.ac.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 11:04:57 -0000 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 : 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