From c1c1447d68056051e80d78399360b7783046091b Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 14 Nov 2022 00:58:34 -0500 Subject: [PATCH] Add catch-all for bad verbs --- sshdpw | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sshdpw b/sshdpw index 599cc6b..bd87259 100755 --- a/sshdpw +++ b/sshdpw @@ -15,6 +15,14 @@ case "${1}" in else FROM=no; TO=yes; fi + ;; + *) + echo 'Must specify one of the following:' + echo ' [ on | yes | enable | unlock ] to allow interactive passwords' + echo ' [ off | no | disable | lock ] to disallow interactive passwords' + echo ' [ toggle ] to toggle the allowance of interactive passwords' + echo ' [ status ] to show the current state of interactive passwords' + exit 1 ;; esac