git: 70fec4c1c5 - main - handbook: use userid example other than `toor`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Jun 2023 14:45:28 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/doc/commit/?id=70fec4c1c5799844f2269aade3e558535e3d2e79
commit 70fec4c1c5799844f2269aade3e558535e3d2e79
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-06-15 13:29:18 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
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.