*** This bug is a duplicate of bug 844103 ***
https://bugs.launchpad.net/bugs/844103
It isn't that /etc/environment isn't being read. It is that something
is overwriting the PATH. The lines below in /etc/pam.d/gdm do cause it
to read /etc/environment. I can add things to /etc/environment and they
will appear in my environment. Yet my PATH is still without sbins.
/etc/pam.d/gdm:
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/978259
Title:
gdm removes sbin directories from user paths
Status in “gdm” package in Ubuntu:
Confirmed
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
ProcVersionSignature: Ubuntu 3.2.0-20.28-lowlatency 3.2.12
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/978259/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp