From nobody Sat Jan 28 01:32:45 2023 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 4P3cQ56JlGz3bnnN for ; Sat, 28 Jan 2023 01:32:45 +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 4P3cQ55478z3mX0 for ; Sat, 28 Jan 2023 01:32:45 +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=1674869565; 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=HpdroFDNuSMoXnF+gnzf8+u/WfphVjOxEpXQQkTdAU0=; b=KvgGlG0nx+P0WkLnSdLKmGWUwBQf4tkx2MUKDTjWn3WP5P1Av/cINSkEF/IAbjS9BvO+nr mAweYxv6pN39SV0xzAvHcCvOiJ4pUcEgZ976V4CKI4/8JRLtl11euLQaAWhQIy/3rIk0eR ohxOCTK9bRgnsVQV2lWFkdU99u7jVjQmlsRUVeQ2s5M9QOMqRGghZWfYO/DlE01WxbeMTv o0uWlthz/lNrNd6OGBYO2aRPMaEUF/n4UoP9dgKrvxNhtHRXKPj/BgEmWPXLwo+9Xu4ssI 4ZJYSNjUghmf1bEwnaQDF4X6wpuKFYaADBPikg0bsOTt1OmeiHIb7Du8cxlYPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674869565; a=rsa-sha256; cv=none; b=Ltw+CYxA06x5fcbbEh3yECioO+FSt7c/fuo+SNOrxoTJmDMiOAm9xwlJftQOk7g5U5x22i 7WaiMFK0ndZswVoThol9t2gnD940qWPQhOiEQt2oJ56GrvP0wlOX3a1F3BB5BqZsbasc3T AJm9Aq23NMdvUPpWcF9nFSDhMe8O76412ToZIuBgqHWBs+zU2bx9WzhgczEywiKbMD/Hfx Hb2zXB6OnfHaLopckj2AkaCsps2pbvc4/8kROjswlHPSF0DDjIVj/FG/2WhKOHdzd0L2Wd MlW3OCYEe7IE+4zvEbKB5x5UFvm9r/xicOB4UjAhnEkekuuRAO/qHR/mbsrJzw== 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 4P3cQ53qHMzW9b for ; Sat, 28 Jan 2023 01:32:45 +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 30S1WjrV001351 for ; Sat, 28 Jan 2023 01:32:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30S1Wjou001350 for bugs@FreeBSD.org; Sat, 28 Jan 2023 01:32:45 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 269193] manpage for pw seems unclear for usermod and the use of -n name Date: Sat, 28 Jan 2023 01:32:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dclarke@blastwave.org 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269193 Bug ID: 269193 Summary: manpage for pw seems unclear for usermod and the use of -n name Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: dclarke@blastwave.org The manpage for pw states in a section for "USER OPTIONS" :=20 USER OPTIONS The following options apply to the useradd and usermod commands: [-n] name Required unless -u uid is given. Specify the user/accou= nt name. In the case of usermod can be a uid. -u uid Required if name is not given. Specify the user/account numeric id. In the case of usermod if paired with name, changes the numeric id of the named user/account. Usually, only one of these options is required, as the account name will imply the uid, or vice versa. However, there are times when both are needed. For example, when changing the uid of an existing user with usermod, or overriding the default uid when creating a new account w= ith useradd. To automatically allocate the uid to a new user with useradd, then do not use the -u option. Either the account or userid can also be provided immediately after the useradd, userdel, usermod, or usershow keywords on t= he command line without using the -n or -u options. Therefore I would think that "pw usermod -n 16411 -s /bin/sh" would be accepted since "In the case of usermod can be a uid." However :=20 styx# pw usermod -n 16411 -s /bin/sh pw: no such user `16411' styx#=20 I certainly do not want to change the uid of the user. The manpage states "-u uid" results in "In the case of usermod if paired with name, changes the numeric id of the named user/account. Well I do not want to change the userid number.=20 However it seems I need to state the username and not the uid : styx# pw usermod -n dclarke -s /bin/sh styx# Seems unclear to me. --=20 You are receiving this mail because: You are the assignee for the bug.=