diff options
-rwxr-xr-x | iurt2 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -646,6 +646,7 @@ if ($run{use_cache}) { $run{daydate} = $daydate; plog('DEBUG', "using $run{run} as chroot extension"); $run{user} = $ENV{SUDO_USER} || $ENV{USER}; +die "Iurt should not be executed as root." if $run{user} == "root"; $run{uid} = getpwnam $run{user}; plog('DEBUG', "using local user $run{user}, id $run{uid}"); |