diff options
Diffstat (limited to 'lib/authenticator-plaintext.lua')
-rw-r--r-- | lib/authenticator-plaintext.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authenticator-plaintext.lua b/lib/authenticator-plaintext.lua index ad6c632..2b6a064 100644 --- a/lib/authenticator-plaintext.lua +++ b/lib/authenticator-plaintext.lua @@ -65,7 +65,7 @@ write_entry = function(self, tabl, field, id, entry) -- Set path to passwordfile local passwd_path = self.conf.confdir .. field .. tabl -- Write the newline into the file - if fs.is_file(passwd_path) == false then fs.create_file(passwd_path) end + if fs.is_file(passwd_path) == false then fs.create_file(passwd_path) posix.chmod(passwd_path, "rw-------") end if fs.is_file(passwd_path) == false then return false end local passwdfilecontent = fs.read_file_as_array(passwd_path) or {} local output = {id .. ":" .. entry} |