Maemo: Fix permissions of authorized_keys on device.

On Meego, this file is world-readable by default.
This commit is contained in:
Christian Kandeler
2011-02-01 16:58:27 +01:00
parent 4fe5e3be52
commit b6e729039a

View File

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