From b6e729039a2478d2f20e22eb22d7609473190325 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 1 Feb 2011 16:58:27 +0100 Subject: [PATCH] Maemo: Fix permissions of authorized_keys on device. On Meego, this file is world-readable by default. --- .../qt-maemo/maemodeviceconfigurationssettingswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp index 3f5e4c0ee5..5ffc00f13f 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp @@ -407,7 +407,7 @@ void MaemoDeviceConfigurationsSettingsWidget::deployKey() SLOT(handleKeyUploadFinished(int))); const QByteArray command = "test -d .ssh " "|| mkdir .ssh && chmod 0700 .ssh && echo '" - + key + "' >> .ssh/authorized_keys"; + + key + "' >> .ssh/authorized_keys && chmod 0700 .ssh/authorized_keys"; m_keyDeployer->run(command); } -- 2.11.0