My cloud team setup a Ubuntu 16.04 AMI for me in AWS. They have done some items to 'Harden' the instance but they normally use amazon linux and not Ubuntu so I think they have broken some things. Looks like they force the use of the KSH shell which is fine but when I login I get:
Last login: Thu Apr 13 13:56:48 2017 from 10.210.147.12
/etc/profile[23]: .[123]: local: not found [No such file or directory]
/etc/profile[23]: .[124]: local: not found [No such file or directory]
/etc/profile[23]: .[125]: local: not found [No such file or directory]
/etc/profile[23]: .[160]: local: not found [No such file or directory]
/etc/profile[23]: .[161]: local: not found [No such file or directory]
Line 23 in /etc/profile looks like a loop to execute some shell scripts on login:
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
I have the following scripts in the /etc/profile.d/*
bash_completion.sh
puppet-agent.sh
cedilla-portuguese.sh
Z97-byobu.sh
apps-bin-path.sh
puppet-agent.csh
Z99-cloud-locale-test.sh
Anyway I would really like to stop the annoying error messages on login. Can anyone help out?
Thanks, Ed