diff --git a/console.php b/console.php
index 3fee81c70c7965f028bb3e3b1abdc4d0f11bc649..a5808f4a06ae710caa2141d1137a2f1c4df6bc0d 100644
--- a/console.php
+++ b/console.php
@@ -54,7 +54,7 @@ try {
 			exit(0);
 		}
 		$user = posix_getpwuid(posix_getuid());
-		$configUser = posix_getpwuid(fileowner(OC::$SERVERROOT . '/config/config.php'));
+		$configUser = posix_getpwuid(fileowner(OC::$configDir . 'config.php'));
 		if ($user['name'] !== $configUser['name']) {
 			echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
 			echo "Current user: " . $user['name'] . PHP_EOL;