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
......@@ -233,6 +233,6 @@ def WriteKnownHostsFile(cfg, file_name):
"""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(),
cfg.GetHostKey()))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment