Skip to content
Snippets Groups Projects
Commit a3f9f296 authored by Guido Trotter's avatar Guido Trotter
Browse files

Give a sane permission to the known_host file

Reviewed-by: iustinp
parent 15552312
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,6 @@ def WriteKnownHostsFile(cfg, file_name): ...@@ -233,6 +233,6 @@ def WriteKnownHostsFile(cfg, file_name):
"""Writes the cluster-wide equally known_hosts file. """Writes the cluster-wide equally known_hosts file.
""" """
utils.WriteFile(file_name, mode=0700, utils.WriteFile(file_name, mode=0600,
data="%s ssh-rsa %s\n" % (cfg.GetClusterName(), data="%s ssh-rsa %s\n" % (cfg.GetClusterName(),
cfg.GetHostKey())) cfg.GetHostKey()))
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