Bug 2257618

Summary: Lightdm sets incorrect default PATH
Product: [Fedora] Fedora Reporter: Sjoerd Mullender <sjoerd>
Component: lightdmAssignee: Alternative GTK desktop environments <alt-gtk-de-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: alt-gtk-de-sig, leigh123linux, raveit65.sun, rdieter, tdawson, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: lightdm-1.32.0-6.fc40 lightdm-1.32.0-6.fc39 lightdm-1.32.0-6.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-10 13:18:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sjoerd Mullender 2024-01-10 10:10:09 UTC
When logging in using lightdm, the initial value for the PATH environment variable is /usr/local/bin:/usr/bin:/bin.  It should, however, be /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin, i.e. /bin should be removed (it is a symlink to /usr/bin) and /usr/local/sbin and /usr/sbin should be added.

Reproducible: Always

Steps to Reproduce:
1.login on system using lightdm
2.echo $PATH
3.
Actual Results:  
/usr/local/bin:/usr/bin:/bin

Expected Results:  
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Comment 1 Zbigniew Jędrzejewski-Szmek 2024-01-10 10:13:31 UTC
There is no need to touch the path at all. It is already set correctly by the environment, so the only thing that login manager needs to do is not touch it.

Comment 2 Fedora Update System 2024-01-10 13:15:16 UTC
FEDORA-2024-b11e291114 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-b11e291114

Comment 3 Fedora Update System 2024-01-10 13:18:27 UTC
FEDORA-2024-b11e291114 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-01-10 13:19:44 UTC
FEDORA-2024-8750e317a5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8750e317a5

Comment 5 Fedora Update System 2024-01-11 01:40:27 UTC
FEDORA-2024-2c5dbb5c97 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2c5dbb5c97`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c5dbb5c97

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-01-11 02:09:22 UTC
FEDORA-2024-8750e317a5 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8750e317a5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8750e317a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-01-26 00:38:05 UTC
FEDORA-2024-2c5dbb5c97 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2024-01-26 00:42:22 UTC
FEDORA-2024-8750e317a5 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.