Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b6e72903
Commit
b6e72903
authored
Feb 01, 2011
by
Christian Kandeler
Browse files
Maemo: Fix permissions of authorized_keys on device.
On Meego, this file is world-readable by default.
parent
4fe5e3be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp
View file @
b6e72903
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment