From nobody Fri Mar 04 12:01:00 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 91C4F1A04B65 for ; Fri, 4 Mar 2022 12:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K95zJ2mSZz4q76 for ; Fri, 4 Mar 2022 12:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4037C38D8 for ; Fri, 4 Mar 2022 12:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 224C10BX049668 for ; Fri, 4 Mar 2022 12:01:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 224C10nZ049667 for bugs@FreeBSD.org; Fri, 4 Mar 2022 12:01:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262339] pw useradd fails when winbindd is active Date: Fri, 04 Mar 2022 12:01:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tictactux@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646395260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aQatgbNXQ3FDjI9bT3D87RGSjFRv2ZVPw1DrL+vZHRU=; b=Auz1GOIPQIl7JE0d8YEK1Tay6b4Lfv01fMiA3XeFb7ufx7m1aQqnH1Up96PpMiq5i8caDU wRAxgKa3tpYWSBlMS2AGZWePb2Cj1a2WuHW0SwapPVlbTrMFJPhpZsU6AywZVpJGrxpT+j hLN2rfooqqCcsu5A8pT4AvIIbBvlFMaxRRHFpgS2bNZDohtOGD15ZcXblV7C7d7+1wBUe5 hXqjnVaaf+ITHk8AfV1u1nPbUd6R0SoS4pvCKnPMXV1633aEXdWaVYC+H89edDmqrJG50Y 2vF2Wh1tw6pvcGWD1E/dzNg8wYeZyLqBiVyrB6tn0vc0zU/CrbnH4gLhWDe5aQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646395260; a=rsa-sha256; cv=none; b=x9uwd722VkKUgMjOJVx8Np4+J5Fcg2T68OLM8JOJYn/DYiLBJc/UwrB5IbO6/4fH3mVb+N 7MznfqNovUXZckPT/kGPd1RfvbRwG8bZIPtf4DNlwSGiOh9lG1wM9iZxyWjr5Dlbcipd0+ xCQ4rwVSvmonaLrFfqTQ8fmNptfdkCz/qtvpL3Sn5o6ae/ylvrvrypKkby2FoUh05djBnN NtFJxRR0cVoPhSMsJP4BscplrnUWcK1Nwazea2ogv8qQflTp6B94dS0VFTQtvJpEoHeyr6 bN+3VsgDxbHIs0sh1EH19IReZf9qQlDZZAY5fYHN9g8wKYZepmskIRsuaEm+Cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262339 Bug ID: 262339 Summary: pw useradd fails when winbindd is active Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tictactux@gmail.com Scenario: create a new local user Problem: ~ $ sudo pw useradd testuser pw: gid '19108' has already been allocated Solution: An uid and gid must be explicitly set, only then pw useradd would succeed. Cause: samba and winbindd are running, and winbind is present in /etc/nsswitch.conf Comment: After stopping samba, the user is successfully added to /etc/passwd with the next-in-sequence uid. Workaround: stopping either samba or commenting out the "winbind" reference in /etc/nsswitch.conf solves the issue. Could it be possible duplicate or relative of bug 205019? Best, Ben --=20 You are receiving this mail because: You are the assignee for the bug.=