diff --git a/go/libkb/secret_store_file.go b/go/libkb/secret_store_file.go
index <HASH>..<HASH> 100644
--- a/go/libkb/secret_store_file.go
+++ b/go/libkb/secret_store_file.go
@@ -8,6 +8,7 @@ import (
 	"io/ioutil"
 	"os"
 	"path/filepath"
+	"runtime"
 )
 
 var ErrSecretForUserNotFound = NotFoundError{Msg: "No secret found for user"}
@@ -40,8 +41,11 @@ func (s *SecretStoreFile) StoreSecret(username NormalizedUsername, secret []byte
 	if err != nil {
 		return err
 	}
-	if err := f.Chmod(0600); err != nil {
-		return err
+	if runtime.GOOS != "windows" {
+		// os.Fchmod not supported on windows
+		if err := f.Chmod(0600); err != nil {
+			return err
+		}
 	}
 	if _, err := f.Write(secret); err != nil {
 		return err
Don't run chmod on file ptr in windows.