gdm removes sbin directories from user paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When I start a GNOME 3 session with gdm as my login manager, my PATH lacks /sbin, /usr/sbin and /usr/local/sbin, even though those directories are configured to be in the PATH at the system level (/etc/environment). Also, it doesn't seem to have anything to do with login.defs, as ENV_PATH is there set to contain /usr/local/games, but that directory is not present in my PATH when I log in via GDM.
When I log in on a tty, the paths containing "sbin" are retained, so the problem appears not to be in my user's setup.
Googling finds several reports of this problem, all blaming gdm, but no solution (only the obvious workaround of adding those directories back into one's PATH in ~/.bashrc or ~/.profile).
Since it seems to be necessary to use gdm, rather than lightdm, for user switching to work properly in GNOME 3, I currently haven't another workaround.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gdm 3.0.4-0ubuntu15
ProcVersionSign
Uname: Linux 3.2.0-20-lowlatency x86_64
ApportVersion: 2.0-0ubuntu5
Architecture: amd64
Date: Tue Apr 10 19:21:55 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
SourcePackage: gdm
UpgradeStatus: Upgraded to precise on 2012-02-12 (57 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.