delete root from active

This commit is contained in:
2026-06-23 01:16:53 +02:00
parent 59f1607812
commit fc15f8fff7

View File

@@ -2,7 +2,7 @@
<?php
$jsonFile = '/opt/html/online.json';
$activeUsers = shell_exec("ps -eo user=,comm= | awk '$2 ~ /sshd/ {print $1}' | grep -v sshd | sort -u");
$activeUsers = shell_exec("ps -eo user=,comm= | awk '$2 ~ /sshd/ {print $1}' | grep -vE 'sshd|root' | sort -u");
$activeUsersArray = array_filter(explode("\n", $activeUsers));