diff --git a/utils/grabswitchconfig.in b/utils/grabswitchconfig.in
index d76dc86841b98f21be13c8c969ce02f9479f4362..996019f1cffab55cf51a80e75ff058874f819dd8 100644
--- a/utils/grabswitchconfig.in
+++ b/utils/grabswitchconfig.in
@@ -27,7 +27,7 @@ sub usage() {
     exit 1;
 }
 
-if (!TBAdmin($UID)) {
+if ($UID && !TBAdmin($UID)) {
     die "*** $0:\n" .
         "    Sorry, only admins get to run this script\n";
 }