From 518edd3cd45fa147a7c5bb3ca5cb717e17a624b2 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 20 Apr 2018 00:04:44 -0600 Subject: [PATCH] Corrected permissions for UUID file --- caddy/caddymain/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy/caddymain/run.go b/caddy/caddymain/run.go index 7e1d0da7..38687fd6 100644 --- a/caddy/caddymain/run.go +++ b/caddy/caddymain/run.go @@ -298,7 +298,7 @@ func initTelemetry() { newUUID := func() uuid.UUID { id := uuid.New() - err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0644) // human-readable this way + err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0600) // human-readable as a string if err != nil { log.Printf("[ERROR] Persisting instance UUID: %v", err) }