On 05/04/2025 04:00, Eben King wrote:
Also it suspends the OS after a few minutes, so I gotta find out where that's controlled.
Either your desktop environment or systemd had a hope to reduce your electricity bills. Check power management setting for both. For the latter see /etc/systemd/sleep.conf
Are you really using wayland session on any machine? Otherwise you should neglect the part of the phrase mentioning it, it is for other users.
I am afraid, you need a deep dive into PolKit to figure out e.g. what component is responsible for password prompt. Interaction may rely on some D-Bus service while you are forwarding just X11 socket. Local and remote users are treated differently due to uaccess feature of systemd and logind.
As a more simple command that requires more privileges, I would try to mount a USB flash drive on a remote machine when X11 forwarding is enabled and disabled for ssh connection
udisksctl mount -b /dev/sdb1