Scripts in profile.d automatically executing
I've been facing this weird problem for the last two days.
Here's the scenario
server_a, server_b, server_c
server_b and server_c have hi.sh (echo 'Hi') in /etc/profile.d/, so everytime I login to these systems I get a 'Hi' message.
I've setup password less ssh on these servers.
Now on server_a if I run the following command
server_a # ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" server_b "hostname"
I get 'server_b' back, which is expected
server_a # ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" server_c "hostname"
I get Hi and server_c back. This started happening over the last two days, no scripts were changed and am clueless as to why Hi is being returned.
Thanks in advance for your help