mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
chmod ssh known hosts file
This commit is contained in:
parent
6be051f07f
commit
da953f2220
@ -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}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user