diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-21 08:43:07 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-21 08:43:07 +0200 |
commit | dffa9c57fee931e4de53e3ae955d632dcd77a42d (patch) | |
tree | 29d5ec73e8afacb374e93c2320081cd64c9e7b07 | |
parent | 77a89299f4764dc92b2e0fbedb1a6853256320ef (diff) |
luci-mod-system: sshkeys.js: create authorized_keys as 0600
Fixes: #3226
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js index 84a1d6487..05d41b0dd 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js @@ -117,7 +117,7 @@ function renderKeys(keys) { } function saveKeys(keys) { - return fs.write('/etc/dropbear/authorized_keys', keys.join('\n') + '\n') + return fs.write('/etc/dropbear/authorized_keys', keys.join('\n') + '\n', 384 /* 0600 */) .then(renderKeys.bind(this, keys)) .catch(function(e) { L.ui.addNotification(null, E('p', e.message)) }) .finally(L.ui.hideModal); |