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:
parent
98ad5fc65c
commit
f2860f859f
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@ check_hash () {
|
||||||
#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" "{{ iiab_admin_published_pwd }}"; 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 published password for user 'iiab-admin' is in use."
|
||||||
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'"
|
||||||
|
echo =e "to change its password.\n"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue