1
0
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:
Ruben S. Montero 2011-10-25 22:38:18 +02:00
parent 898750a790
commit 20b67c6e59
2 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,8 @@ class SshAuth
file.write(proxy)
file.close
File.chmod(0600,LOGIN_PATH)
secret_crypted
end

View File

@ -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)