projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune
[feisty_meow.git]
/
scripts
/
security
/
password_functions.sh
diff --git
a/scripts/security/password_functions.sh
b/scripts/security/password_functions.sh
index f1e0df135dceed04c85de9fd116385e7bb7f2a6f..490b94d8189c20b03340cecf5c4556761dab1249 100644
(file)
--- 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"
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"
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"
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
}
# reads a password from the console, without echoing the letters when they