diff --git a/Rocksolid_Light/rslight/scripts/account_manager.php b/Rocksolid_Light/rslight/scripts/account_manager.php index 4071a44..340f372 100644 --- a/Rocksolid_Light/rslight/scripts/account_manager.php +++ b/Rocksolid_Light/rslight/scripts/account_manager.php @@ -1,7 +1,15 @@ - /groups.txt */ +include ("paths.inc.php"); +chdir($spoolnews_path); include "config.inc.php"; include ("$file_newsportal"); +$processUser = posix_getpwuid(posix_geteuid()); +if ($processUser['name'] != $CONFIG['webserver_user']) { + echo "You are running as: " . $processUser['name'] . "\n"; + echo 'Please run this scripts as: ' . $CONFIG['webserver_user'] . "\n"; + exit(); +} + $logfile = $logdir . '/import.log'; $lockfile = $lockdir . '/' . $config_name . '-spoolnews.lock';