Recommend access rights of 400 for config file.

This commit is contained in:
Martin Dosch 2024-07-09 21:46:58 +02:00
parent 5fb133eb01
commit 3dd1a520cd
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

View File

@ -76,7 +76,7 @@ func parseConfig(configPath string) (configuration, error) {
perm := info.Mode().Perm()
permissions := strconv.FormatInt(int64(perm), 8)
if permissions != "600" && permissions != "640" && permissions != "440" && permissions != "400" {
return output, fmt.Errorf("parseConfig: wrong permissions for %s: %s instead of 400, 440, 600 or 640", configPath, permissions)
return output, fmt.Errorf("parseConfig: wrong permissions for %s: %s instead of 400 (recommended), 440, 600 or 640", configPath, permissions)
}
}