[Bug 2059859] Re: pam_env(sshd:session): deprecated reading of user environment enabled
Bryce Harrington
2059859 at bugs.launchpad.net
Wed Jul 10 00:42:12 UTC 2024
Looks like this is the section that would need changed?
### d/openssh-server.sshd.pam.in
# Read environment variables from /etc/environment and
# /etc/security/pam_env.conf.
session required pam_env.so # [1]
# 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
Is it just the "user_readenv=1" that needs dropped or would the entire
line need to drop?
>From git blame this was added in 1:6.1p1-4 due to LP: #952185 in
relation to encrypted home directories. Would any of that need
revisited?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2059859
Title:
pam_env(sshd:session): deprecated reading of user environment enabled
Status in openssh package in Ubuntu:
Triaged
Status in pam package in Ubuntu:
Fix Released
Status in openssh package in Debian:
New
Bug description:
Ubuntu 24.04 / openssh-server/noble-updates 1:9.6p1-3ubuntu3
sshd complains about "deprecated reading of user environment".
This should have been solved upstream, as far as I understand:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018106
Enclosed /etc/pam.d/sshd file is amended according to the debian bug
report.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: openssh-server 1:9.6p1-3ubuntu3
ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Sun Mar 31 11:56:25 2024
ProcEnviron:
LANG=de_DE.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.init.d.apport: [modified]
mtime.conffile..etc.init.d.apport: 2024-02-22T15:20:00
mtime.conffile..etc.pam.d.sshd: 2024-03-31T11:56:12.949543
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2059859/+subscriptions
More information about the foundations-bugs
mailing list