1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update profile_ssh_warn.sh

This commit is contained in:
A Holt 2018-10-15 03:25:07 -04:00 committed by GitHub
parent 0fce6306bf
commit 04fbf9cdbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ check_hash () {
#test -n "${SHADOW}" || return 0
#if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
#SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
#if [ "$SHADOW_PW" != '{{ iiab_admin_passw_hash }}' ]; then return 0 ; fi
#if [ "$SHADOW_PW" != '{{ iiab_admin_pwd_hash }}' ]; then return 0 ; fi
if check_user_pwd "iiab-admin" "g0adm1n"; then
echo -e "\nSSH is enabled and the default password for the 'iiab-admin' user is unchanged."
echo -e "This is a security risk - please login as user 'iiab-admin' and run 'passwd' to change its password.\n"