aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiurt21
1 files changed, 1 insertions, 0 deletions
diff --git a/iurt2 b/iurt2
index 9102dac..263d3f5 100755
--- a/iurt2
+++ b/iurt2
@@ -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}");