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