Re: [CentOS] Setting PS1 for ordinary users

2012-10-11 Thread Mike Burger
-- Mike Burger http://www.bubbanfriends.org "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1 > On Wed, Oct 10, 2012 at 03:48:23PM -0400, James B. Byrne wrote: >> To clarify the situation. The ONLY difference i

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Tony Molloy
On Wednesday 10 October 2012 19:42:32 James B. Byrne wrote: > CentOS-6 > > 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

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Jay Leafey
On 10/10/2012 04:43 PM, Nux! wrote: On 10.10.2012 19:52, m.r...@5-cent.us wrote: I have loked in/etc/profile.d and /etc/bashrc and I cannot see what condition is triggering the different behaviour. I'd guess whether there's a ~/.bashrc. I've got mine set the way I want it; I don't remember a

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Nux!
On 10.10.2012 19:52, m.r...@5-cent.us wrote: >> >> I have loked in/etc/profile.d and /etc/bashrc and I cannot see what >> condition is triggering the different behaviour. > > I'd guess whether there's a ~/.bashrc. I've got mine set the way I > want > it; I don't remember a ~/.bashrc being automagi

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Kahlil Hodgson
On 11/10/12 05:42, James B. Byrne wrote: > CentOS-6 > > 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 differ

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Woodchuck
On Wed, Oct 10, 2012 at 03:48:23PM -0400, James B. Byrne wrote: > To clarify the situation. The ONLY difference in the shell setup for > both root and an ordinary user is the name. As shown below they bith > use the same shell, they both have exactly the same contents in > .bashrc and .bash_profi

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Bowie Bailey
On 10/10/2012 4:12 PM, James B. Byrne wrote: > On: Wed Oct 10 15:58:43 EDT 2012 Bowie Bailey Bowie_Bailey at BUC.com > wrote: >> It doesn't matter where sh is pointing. What matters is the >> shell configuration. >> >> I'm using bash here: >> $ which sh >> /bin/sh >> $ echo $SHELL >> /bin/bash >>

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread m . roth
James B. Byrne wrote: > On: Wed Oct 10 15:58:43 EDT 2012 Bowie Bailey Bowie_Bailey at BUC.com > wrote: >> It doesn't matter where sh is pointing. What matters is the >> shell configuration. >> >> I'm using bash here: >> So try 'echo $SHELL' instead of 'which sh' to see which shell >> you are usin

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Stephen Harris
On Wed, Oct 10, 2012 at 04:12:24PM -0400, James B. Byrne wrote: > As far as I can see the two invocations call the same program. And > yet, replacing /bin/sh with /bin/bash in the ordinary user's passwd > entry does indeed change the prompt to one identical to that used by > root. Does anyone her

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread James B. Byrne
On: Wed Oct 10 15:58:43 EDT 2012 Bowie Bailey Bowie_Bailey at BUC.com wrote: > It doesn't matter where sh is pointing. What matters is the > shell configuration. > > I'm using bash here: > $ which sh > /bin/sh > $ echo $SHELL > /bin/bash > > So try 'echo $SHELL' instead of 'which sh' to see which

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread Bowie Bailey
On 10/10/2012 3:48 PM, James B. Byrne wrote: > To clarify the situation. The ONLY difference in the shell setup for > both root and an ordinary user is the name. As shown below they bith > use the same shell, they both have exactly the same contents in > .bashrc and .bash_profile. The file .prof

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread James B. Byrne
To clarify the situation. The ONLY difference in the shell setup for both root and an ordinary user is the name. As shown below they bith use the same shell, they both have exactly the same contents in .bashrc and .bash_profile. The file .profile exists for neither. And yet somehow they end up

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread John R Pierce
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

Re: [CentOS] Setting PS1 for ordinary users

2012-10-10 Thread m . roth
James B. Byrne wrote: > CentOS-6 > > 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

[CentOS] Setting PS1 for ordinary users

2012-10-10 Thread James B. Byrne
CentOS-6 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 norm