Re: Problem with su -

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

 



On 03/06/2012 05:49 PM, Bob Goodwin wrote:
>
>>     I'm fairly certain that
>> is where the change from PS1='\s-\v\$ '  to PS1='[\u@\h \W]\$ ' should
>> take place.  I wonder if it is even being sourced, based on the manner
>> of other problems you've been reporting as of late.
>>
>
>    Here is the entire /etc/bashrc file, it's not obvious to me which
>    line refers to the root prompt? Perhaps un-commenting  #    
> PS1="[\u@\h:\l \W]\\$ "  is what needs to be done but "# It's NOT a
>    good idea to change this file unless you know what you are doing."
>

OK....

You have an unmodified ~/.bash_profile and a slightly different
~/.bashrc from my fresh install.  The differences are not significant.

The bottom line is that in ~/.bashrc you have

if [ -f /etc/bashrc ]; then
        .  /etc/bashrc

Which should source the file.  The place where the setting of PS1 takes
place is here....
 


>
>       # Turn on checkwinsize
>       shopt -s checkwinsize
>       [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

Basically it is saying....  if PS1 is set to '\s-\v\$ ' change it to
'[\u@\h \W]\$ ' .

So, it would seem, one of 2 things are going on.  Either the file isn't
being sourced or it isn't set as expected.

What I would do is modify /etc/bashrc to ....

  shopt -s checkwinsize
  echo "PS1 is set to $PS1" > /tmp/huh
  [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

And then perform an su -.

-- 
Do not condemn the judgment of another because it differs from your own.
You may both be wrong. -- Dandemis
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux