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?

  • Does your system have any files under /etc/profile.d/? – Castaglia Apr 21 '16 at 22:56
  • Yes, appmenu-qt5.sh, bash_completion.sh, and vte.sh. I cat'ed bash_completion.sh but can't find a clue. This happens all our servers. So, probably a problem in NIS? – Nullptr Apr 22 '16 at 0:28
  • What about the appmenu-qt5.sh or vte.sh files? – Castaglia Apr 22 '16 at 0:41
  • profile.global doesn't seem to be documented anywhere as a standard configuration file. Have you tried looking for profile.global inside files in /etc? (e.g. find /etc -type f -exec grep profile.global "{}" \; -print, or maybe also grep profile.global /{usr/{local/,},}{s,}bin/*) – Ziggy Crueltyfree Zeitgeister Apr 22 '16 at 4:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.