[SOLVED] Restoring Debian vanilla motd functionality

binaryanomaly

Active Member
May 11, 2018
27
0
41
45
Hi,

I would like to restore Debian vanilla motd functionality but it seems proxmox has somehow messed with it and I'm unsure of how to restore properly.

I have already stopped and disabled the pvebanner service:
Bash:
sudo systemctl status pvebanner
● pvebanner.service - Proxmox VE Login Banner
     Loaded: loaded (/lib/systemd/system/pvebanner.service; disabled; vendor preset: enabled)
     Active: inactive (dead)

But neither /etc/motd nor the files in /etc/update-motd.d/ get executed.

/etc/pam.d/sshd does look good as far as I can judge
Bash:
# Print the message of the day upon successful login.
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate

And also /etc/ssh/sshd_config does contain
Bash:
UsePAM yes

which should trigger PAM which should trigger motd.

Is something missing to restore the debian out of the box behavior?
I'm on pve-manager/7.0-10/d2f465d3 (running kernel: 5.11.22-3-pve)

Thanks
 
hi,

pvebanner reads from /etc/issue
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!