all: adjust Unix permissions for those without umasks

Fixes tailscale/corp#1165

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-01-11 19:16:14 -08:00
committed by Brad Fitzpatrick
parent 6b08303b0f
commit d6e9fb1df0
5 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ func writeNewConfig() config {
if err != nil {
log.Fatal(err)
}
if err := atomicfile.WriteFile(*configPath, b, 0666); err != nil {
if err := atomicfile.WriteFile(*configPath, b, 0600); err != nil {
log.Fatal(err)
}
return cfg