Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 0b3f0acd authored by Yuxuan Shui's avatar Yuxuan Shui Committed by Albert Vaca

Fix files under sshfs being owned by root.

This patch sets uid/gid to the user running kdeconnectd.
parent 353f2053
......@@ -20,6 +20,7 @@
#include "mounter.h"
#include <unistd.h>
#include <QDir>
#include <QDebug>
......@@ -126,6 +127,8 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
<< QStringLiteral("-o") << QStringLiteral("UserKnownHostsFile=/dev/null") //Prevent storing as a known host
<< QStringLiteral("-o") << QStringLiteral("HostKeyAlgorithms=ssh-dss") //
<< QStringLiteral("-o") << QStringLiteral("reconnect") //
<< QStringLiteral("-o") << QStringLiteral("uid=") + QString::number(getuid())
<< QStringLiteral("-o") << QStringLiteral("gid=") + QString::number(getgid())
<< QStringLiteral("-o") << QStringLiteral("password_stdin")
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