My Ubuntu ID is manged by NIS/yellowpage. For some reason, when I log in, I'm getting this message.
cat@local:~$ ssh catserver
cat@catserver's password:
Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-25-generic x86_64)
Last login: Thu Apr 21 11:46:22 2016 from x.x.x.x
-bash: can't find configuration file /usr/local/etc/profile.global; exiting.
Connection to catserver closed.
If I create an empty /usr/local/etc/profile.global
file on this server, then it works.
But I don't understand why my bash scripts try to load this file. I searched these files: /etc/profile
, /etc/bashrc
, ~/.bash_profile
and ~/.bashrc
. And none of them does have code to load profile.global
.
How can I fix this problem? Is this my bash profile problem or some NIS problem?