(Yesterday, 09:22 AM)LL-user Wrote: Perfect, thanks for the speedy fix!
EDIT: It's mostly fixed.
It still shows up when switching user via "su - <username>" or "sudo -i". But only when running these commands. Then, when running commands as the other user, not anymore.
Thanks for testing this and for the precise follow-up - that detail is exactly what I needed.
Good news first: the output you originally reported - the …;type=shell;cwd=/home/… line that printed after every command over SSH - is fixed. The latest lite-patch ships a small drop-in that switches off those shell-prompt sequences, which is why you're now seeing it "mostly" gone.
The line you still see when you run su - <username> or sudo -i is a different thing that just looks similar. The first one came from the shell prompt; this one (…;comm=sudo;targetuser=root;type=session) is emitted by systemd's PAM layer when it opens a new login session. That's why it only appears at the moment you switch user and not on the commands you run afterwards.
This second one is plain upstream systemd 259 behaviour (it's the same on stock Ubuntu 26.04), and unfortunately systemd currently provides no setting to turn just that piece off — the only switches that affect it also disable all terminal colour, so they're not a sensible trade. It's purely cosmetic: a single line at the user-switch, harmless, and terminals that understand the sequence hide it automatically. I've flagged it upstream.
So: the noisy per-command output is sorted in the current lite-patch; the single line on su -/sudo -i is a one-off systemd quirk we're leaving as-is for now. Background on the mechanism, if you're curious:
https://systemd.io/OSC_CONTEXT
Cheers.