Post PVE 7 to 8 issue: pam_env(sshd:session): deprecated reading of user environment enabled

anvilcom

Renowned Member
Oct 26, 2015
7
0
66
I've been seeing this in my logwatch reports since upgrading from PVE 7 to 8. Looks like a known issue at Debian. Several bug reports there - bugs 1018106, 1018260 and 1030119. I wasn't seeing these errors prior to the upgrade. Here's a link to one of them:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018106

Removing `user_readenv=1` from the line below located in /etc/pam.d/sshd seems to solve the warning but I'm not sure of the impact to the nodes.

# In Debian 4.0 (etch), locale-related environment variables were moved to
# /etc/default/locale, so read that as well.
session required pam_env.so user_readenv=1 envfile=/etc/default/locale

Any opinion or comments from the Proxmox staff/devs?
 
Hey,
we are not using the $HOME/.pam_environment file, so removing that option should have no effect at all on your installation.
But in the long run, this problem will need to be fixed upstream, since we are only repackaging anything, if there is a really really good reason for it.
 

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!