X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Fpassword_functions.sh;h=490b94d8189c20b03340cecf5c4556761dab1249;hb=c02e632d0e6514ccaad532b79022e9172a3cd00b;hp=f1e0df135dceed04c85de9fd116385e7bb7f2a6f;hpb=e768391ab81b189397f0fd19827999365f8b3e33;p=feisty_meow.git diff --git a/scripts/security/password_functions.sh b/scripts/security/password_functions.sh index f1e0df13..490b94d8 100644 --- a/scripts/security/password_functions.sh +++ b/scripts/security/password_functions.sh @@ -46,13 +46,13 @@ and (2) the password that should be stored. fi echo "$passwd" > "$passfile" - test_or_die "writing password into the file $passfile" + exit_on_error "writing password into the file $passfile" chown root:root "$passfile" - test_or_die "chowning the password file to root ownership for: $passfile" + exit_on_error "chowning the password file to root ownership for: $passfile" chmod 600 "$passfile" - test_or_die "restricting permissions on password file for: $passfile" + exit_on_error "restricting permissions on password file for: $passfile" } # reads a password from the console, without echoing the letters when they