LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2004, 03:51 PM   #1
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Rep: Reputation: 15
Unhappy 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
 
Old 12-14-2004, 05:31 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
it's probably because of the "-" in the command which should be simply "su oracle"
 
Old 12-14-2004, 07:03 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 12-14-2004, 09:30 PM   #4
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Original Poster
Rep: Reputation: 15
Unhappy 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
 
Old 12-14-2004, 09:40 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompt command to...? Kelphyr Slackware 10 10-03-2004 05:42 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Getting out of command prompt squirellplaying Linux - Newbie 8 05-05-2004 09:44 PM
Command Prompt? eXdener Linux - Newbie 3 01-05-2004 05:38 PM
How to recall an old command at the command prompt? J_Szucs Linux - Newbie 9 03-07-2003 01:29 AM


All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration