From cc976fe20de4f8549621e6a3b5b56e132a4c2ade Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 26 Oct 2018 17:17:19 -0400 Subject: [PATCH] Update lxde_ssh_warn.sh --- roles/iiab-admin/templates/lxde_ssh_warn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/iiab-admin/templates/lxde_ssh_warn.sh b/roles/iiab-admin/templates/lxde_ssh_warn.sh index 3ee215aab..db073878c 100755 --- a/roles/iiab-admin/templates/lxde_ssh_warn.sh +++ b/roles/iiab-admin/templates/lxde_ssh_warn.sh @@ -1,6 +1,6 @@ #!/bin/bash -check_user_pwd () { +check_user_pwd() { # $meth (hashing method) is typically '6' which implies 5000 rounds # of SHA-512 per /etc/login.defs -> /etc/pam.d/common-password meth=$(sudo grep "^$1:" /etc/shadow | cut -d: -f2 | cut -d$ -f2) @@ -10,7 +10,7 @@ check_user_pwd () { } # credit to the folks at raspberry pi foundatioon -check_hash () { +check_hash() { if ! id -u iiab-admin > /dev/null 2>&1 ; then return 0 ; fi if grep -q "^PasswordAuthentication\s*no" /etc/ssh/sshd_config ; then return 0 ; fi #test -x /usr/bin/mkpasswd || return 0