Support Requests - CLICK TO READ BEFORE POSTING


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[SOLVED] output after login via ssh
#1

System Specs
Operating System – Linux LiteLinux Lite 8.0
CPU / Processor2 virtual CPUs
Memory (RAM)6 GB
StorageOther / not listed
Graphics (GPU)VirtualBox Graphics Adapter
Network deviceIntel 82540EM Gigabit Ethernet Controller
logging into the VM via ssh itself and subitting any command causes now an (additional) output like this:
Quote:]3008;start=dd94c3be-c110-4904-7356-b348d1ad900d;machineid=55b924beaf3c4e8c567de71ed85401c1;user=user1;hostname=LL8;bootid=bc27e777-9db3-4307-95b7-57e7b6f9eb82;pid=00000000000000002971;type=shell;cwd=/home/user1\
Reply
#2

Patched via new Lite Patch.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#3

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.
Reply
#4

(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.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#5

Thanks, Jerry, for the detailed explanation!
Reply
#6

No problemo!

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)