chmod ssh known hosts file

This commit is contained in:
Arnold Bechtoldt 2014-06-24 21:30:04 +02:00
parent 6be051f07f
commit da953f2220

View File

@ -824,6 +824,8 @@ def set_known_host(user=None,
if os.geteuid() == 0 and user:
os.chown(full, uinfo['uid'], uinfo['gid'])
os.chmod(full, 0644)
return {'status': 'updated', 'old': stored_host, 'new': remote_host}