LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bad Command Prompt (??) (https://www.linuxquestions.org/questions/linux-newbie-8/bad-command-prompt-266394/)

ptreves 12-14-2004 02:51 PM

Bad Command Prompt (??)
 
Hello,

From the root user on my Linux Red Hat Enterprise 3 (ES) server, I type the following command to switch to the Oracle user:

su - oracle

I am switched to the Oracle user, but I also get the message:

.bash:... bad command

1) What exactly does this mean ?

The command seems to work regardless.

PT

linmix 12-14-2004 04:31 PM

it's probably because of the "-" in the command which should be simply "su oracle"

Tinkster 12-14-2004 06:03 PM

Quote:

Originally posted by linmix
it's probably because of the "-" in the command which should be simply "su oracle"
That's not a fix, that's a kludge, and a very
sad (bad) one, too ...

He must have something wrong in oracle's (the
user oracle) ~/.bash_profile or something ... not
using the real users environment is a bad idea
because chances that root doesn't export things
like ORACLE_HOME at all are quite high, and
that will break other things he will be trying to do
as that user ...


Cheers,
Tink

ptreves 12-14-2004 08:30 PM

Kludge ??
 
Hello,

What is a Kludge ?

Do you suggest I remove the Oracle User and recreate a new Oracle User ?
What happens to all the things I did/installed as the Oracle User before ?

PT

Tinkster 12-14-2004 08:40 PM

http://www.catb.org/jargon/html/K/kludge.html


And no, I don't suggest re-creating the user.

I suggest you look through the initiation files of
your shell, most likely ~/.bashrc and ~/.bash_profile
for things that look fishy.



Cheers,
Tink


All times are GMT -5. The time now is 10:34 PM.