/usr/local/games is after /usr/games in the default PATH (instead of before)

Bug #1281802 reported by Bruno Nova
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm reporting this bug after asking this question in Ask Ubuntu: http://askubuntu.com/questions/422605/why-is-usr-local-games-after-usr-games-in-the-default-path

The default value of the PATH environment variable in Ubuntu is: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
(the lightdm part may or may not be there)

/usr/local/games appears after /usr/games instead of before.
This seems to be a mistake. I think /usr/local/games should appear before /usr/games, more so considering that the other two "local" directories appear before the non-local ones.

This default PATH seems to come from /etc/environment, and this file is created by libpam-module's postint script (the answer to the Ask Ubuntu question explains this).
This is specific to Ubuntu. Debian apparently has the directories in the correct order.

I'm using Ubuntu 13.10, but I think this "problem" already existed before.

Tags: patch
Revision history for this message
Bruno Nova (brunonova) wrote :

Here's a patch for this "bug".

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "correct_path.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

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

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

Changed in pam (Ubuntu):
status: New → Confirmed
Revision history for this message
aviral mishra (amishraviral) wrote :

patch is not working

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.