From nobody Thu Jun 15 14:45:28 2023 X-Original-To: dev-commits-doc-all@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 4QhlT43s56z4dGwK for ; Thu, 15 Jun 2023 14:45:28 +0000 (UTC) (envelope-from git@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 4QhlT43MKRz3lK6; Thu, 15 Jun 2023 14:45:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686840328; 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=fJgCVJWH8CGa2m03mbLDFlJudw3eAexjqMVvpXxLRwc=; b=izUrx0v6kezIZDIDC6SlPe6yd5iI4WGdyMw1Ahiw2OgFBru5CraXtC8Ulz3T5WyErckmOP HlI4jvLxov9wTLHlTwjhiI1ab6GZqIAwwAqQLHJUIUoghFHQos8S1Gd0LsEWN3ehFCj+LO zP5g8+wllgm+V8Bhp4QNO6+Fkwx0AQFkuOCHAchhLY7U7arpf1f0sE2Yn+B0hoai1sATGk qTSaPIOZtw0Yxb8r3TUF4DiIWv60oBGXnFWl9W1ms9pbQ1hLJvWeX5rLm+WDbGoJKhqRaQ KFvfrdm7rncwAPlJQE6Ih1d/bgcpyRqWDw/lf+7JyFcFK8g6RU8KWPl0pbJqAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686840328; 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=fJgCVJWH8CGa2m03mbLDFlJudw3eAexjqMVvpXxLRwc=; b=SOi2TYG0UzRQUgSDB0KUdYM+/8pTzsW0iTfvVrQI9SU6IBBhmvfPZEthl0Xn8dYvr3G4PJ BaH3hA8uITnrjAOe6AEa2hXvabZGke9YnmqJzZMouB1RHimUq8SrXZm3WSWJ6pe/wSG3/g nPw0zR3GYz735UEMLp+1xof7xMPaXjNwATwpJQkq0BMTkL5rst3+dptzRl+SseTUXWPJ4E /1vjHi9ffUYZLpc98qWoNDxdE3iyLXD9L1bcR0k8taBN5a27/pAfuGQHfSc1o9GOsyRdnA 6R6wrKPyWgJvfKHKvgZV7EPrhoNmn4WoB0I4WMxo114IaGmu2q5Re8VRP4t7jQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686840328; a=rsa-sha256; cv=none; b=w8Ql+c3v/ULlW015G5ln5tbMTxTVCZEn21MBu2z0bLt9ihuGq7HtEpJJwTi9ct1oMzZoff KrBMkEv8ldrPlLoePmJ4ZpvfxTVC0O9k0/BSlVYy/tXEvTeMQxj2KZnDQdXu9aLQ30FNuW CSCReu9gCiWXAlmufKMskf0QmIcsZ5fvb9vCzBBwYEY5yX4wAoJstKVOQ6anOSqFX38fkJ X7RmnfD4IAVqhCrdWb5q+r8w2vpqJCr2Ds+A8cIZUUIwsLHFvUdOeR9Orw7P2aUKRQJUTw BAF35kOttza+0S3GGm+4HDk6IkccuBdlXOMNhdWvjXNjebpGhBJ3FBXonNtHrw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4QhlT42FcKzq5N; Thu, 15 Jun 2023 14:45:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35FEjSXS003787; Thu, 15 Jun 2023 14:45:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35FEjSOg003786; Thu, 15 Jun 2023 14:45:28 GMT (envelope-from git) Date: Thu, 15 Jun 2023 14:45:28 GMT Message-Id: <202306151445.35FEjSOg003786@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Ed Maste Subject: git: 70fec4c1c5 - main - handbook: use userid example other than `toor` List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 70fec4c1c5799844f2269aade3e558535e3d2e79 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/doc/commit/?id=70fec4c1c5799844f2269aade3e558535e3d2e79 commit 70fec4c1c5799844f2269aade3e558535e3d2e79 Author: Ed Maste AuthorDate: 2023-06-15 13:29:18 +0000 Commit: Ed Maste CommitDate: 2023-06-15 14:44:48 +0000 handbook: use userid example other than `toor` The example `pw lock` invocation does not need to reference a superuser account, so just use a hypothetical user's userid. I chose an arbitrary name from Wikipedia's Unisex_name page. Reviewed by: debdrup Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40566 --- documentation/content/en/books/handbook/security/_index.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/content/en/books/handbook/security/_index.adoc b/documentation/content/en/books/handbook/security/_index.adoc index 0185fea3b4..3488dbd985 100644 --- a/documentation/content/en/books/handbook/security/_index.adoc +++ b/documentation/content/en/books/handbook/security/_index.adoc @@ -120,11 +120,11 @@ Disable any accounts that do not need login access. To deny login access to accounts, two methods exist. The first is to lock the account. -This example locks the `toor` account: +This example locks the `imani` account: [source,shell] .... -# pw lock toor +# pw lock imani .... The second method is to prevent login access by changing the shell to [.filename]#/usr/sbin/nologin#. @@ -132,7 +132,7 @@ Only the superuser can change the shell for other users: [source,shell] .... -# chsh -s /usr/sbin/nologin toor +# chsh -s /usr/sbin/nologin imani .... The [.filename]#/usr/sbin/nologin# shell prevents the system from assigning a shell to the user when they attempt to login.