.pam_environment not applied if home directory is encrypted

Bug #1748036 reported by Bram Geron
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Regression of bug #952185.

Variables in ~/.pam_environment are not applied when I start my computer and login. When I then re-login, they _are_ applied.

I have manually copied my ~/.pam_environment to the original, non-ecryptfs-mounted ~/ and then the file is always applied.

After #952185, the fix seems to have been to change debian/*.pam to run pam_env after common-session. But I don't understand why the line in common-auth isn't enough to mount ecryptfs. Perhaps pam_ecryptfs.so only does the unmounting in the session phase.

Ubuntu 17.10, gdm3 3.26.1-3ubuntu3
---
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 17.10
EcryptfsInUse: Yes
InstallationDate: Installed on 2018-02-08 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
Package: gdm3 3.26.1-3ubuntu3
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Tags: artful wayland-session
Uname: Linux 4.13.0-32-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1748036

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

affects: gdm (Ubuntu) → gdm3 (Ubuntu)
Changed in gdm3 (Ubuntu):
status: New → Incomplete
Revision history for this message
Bram Geron (bgeron) wrote : Dependencies.txt

apport information

tags: added: apport-collected artful wayland-session
description: updated
Revision history for this message
Bram Geron (bgeron) wrote : JournalErrors.txt

apport information

Revision history for this message
Bram Geron (bgeron) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Bram Geron (bgeron) wrote : ProcEnviron.txt

apport information

Changed in gdm3 (Ubuntu):
status: Incomplete → New
Revision history for this message
Bram Geron (bgeron) wrote :

This is from a freshly installed virtual machine, for the purposes of this bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm3 (Ubuntu):
status: New → Confirmed
Revision history for this message
S Birbalta (s-birbalta) wrote :

I don't understand why this is not getting fixed. This bug means that a user with encrypted home directory can't have different locale settings than the system defaults.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in gdm3 (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
S Birbalta (s-birbalta) wrote :

Yes, ~/.pam_environment is still not parsed in Ubuntu 19.04.

tags: added: bionic
removed: artful
Changed in gdm3 (Ubuntu):
status: Won't Fix → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.