Bug 13784 - bash: weird PS1 for special accounts
bash: weird PS1 for special accounts
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2000-07-12 08:19 EDT by giulioo
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-07-27 14:35:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description giulioo 2000-07-12 08:19:03 EDT
In rh6.x if you su'ed to a "special" account, like postgres, you got the 
usual PS1 prompt.

In 6.9.x the PS1 is exported in /etc/bashrc (instead of /etc/profile), 
which is sourced in .bashrc, which is sourced in .bash_profile; so that if 
you "su"  to postgres you get "bash-2.04$" as prompt, since there is 
no /var/lib/pgsql/{.bash_profile,.bashrc}.

Don't know if this change in behavior is intentional (ie: to let the user 
know it's using a not-normal-account) but it doesn't look a nice thing to 
see :)
Comment 1 Bernhard Rosenkraenzer 2000-08-02 07:56:11 EDT
This is intentional - we've had to move PS1 to /etc/bashrc to fix other bugs
(the bash-specific stuff in /etc/profile was preventing people from using other
shells as /bin/sh).

Note You need to log in before you can comment on or make changes to this bug.