root commands

Rob Emery kde at mintsoft.net
Tue Dec 17 23:55:14 GMT 2024


Hiya,

I've never done that but a few things spring to mind:

> , but I am not sure about "$" and capital S, and, from a
> terminal, it doesn't work, so I'm not sure it is the right syntax.

The $ is to indicate that this is a shell, it shouldn't be part of
the command that you type in. The capital S is the instruction to
sudo that it should read the password from stdin (i.e. the echo).

This will mean that you have to put your user's password within the
kdeconnect configuration (probably not a great idea, but will work).

I think the best way from a sudo perspective might be to explicitly put
the commands that you want to run in the sudoers configuration so they
don't require a password. (for example: https://askubuntu.com/questions
/159007/how-do-i-run-specific-sudo-commands-without-a-password)

Hope that helps,
Rob


More information about the KDEConnect mailing list