X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Fpassword_functions.sh;h=490b94d8189c20b03340cecf5c4556761dab1249;hb=4ffc6bb410991d5d7deaed90a02a158d7b65a406;hp=ca365fd263efe101f2924fc8f36fa2ec1246191b;hpb=b1e7d8ba0ee42faaeed416dac81d5b55a3aec508;p=feisty_meow.git diff --git a/scripts/security/password_functions.sh b/scripts/security/password_functions.sh index ca365fd2..490b94d8 100644 --- a/scripts/security/password_functions.sh +++ b/scripts/security/password_functions.sh @@ -28,8 +28,6 @@ function load_password() # return the password in the variable they provided. eval $varname="$passwd" -#echo varname is: $varname -#echo new value of that variable is ${!varname} } # stores a password into a password file. the password file should be the @@ -48,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 @@ -75,8 +73,6 @@ function read_password() stty $stty_orig # return the password in the variable they provided. eval $varname="$the_passwd" -#echo varname is: $varname -#echo new value of that variable is ${!varname} }