diff --git a/server/kiwi.js b/server/kiwi.js
index <HASH>..<HASH> 100755
--- a/server/kiwi.js
+++ b/server/kiwi.js
@@ -64,11 +64,11 @@ _.each(config.get().servers, function (server) {
 process.title = 'kiwiirc';
 
 // Change UID/GID
-if ((config.get().user) && (config.get().user !== '')) {
-    process.setuid(config.user);
-}
 if ((config.get().group) && (config.get().group !== '')) {
-    process.setgid(config.group);
+    process.setgid(config.get().group);
+}
+if ((config.get().user) && (config.get().user !== '')) {
+    process.setuid(config.get().user);
 }
UID/GID changing in the correct order?