Setting PS1 for ordinary users
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@centos.org
http://lists.centos.org/mailman/listinfo/centos
|