From nobody Wed Apr 12 20:59:59 2023 X-Original-To: doc@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 4PxZpl2HQTz44lDB for ; Wed, 12 Apr 2023 20:59:59 +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 4PxZpl08NWz3scZ for ; Wed, 12 Apr 2023 20:59:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681333199; 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=nCvgKYxhzjHVuXsIk6iyu2pzBqGbK7HVWTh3OqnkJbk=; b=Nz91xXPJOX/y4A4ZYtgANvZ7VNkSgbLce8NcrZa7sruKdWeYwRjpniSPe16rhGMr5f0V/5 a60L0tqd2UdNi8yY2jEFhUt/ovjhfYn7HJlF7rKlDYWsllX5jqdmhbjutGd788bNIJwf40 Zfj9lb++V06BIF0X3ErtIP04VU4h7sG3lDmZxOGBLA4GuFf5vnAogMWKfmQwGDAAGDyy/G FpMPhKatvRuNc4tt26OkshW6HMVJiQYtF/5JBNsYMmV1sGcJGJfkNdA/5wlauAvNk2OciE Wh/0A1PzJBOkQYzHYLggLgvFdLjVwu5pMzi6zLN17+UdD7gKV37vwKCkI0At5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681333199; a=rsa-sha256; cv=none; b=P1J0sCElPz0O+HXir9F3SjriYMngqCsi2p1FrllQ/OGmFNfEjAUTfInLxDsJP0q1fMhp+v 7I3LMRbnL1HAJIkyU1gkQggYwU9GSgPvY0IhoNLrAwnfMNkNycIVy4cJE2fz6YQ5QiHTcj X2wzlyFkMgJsjEZFo0AR3GdIFzk1FqahBn/Kxr+ix7ifg4Qz5ebVdEZ1nW525mn5qaKiLk pXmfi/RLaij/YMaNTHzqt22JVDLZeZNDKZaOo7dAFpr4W6nLOB33g8vesEBk8AAMEV8/4O 5hj3y1FqNHZqEhKGBwgvU8TdG8ROufFt98tz9aZAXUqGxJkC1wtKxQdTcbQZfg== 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 4PxZpk6HmczFMW for ; Wed, 12 Apr 2023 20:59:58 +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 33CKxwi3045370 for ; Wed, 12 Apr 2023 20:59:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33CKxw13045369 for doc@FreeBSD.org; Wed, 12 Apr 2023 20:59:58 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: doc@FreeBSD.org Subject: [Bug 270804] FreeBSD Handbook - Section 31.10.1.3 - Wrong code Date: Wed, 12 Apr 2023 20:59:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Books & Articles X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@crontab.pw X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270804 Bug ID: 270804 Summary: FreeBSD Handbook - Section 31.10.1.3 - Wrong code Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Books & Articles Assignee: doc@FreeBSD.org Reporter: freebsd@crontab.pw I came across a small type in Section 31.10.1.3. Samba Users. The code in t= he handbook says to use: # pdbedit -a username When using the command above, the results below are displayed: root@mercury:/home/anthony # pdbedit -a anthony new password: retype new password: Failed to add entry for user . root@mercury:/home/anthony # In my experience, the -u flag needs to be added to the command # pdbedit -a -u username This way when I run the command, I get a successful result. See below root@mercury:/home/anthony # pdbedit -a -u anthony new password: retype new password: Unix username: anthony NT username:=20=20=20=20=20=20=20=20=20=20 Account Flags: [U ] User SID: S-1-5-21-3825970801-536950418-1120046553-1002 Primary Group SID: S-1-5-21-3825970801-536950418-1120046553-513 Full Name: anthony Home Directory: \\MERCURY\anthony HomeDir Drive:=20=20=20=20=20=20=20=20 Logon Script:=20=20=20=20=20=20=20=20=20 Profile Path: \\MERCURY\anthony\profile Domain: MERCURY Account desc:=20=20=20=20=20=20=20=20=20 Workstations:=20=20=20=20=20=20=20=20=20 Munged dial:=20=20=20=20=20=20=20=20=20=20 Logon time: 0 Logoff time: 9223372036854775807 seconds since the Epoch Kickoff time: 9223372036854775807 seconds since the Epoch Password last set: Sat, 08 Apr 2023 22:12:37 EDT Password can change: Sat, 08 Apr 2023 22:12:37 EDT Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF For your reference, here is the system I am running the command on root@mercury:/home/anthony # uname -a FreeBSD mercury 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd --=20 You are receiving this mail because: You are the assignee for the bug.=