Bug 1333201

Summary: With Lmod-6.0.15-2.el6.noarch installed, bash logins error with /usr/bin/ps not found
Product: [Fedora] Fedora EPEL Reporter: Ric Anderson <ric>
Component: LmodAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: el6CC: orion
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Lmod-6.3.4-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-29 20:47:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ric Anderson 2016-05-04 23:01:18 UTC
Description of problem:
errors at login with Lmod-6.0.15-2.el6.noarch
$ ssh login4
Last login: Wed May  4 15:51:06 2016 from ben.uits.arizona.edu
-bash: /usr/bin/ps: No such file or directory
/bin/basename: missing operand
Try `/bin/basename --help' for more information.

Version-Release number of selected component (if applicable):
6.0.15-2

How reproducible:
100%

Steps to Reproduce:
1. yum install Lmod
2. login after that
3. serr errors

Actual results:
-bash: /usr/bin/ps: No such file or directory
/bin/basename: missing operand
Try `/bin/basename --help' for more information.

Expected results:
no errors

Additional info:
If you run
  sed -i -e 's@/usr/bin/ps@/bin/ps@' /usr/share/lmod/6.0.15/init/profile 
after the yum install, then the problem appears to be fixed.  Possibly the path is a leftover from upstream?
Tested on Red Hat Enterprise Linux Server release 6.7 (Santiago)
and CentOS release 6.7 (Final)
with identical results

Comment 1 Fedora Update System 2016-05-05 02:31:23 UTC
Lmod-6.3.1-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-81e9d1896a

Comment 2 Fedora Update System 2016-05-12 22:58:53 UTC
Lmod-6.3.4-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-60ef85e569

Comment 3 Fedora Update System 2016-05-15 06:22:17 UTC
Lmod-6.3.4-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-60ef85e569

Comment 4 Fedora Update System 2016-05-29 20:47:21 UTC
Lmod-6.3.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.