mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #847: Login files are created with 0600 permissions
This commit is contained in:
parent
898750a790
commit
20b67c6e59
@ -86,6 +86,8 @@ class SshAuth
|
||||
file.write(proxy)
|
||||
file.close
|
||||
|
||||
File.chmod(0600,LOGIN_PATH)
|
||||
|
||||
secret_crypted
|
||||
end
|
||||
|
||||
|
@ -157,6 +157,8 @@ private
|
||||
file = File.open(LOGIN_PATH, "w")
|
||||
file.write(login_txt)
|
||||
file.close
|
||||
|
||||
File.chmod(0600,LOGIN_PATH)
|
||||
end
|
||||
|
||||
# Load class options form a configuration file (yaml syntax)
|
||||
|
Loading…
x
Reference in New Issue
Block a user