pam_group.so is not evaluated by gnome-terminal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Medium
|
Dariusz Gadomski | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Dariusz Gadomski | ||
Cosmic |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Dariusz Gadomski | ||
Focal |
Fix Released
|
Medium
|
Dariusz Gadomski |
Bug Description
[Impact]
pam_setcred call was missing in systemd making its implementation of the PAM protocol incomplete. It could manifest in different ways, but one particularly problematic for enterprise environments was the fact that
processes were never getting group membership they were expected to get via pam_group module.
[Test Case]
* Add a /etc/security/
*;*;
* Add pam_group to your PAM stack, e.g. /etc/pam.
* Login to the system and launch gnome-terminal (it will be launched via gnome-terminal-
Expected result:
Logged in user is a member of 'dialout' and 'users' groups.
Actual result:
no group membership gained from pam_group.
[Regression Potential]
* It introduces a new PAM warning message in some scenarios (e.g. for systemd DynamicUser=1 units) for users that can't authenticate (pam_setcred fails in such case).
* In certain systems user group membership may be extended by pam_group.
[Other Info]
Original bug description:
We are using Ubuntu in a university network with lots of ldap users. To automatically map ldap users/groups to local groups we are using pam_group.so. This has worked for years.
With the upgrade from Xenial to Bionic /etc/security/
According to https:/
Nevertheless this behavior is very unexpected when upgrading from Xenial to Bionic and therefore should at least added to the changelog.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-terminal 3.28.0-1ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 9 13:17:52 2018
InstallationDate: Installed on 2018-03-29 (11 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180321)
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in systemd: | |
status: | Unknown → New |
no longer affects: | gnome-terminal (Ubuntu Bionic) |
no longer affects: | gnome-terminal (Ubuntu Cosmic) |
no longer affects: | gnome-terminal (Ubuntu Xenial) |
no longer affects: | gnome-terminal (Ubuntu) |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Eoan): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
description: | updated |
tags: | added: sts sts-sponsor-ddstreet |
tags: | added: ddstreet-next |
I am also using this feature and all previous versions of Ubuntu worked fine with this configuration. However with Bionic the GDM logins no longer add these local groups. Only no graphical logins like su, sudo, ssh, etc... add the appropriate local groups as per the /etc/security/ group.conf.
This is a very important feature for us to be able to use Ubuntu with LDAP authentication in our computer labs for students and professors.