Connect to the Fail2ban control socket.
f2b.statusf2b.versionf2b.jail_statusf2b.banned_ipsf2b.unban_ipf2b.banipf2b.reload
Debian and Ubuntu — default emisar service user
sudo apt-get install -y acl sudo install -d -m 0755 /etc/systemd/system/fail2ban.service.d printf '%s\n' '[Service]' "ExecStartPost=-/usr/bin/timeout 10 /bin/sh -c 'until [ -S /run/fail2ban/fail2ban.sock ]; do sleep 0.1; done; exec /usr/bin/setfacl -m u:emisar:rw /run/fail2ban/fail2ban.sock'" | sudo tee /etc/systemd/system/fail2ban.service.d/emisar-access.conf >/dev/null sudo systemctl daemon-reload sudo systemctl restart fail2ban
sudo -u emisar fail2ban-client status
Impact: Any process running as emisar can control Fail2ban through its socket. Every listed read and mutating action gains that authority. The bounded systemd hook reapplies the ACL whenever Fail2ban recreates the socket; the verification command reports a failed grant without taking Fail2ban down.