Changed mit magic cookie behavior – x11vnc now needs explicit auth info
Hi all,
for quite some years, I accessed a machine (first Gentoo, now Artix since a year or so) using x11vnc. I create an ssh tunnel and start the x11vnc server. For years, it worked like that:
ssh -t -L 5900:localhost:5900 user@remote \
'x11vnc -rfbauth ~/.vnc/passwd -localhost -display :0 -geometry 1728x972 -nomodtweak'
Essentially, the x11vnc call strips down to
x11vnc -display :0
Now, x11vnc would not start anymore like this. I tried to track it down.
Sitting in front of the remote machine, I could start x11vnc simply by typing "x11vnc". But not remotely anymore. Also giving the explicit auth info doesn't work ("x11vnc -display :0 -auth ~/.Xauthority" – at least I think this should be the auth info – on my Gentoo machine, this works).
I could however start x11vnc as root using SDDM's magic cookie like this:
x11vnc -display :0 -auth $(find /var/run/sddm/ -type f)
Finally, I could figure out how to still start x11vnc remotely as a (logged in) user, by using a /tmp/xauth... file. Like that:
x11vnc -display :0 -auth $(find /tmp -name xauth\* -user $(whoami) -type f)
So, apparently, the xauth/magic cookie handling has changed recently?
~/.Xauthority seems to be stale, and the real info now seems to be located in /tmp/xauth_*? Nevertheless, "xauth info" still outputs ~/.Xauthority as "Authority file"?
Can anybody explain this? Thanks for all help!