I am planning to use my Arch Linux RaspPi from remote desktop only, therefore I use xrdp to make this able (eventually it's gonna be VPN tunnelled).
However, when I try to connect an USB stick while in remote access, it gives me a "Not authorized" error and the USB device is not mounted. When logged in locally/physically everything works fine and the USB stick just mounts.
I am able to mount it manually via sudo, but I want it mounted automatically without requiring the user to take any actions. I installed udiskie in the hopes that it would fix that, but the same error still occurs. When I run sudo pcmanfm it does also mount, but won't be accessible when using pcmanfm as non-root.
Also, I tried to add a polkit rule via /etc/polkit-1/rules.d/00-early-checks.rules:
Code: Select all
polkit.addRule(function(action) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system") {
return polkit.Result.YES;
}
});I feel like that if I'm able to launch udiskie as root from /etc/xrdp/startwm.sh, it might be mounted automatically but I don't know how to run something as root from there.
Maybe there are other solutions, please let me know!