From 59abb0ceb9059098e8ca56275f4c2832a4a9d909 Mon Sep 17 00:00:00 2001 From: Thomas Gebert Date: Thu, 24 Jul 2025 12:57:10 +0200 Subject: [PATCH] Add help for redirecting password via file --- password-change-tool/change-user-password.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/password-change-tool/change-user-password.sh b/password-change-tool/change-user-password.sh index 0ab392e..d5c9ff8 100644 --- a/password-change-tool/change-user-password.sh +++ b/password-change-tool/change-user-password.sh @@ -22,7 +22,8 @@ cat << HELP Script to update the password of a user. The password is either - entered interactively - - redirected from STDIN via ${MY_NAME} ... <<< 'newpassword' + - redirected from STDIN via ${MY_NAME} ... <<< 'newpassword' + - redirected from a file via ${MY_NAME} ... < /path/to/file-with-password Usage: $1 [OPTION] Mandatory: @@ -127,4 +128,4 @@ done check_if_root check_user get_password -change_user_password \ No newline at end of file +change_user_password