Files
atap/ATAPAuditor/Helpers/ShellScripts/RHEL9/CIS100_RHEL9_562_2.sh
T
2026-05-11 09:15:08 +02:00

4 lines
142 B
Bash

#!/usr/bin/env bash
{
awk -F: '/nologin/ {print $1}' /etc/passwd | xargs -I '{}' passwd -S '{}' | awk '($2!="L" && $2!="LK") {print $1}'
}