Commit b6e72903 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix permissions of authorized_keys on device.

On Meego, this file is world-readable by default.
parent 4fe5e3be
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment