Skip to content
Snippets Groups Projects
Commit 70f14f8d authored by Janis Streib's avatar Janis Streib
Browse files

UPD: better description for config file rights

parent a3c9eb3f
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ Variable precendence is as followed (from greatest to least,means the first list
```
### Config file
An example config can be found in this repo (`example_config.ini`). Be aware to set the file mode of the config to `0660`.
An example config can be found in this repo (`example_config.ini`). Be aware to set the file mode of the config at least to `0600` but never other-readable.
## Examples
More examples can be found in the [wiki article](https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib/-/wikis/examples)
......
......@@ -48,7 +48,7 @@ class ArgumentParser(argparse.ArgumentParser):
configpath = os.path.expanduser(args.auth_config)
if os.path.isfile(configpath):
if os.stat(configpath).st_mode & stat.S_IRWXO:
self.error(f"Config file is readable by others. Please set it at least to 660.")
self.error(f"Config file is readable by others. Please set it at least to 600 but never other-readable.")
config.read(configpath)
def load_config(option):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment