root commands
Andrea Rigione
andrearigione at gmail.com
Mon Dec 16 18:05:54 GMT 2024
Hi everyone,
it's years since I everyday use kde connect from my android phone to
make stuff on my linux home "server" (a desktop PC with various server
services), and I'd like to know how to run "root" commands, as an
example: sudo apt update, or stuff like this. Browsing the internet I
didn't find anything suitable for my needs, the only one thing looking
like what I have in mind is this: "$ echo <password> | sudo -S apt
update", 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.
Trying from a terminal the command: "echo 'password' | sudo apt update"
looks like working, is that the correct way to prompt sudo commands from
android (or any other kdeconnect-connected pc)?
Thank you for your support,
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20241216/05164351/attachment.htm>
More information about the KDEConnect
mailing list