Bug 464905 - Non-interactive shells do not read /etc/profile.d
Summary: Non-interactive shells do not read /etc/profile.d
Keywords:
Status: CLOSED DUPLICATE of bug 457243
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: setup
Version: 4.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-01 09:54 UTC by Göran Uddeborg
Modified: 2008-11-05 14:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-05 14:10:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Göran Uddeborg 2008-10-01 09:54:54 UTC
Description of problem:
In recent versions of setup the initializations in /etc/profile.d are only executed if $prompt is set.  This was done as a fix to bug 202468.

But it is the wrong fix.  Non-interactive shells, for example when doing "rsh host command", still need path and environment settings from these files.

Scripts in /etc/profile.d should not write anything in non-interactive shells.  If any of them do, it is that script that should be fixed.  We should not blindly disable all valid scripts because of some broken ones.

Version-Release number of selected component (if applicable):
setup-2.5.37-1.7

How reproducible:
Every time.

Steps to Reproduce:
1. Install krb5-workstation
2. Run any command from /usr/kerberos/bin via rsh.  (But without full path, obviously.)
  
Actual results:
The command is not found.

Expected results:
The command should be executed

Comment 1 Ondrej Vasik 2008-11-05 14:10:49 UTC
Thanks for report, however duplicate of #457243 , see that bugzilla for proposed solution of both issues.

*** This bug has been marked as a duplicate of bug 457243 ***


Note You need to log in before you can comment on or make changes to this bug.