LinuxQuestions.org
Review your favorite Linux distribution.
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 05-05-2004, 07:54 PM   #1
BobNz
Member
 
Registered: May 2003
Location: NewZealand
Distribution: RH9.0
Posts: 74

Rep: Reputation: 15
Exclamation redhat postgresql


I have rh9.0 installed am using the embedded version of postgresql.

When I change to the postgres user I get the bash prompt

bash-2.05b$

isnt it supposed to be postgres@postgres$

I have compiled postgres from source on another pc and when I change to postgres user
on that pc I get

postgres@postgres$

just wondering if I have screwd something up or is it just a redhat thing.

tried to remove sql server packages but got an error about not having the libodbc package
but that was installed with sql server ? as it was an option I selected.
So now I cant uninstall sql server. Is redhat known for this sort of thing?

Last edited by BobNz; 05-05-2004 at 07:59 PM.
 
Old 05-05-2004, 08:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi Bob!

Firstly, the subject line is misleading :}

It should say: wrong prompt? or something
along those lines.

The prompt depends on the way you're logged in,
whether bash was invoked as a login-shell or not.

Maybe on the other machines the way you invoke
console/xterm or whatever is different.



Cheers,
Tink
 
Old 05-06-2004, 01:53 AM   #3
BobNz
Member
 
Registered: May 2003
Location: NewZealand
Distribution: RH9.0
Posts: 74

Original Poster
Rep: Reputation: 15
I do the same on both pc's login as root ( I know shouldn't do that) then su - postgres to work with database.

Bob
 
Old 05-06-2004, 02:52 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hmmm ... try the following.

Open up a xterminal ... what prompt do
you get?
In that terminal, try
xterm +ls -e su - postgres
What prompt do you get?
Omit the +ls, and try again.


Cheers,
Tink

P.S.: Have a read in
man bash
Search for .bash_login in the man-page
/\.bash_login
 
Old 05-06-2004, 04:21 AM   #5
BobNz
Member
 
Registered: May 2003
Location: NewZealand
Distribution: RH9.0
Posts: 74

Original Poster
Rep: Reputation: 15
hmm did both xterm +ls -e su - postgres

and

xterm su - postgres

in terminal. They opened a xterminal window with same bash-2.05b$ prompt

tried both in that terminal window just in case that was what you meant and got

xlib: connection ro ":0.0" refused by server
xlib:no protocol specified.

Not a big deal just wondered why the prompt was different, apart from that everything works ok




Bob
 
  


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
compatibity of redhat linux and postgresql neerajchaudhari Linux - Software 1 09-02-2005 05:34 AM
Upgrading PostgreSQL 7.3.2 to 7.4.6 for Redhat 9.0 bftin Linux - Software 0 11-18-2004 01:16 PM
Upgrading PostgreSQL 7.3.2 to 7.4.6 for Redhat bftin Red Hat 0 11-18-2004 01:15 PM
I can't run postgreSQL in redhat 9.0? fcaglayan Linux - General 6 12-06-2003 10:48 AM
postgresql+jdbc in redhat 7.3 need help pleaseee!! Sridhar Guntur Linux - Software 0 10-22-2002 01:19 AM


All times are GMT -5. The time now is 01:22 PM.

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