diff --git a/utils/airtime-check-system.php b/utils/airtime-check-system.php index 3ed877cd4..c14e9715d 100644 --- a/utils/airtime-check-system.php +++ b/utils/airtime-check-system.php @@ -32,8 +32,9 @@ class AirtimeCheck { public static function ExitIfNotRoot() { // Need to check that we are superuser before running this. + $euid = posix_geteuid(); $user = posix_getlogin(); - if($user != "root" && $user != "www-data"){ + if($euid != 0 && $user != "www-data"){ echo "Must be root user.\n"; exit(1); }