Re: Configuring Bash

2008-05-15 Thread Reid Linnemann
Written by Gerard on 05/15/08 10:03>> > On Thu, 15 May 2008 09:46:27 -0500 > Reid Linnemann <[EMAIL PROTECTED]> wrote: > >> Written by Montag on 05/14/08 19:20>> >>> This should be a fairly simple process, I don't really know what I >>> am missing. >>> >>> I've got the following in the .bash_profi

Re: Configuring Bash

2008-05-15 Thread Gerard
On Thu, 15 May 2008 09:46:27 -0500 Reid Linnemann <[EMAIL PROTECTED]> wrote: > Written by Montag on 05/14/08 19:20>> > > This should be a fairly simple process, I don't really know what I > > am missing. > > > > I've got the following in the .bash_profile of a basic user account: > > > > # set p

Re: Configuring Bash

2008-05-15 Thread Reid Linnemann
Written by Montag on 05/14/08 19:20>> > This should be a fairly simple process, I don't really know what I am > missing. > > I've got the following in the .bash_profile of a basic user account: > > # set prompt [EMAIL PROTECTED]/dir] $ (# for root) > PS1 = ' [EMAIL PROTECTED] ' > case `id -u` in

Re: Configuring Bash

2008-05-14 Thread Wojciech Puchar
PS1 = ' [EMAIL PROTECTED] ' case `id -u` in 0) PS1='${PS1} # ';; # root *) PS1='${PS1} $ ';; # everyone else When I log in, I am greeted with: ${PS1} $ $ $PS1 nie ${Ps1} However, if I su to root, I get: [EMAIL PROTECTED] /home/user]# That is what I wanted, but for some reason it i

Re: Configuring Bash

2008-05-14 Thread N. Raghavendra
At 2008-05-14T19:20:23-05:00, Montag wrote: > I've got the following in the .bash_profile of a basic user account: > > # set prompt [EMAIL PROTECTED]/dir] $ (# for root) > PS1 = ' [EMAIL PROTECTED] ' > case `id -u` in > 0) PS1='${PS1} # ';; # root > *) PS1='${PS1} $ ';; # everyone els

Re: Configuring Bash

2008-05-14 Thread Montag
> ### SNIP ### > I would try adding the prompt to .bashrc too, worst case it will redefine > it the same prompt making login take a fraction longer. I did that, but still no go. > Also be sure: > /home/user > is owned by user and has the correct group too. ls -la | grep user gives: drwxr-xr-

Re: Configuring Bash

2008-05-14 Thread Derek Ragona
At 08:10 PM 5/14/2008, Montag wrote: > ### SNIP ### > Are you saying it works if you: > su - root Yes, that's correct. > But logging in as a regular user. So, can you: > login as a regular user > su - root > su - [regular user] Interesting, this produces the correct output. Login : ${PS1

Re: Configuring Bash

2008-05-14 Thread Montag
> ### SNIP ### > Are you saying it works if you: > su - root Yes, that's correct. > But logging in as a regular user. So, can you: > login as a regular user > su - root > su - [regular user] Interesting, this produces the correct output. Login : ${PS1} $ $ (Wrong) su-root

Re: Configuring Bash

2008-05-14 Thread Derek Ragona
At 07:20 PM 5/14/2008, Montag wrote: This should be a fairly simple process, I don't really know what I am missing. I've got the following in the .bash_profile of a basic user account: # set prompt [EMAIL PROTECTED]/dir] $ (# for root) PS1 = ' [EMAIL PROTECTED] ' case `id -u` in 0) PS1='$

Configuring Bash

2008-05-14 Thread Montag
This should be a fairly simple process, I don't really know what I am missing. I've got the following in the .bash_profile of a basic user account: # set prompt [EMAIL PROTECTED]/dir] $ (# for root) PS1 = ' [EMAIL PROTECTED] ' case `id -u` in 0) PS1='${PS1} # ';; # root *) PS1='${PS1