zsh is one of the only shells we ship that doesn't source /etc/profile.d. Here's a patch for zsh-4.0.7-1: --- /etc/zprofile.old 2004-11-30 10:55:40.000000000 +0000 +++ /etc/zprofile 2004-11-30 10:56:03.000000000 +0000 @@ -7,3 +7,10 @@ PATH="$PATH:$HOME/bin" export PATH + +for i in /etc/profile.d/*.sh ; do + if [ -r "$i" ]; then + . $i + fi +done +
Looks to me like all we need to do is source /etc/profile; this itself sources /etc/profile.d/*, no?
# tail -n 7 /etc/profile for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i fi done Looks like it should be enough indeed.
Actually, the default /etc/skel/.zshrc already sources /etc/profile.d itself. Did this not work for the customer?
The customer didn't have a ~/.zshrc. I can see a discrepancy in that /etc/profile.d is sourced by the system-wide configuration file when using bash (/etc/profile) but by the user-wide config file for zsh. Any way to change this?
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-028.html