diff --git a/README.md b/README.md index d683738..08d30f4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ * Accepts input from STDIN or a file * Outputs to STDOUT or a specified output file * Uses `$HOME/.blocked_words.txt` as a pattern file for matching sensitive strings -* Enforces strict file permissions on the config file (`0700` only) +* Enforces strict file permissions on the config file (`0600` only) * Supports custom redaction strings (e.g. `redaction: `) * Ignores comment lines beginning with `#` in both input and config @@ -61,7 +61,7 @@ chmod 700 ~/.blocked_words.txt 1. Clone and build: ```sh -git clone https://your.git.repo/logdebarker.git +git clone https://codeberg.org/firebadnofire/logdebarker.git cd logdebarker go build -o logdebarker ``` diff --git a/main.go b/main.go index 9e9c682..9d08087 100644 --- a/main.go +++ b/main.go @@ -24,8 +24,8 @@ func checkBlockedWordsFilePerm(path string) { } mode := info.Mode().Perm() - if mode != 0o700 { - log.Fatalf("Permission on %s must be 700, found %o", path, mode) + if mode != 0o600 { + log.Fatalf("Permission on %s must be 600, found %o", path, mode) } }