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
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
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
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
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
> ### 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-
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
> ### 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
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='$
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
10 matches
Mail list logo