diff --git a/src/Mhwd.cpp b/src/Mhwd.cpp
index 8a9dda88f5198da995d2035d246243b9e8184764..4851199a8b0ee73558968be4ee0845e2acb2ac7b 100644
--- a/src/Mhwd.cpp
+++ b/src/Mhwd.cpp
@@ -1220,7 +1220,11 @@ int Mhwd::launch(int argc, char *argv[])
     // Transaction
     if (arguments_.INSTALL || arguments_.REMOVE)
     {
-        if (isUserRoot())
+        if (!isUserRoot())
+        {
+            printer_.printError("You cannot perform this operation unless you are root!");
+        }
+        else
         {
             for (auto&& configName = configs_.begin();
                     configName != configs_.end(); configName++)
@@ -1296,10 +1300,6 @@ int Mhwd::launch(int argc, char *argv[])
                 }
             }
         }
-        else
-        {
-            printer_.printError("You cannot perform this operation unless you are root!");
-        }
     }
     return 0;
 }