The file name is .profile, not .bash_profile. Put it into the $HOME directory of the user. For root, that would be /root. You can also create a .bashrc file. .profile only gets invoked when you first log into the Z. What I typically do is put the following code into .profile:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
then you are covered either way.