The check last login loop for listing ssh reject users was wrong

The inside variable user "username" instead of "user"
This commit is contained in:
Clemens Schwaighofer
2023-08-02 09:51:10 +09:00
parent a1af63de39
commit eb194c2f1c

View File

@@ -122,7 +122,7 @@ done;
echo "--------------------->"
echo "Showing current SSH Reject users:"
for user in $(cat /etc/group|grep "${ssh_reject_group}:" | cut -d ":" -f 4 | sed -e 's/,/ /g'); do
echo "${username}";
echo "${user}";
done;
if [ ! -z "${delete_accounts}" ]; then
echo "--------------------->"