Red Hat Bugzilla – Bug 464905
Non-interactive shells do not read /etc/profile.d
Last modified: 2008-11-05 09:10:49 EST
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):
Steps to Reproduce:
1. Install krb5-workstation
2. Run any command from /usr/kerberos/bin via rsh. (But without full path, obviously.)
The command is not found.
The command should be executed
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 ***