diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index 27343e9cd7fc4cf8a86e5b1451acc3f2d965c968..ec82e3d39d96e40ead113ad87dc19b2ab20d7d3f 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -614,7 +614,7 @@ checkPerms name =
       -- #8248: Improving warning to include a possible fix.
       putStrLn $ "*** WARNING: " ++ name ++
                  " is writable by someone else, IGNORING!" ++
-                 "\nSuggested fix: execute 'chmod 644 " ++ name ++ "'"
+                 "\nSuggested fix: execute 'chmod go-w " ++ file ++ "'"
     return ok
 #endif