You're welcome.
The code you were searching for is in /etc/profile:
Code:
# Append any additional sh scripts found in /etc/profile.d/:
for profile_script in /etc/profile.d/*.sh ; do
if [ -x $profile_script ]; then
. $profile_script
fi
done
so making the script non-executable disables the fortune text at login.