Commit dd6fec7a authored by Leigh Stoller's avatar Leigh Stoller

Remove root/admin restriction; script is informative, but otherwsise

does nothing important, and thus I can run it from protogeni code when
not as root.
parent 90da9d37
......@@ -72,11 +72,6 @@ print "Settings: h=$h d=$d a=$a n=$n s=$s t=$t\n" if $d;
if ($h) { help(); }
# Only root or admin types!
if (($UID != 0) && (!TBAdmin($UID))) {
die("Only root or TB administrators can run idletimes.\n");
}
# Construct the query
my $lastact_query = "greatest(last_tty_act, last_net_act, ".
"last_cpu_act, last_ext_act)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment