我的Ubuntu ID由NIS / yellowpagepipe理。 出于某种原因,当我login时,我收到这个消息。
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 xxxx -bash: can't find configuration file /usr/local/etc/profile.global; exiting. Connection to catserver closed.
如果我在这个服务器上创build一个空的/usr/local/etc/profile.global文件,那么它就可以工作。
但我不明白为什么我的bash脚本试图加载这个文件。 我search了这些文件: /etc/profile , /etc/bashrc , ~/.bash_profile和~/.bashrc 。 而且他们都没有代码来加载profile.global 。
我该如何解决这个问题? 这是我的bashconfiguration文件问题或一些NIS问题?