aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-06-15 13:29:18 +0000
committerEd Maste <emaste@FreeBSD.org>2023-06-15 14:44:48 +0000
commit70fec4c1c5799844f2269aade3e558535e3d2e79 (patch)
treef4da0ff688aff3025d559d6d455d0fd26dbaeb35
parent3b2548e4676e3a176f66d45f8371906fe392aa0f (diff)
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
-rw-r--r--documentation/content/en/books/handbook/security/_index.adoc6
1 files 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.