Re: Setting PS1 for ordinary users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/10/12 11:42 AM, James B. Byrne wrote:
> When I login as root I see this prompt:
>
>
> [root@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@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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux