add_new_user.sh: add user axel. ad axel's key to user sysadm.

This commit is contained in:
2018-09-13 15:04:12 +02:00
parent c12e070e67
commit 4b2544e393
3 changed files with 9 additions and 0 deletions

View File

@@ -105,6 +105,11 @@ if $password_needed ; then
elif [[ "$user_name" = 'sysadm' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$vvccwrTc\\\$Sz1HaSb3ujObprltiG7D6U1Rr3fpgfjkKuDDWYdHzPkPx/0pEofCWC.vyTn78hcemkntl.6wVUOnJnNloKt/E/:\2#" /etc/shadow
# - axel
# -
elif [[ "$user_name" = 'axel' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$zUWC465e\\\$XblctxwnBIOa7mPcN6foEQrwChjpwoY7lLtacXJrSsvjZS3I6Ox1mYUtN3/gzkvpbzOPx/9PlRJV.mbl939mD.:\2#" /etc/shadow
# - chris
# -
elif [[ "$user_name" = 'chris' ]]; then