[CentOS] Setting PS1 for ordinary users

Wed Oct 10 19:00:37 UTC 2012
John R Pierce <pierce at hogranch.com>

On 10/10/12 11:42 AM, James B. Byrne wrote:
> When I login as root I see this prompt:
>
>
> [root at vhost04 ~]#
>
> When I login as a non-priviledged user I see this instead:
>
> sh-4.1$
>
> .bashrc and .bash_profile have identical contents in /root and
> /home/user.  What causes the difference?  Why?  How does one change
> the default so that all normal users get a [userid at hostname pwd]$
> prompt?
>
> I have loked in/etc/profile.d and /etc/bashrc and I cannot see what
> condition is triggering the different behaviour.

what shell are your regular users configured for?   sh reads .profile 
rather than .bash_profile

if you want that to be a system-wide default, you can put it in 
/etc/profile which ALL shells read before they read any user stuff.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast