I receive an error message when I switch to oracle user:
[root@monitor etc]# su - oracle -bash: [/bin/bash: No such file or directory
This error message is present only when I add the following lines to the /etc/profile
if [ $USER = "oracle" ]; then if [$SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
The "/bin/bash" file does exist.
If I delete the lines showed (from the /etc/profile the error messages does not appear anymore.
This lines was extracted from the oracle manual and never have had this problem.
Any idea?
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here
<br />我遇到这个问题很久了,一直没找到答案,后来看了一篇英文的才知道,希望对遇到同样问题的有所帮助,下面是原文问答<br />引用地址:http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1288685719373+28353475&threadId=1026246<br /> Author Subject: /bin/bash not found