Bug 673232

Summary: [gdm] prepends /usr/bin to path
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: jmccann, rstrode, vaughn.jayson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdm-3.0.4-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-10 14:25:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joachim Frieben 2011-01-27 19:03:43 UTC
Description of problem:
For current "rawhide", GDM prepends /usr/bin to the path which is wrong. The default user path in a virtual console reads

  /usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin .

However, in a desktop session started via GDM, the path becomes

  /usr/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin .

Accordingly, 'which cc' returns /usr/lib64/ccache/cc when run in a virtual console and /usr/bin/cc when run in a desktop shell which is neither intended nor consistent. 

Version-Release number of selected component (if applicable):
gdm-2.91.4-5.fc15

How reproducible:
Always.

Steps to Reproduce:
1. Execute 'which cc' in a virtual console.
2. Execute 'which cc' in a desktop shell.
  
Actual results:
In the first case, 'which cc' returns /usr/lib64/ccache/cc, in the second case, it returns /usr/bin/cc.

Expected results:
In both cases, 'which cc' returns /usr/lib64/ccache/cc.

Additional info:
- Issue appeared during the GNOME3 development cycle. Fedora 14 features
  gdm-2.32.0-1.fc14 which behaves correctly.
- GDM prepends /usr/bin to the search path in two different places:
  * /etc/gdm/Init/Default: PATH="/usr/bin:$PATH"
  * /etc/gdm/PreSession/Default: PATH="/usr/bin:$PATH"

Comment 1 Joachim Frieben 2011-02-01 09:17:34 UTC
Issuse doe not apply to F14 even though gdm-2.32.0-1.fc14 exhibits similar initialization scripts including path modification:
* /etc/gdm/Init/Default:PATH="/usr/bin:$PATH" ,
* /etc/gdm/PreSession/Default .
Thus, component gdm might be the wrong component.

Comment 2 Fedora Admin XMLRPC Client 2011-06-21 15:29:52 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-06-21 15:31:46 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-06-21 15:34:34 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-06-21 15:37:28 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-06-21 15:47:29 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-06-21 15:49:44 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Admin XMLRPC Client 2011-06-21 15:52:03 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2011-06-21 15:53:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Jayson Vaughn 2011-07-04 22:50:18 UTC
Thank you for filing the bug report.

However, I want to make sure I understand the issue correctly.  I'm not certain that this is necessarily a bug.  Prepending /usr/bin to PATH is needed to to ensure the user can start his session properly.  Are you requesting to have it set as PATH=$PATH:/usr/bin instead of PATH=/usr/bin:$PATH ?

Also, just curious; If you update to gdm to the latest version through yum (yum update gdm) do you still have the same issue?

Thanks.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 11 Joachim Frieben 2011-07-10 14:25:49 UTC
Issue seems to have disappeared for current F15 (tested with an updated F15 live CD).