forked from qt-creator/qt-creator
Maemo: Fix permissions of authorized_keys on device.
On Meego, this file is world-readable by default.
This commit is contained in:
@@ -407,7 +407,7 @@ void MaemoDeviceConfigurationsSettingsWidget::deployKey()
|
|||||||
SLOT(handleKeyUploadFinished(int)));
|
SLOT(handleKeyUploadFinished(int)));
|
||||||
const QByteArray command = "test -d .ssh "
|
const QByteArray command = "test -d .ssh "
|
||||||
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
|
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
|
||||||
+ key + "' >> .ssh/authorized_keys";
|
+ key + "' >> .ssh/authorized_keys && chmod 0700 .ssh/authorized_keys";
|
||||||
m_keyDeployer->run(command);
|
m_keyDeployer->run(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user