mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Update profile_ssh_warn.sh
This commit is contained in:
parent
09bc69970d
commit
4d639a22a3
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ check_hash () {
|
||||||
#if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
|
#if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
|
||||||
#SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
|
#SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
|
||||||
#if [ "$SHADOW_PW" != '{{ iiab_admin_pwd_hash }}' ]; then return 0 ; fi
|
#if [ "$SHADOW_PW" != '{{ iiab_admin_pwd_hash }}' ]; then return 0 ; fi
|
||||||
if check_user_pwd "iiab-admin" "g0adm1n"; then
|
if check_user_pwd "iiab-admin" "{{ iiab_admin_published_pwd }}"; then
|
||||||
echo -e "\nSSH is enabled and the default password for the 'iiab-admin' user is unchanged."
|
echo -e "\nSSH is enabled and the default password for the 'iiab-admin' user is unchanged."
|
||||||
echo -e "This is a security risk - please log in as user 'iiab-admin' and run 'passwd' to change its password.\n"
|
echo -e "This is a security risk - please log in as user 'iiab-admin' and run 'passwd' to change its password.\n"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue