Problem with su -

Bob Goodwin bobgoodwin at wildblue.net
Mon Mar 5 21:47:45 UTC 2012


On 05/03/12 15:08, jdow wrote:
> On 2012/03/05 10:02, Emilio Lopez wrote:
>>> finally settled things seem to work normally except I still get
>>> that strange prompt "bash-4.2#" when it has always been
>>> "[root at box6 bobg]#."
>>
>> I don't know if that helps but I have seen 'your strange prompt' 
>> doing this:
>>
>> [emilio at mipc]$ su
>> password:
>> [root at mipc]# su jhon
>> bash-4.2#
>>
>> Emilio
>
> You might dig through your .bashrc, .bash_profile, /etc/bashrc, and 
> /etc/profile
> to see what has changed. I'd look for the string '\s\v', usually 
> associated
> with PS1 for the main prompt. But it might be PS2, 3, or 4 depending 
> on the
> gods of bash and what you've been doing.
>
> Then investigate why that got changed. (Since it is in your window 
> session there
> might even be an /etc/X11 change biting you.)
>
> {^_^}

        I have two computers set up identically and have spent the last
        hour trying to find a difference in the files you mention. If
        there is a dif. I missed it. I do see some stuff in
        /etc/X11/xinit that is dated 3 Mar. which is suspect, but I
        found no difference there yet ...

            [bobg at box9 ~]$ ll /etc/X11/xinit
            total 28
            -rwxr-xr-x. 1 root root 2030 Jul 25  2011 Xclients
            drwxr-xr-x. 2 root root 4096 Jul 25  2011 Xclients.d
            -rwxr-xr-x. 1 root root 1486 Jul 25  2011 xinitrc
            -rw-r--r--. 1 root root 2008 Jul 25  2011 xinitrc-common
            drwxr-xr-x. 2 root root 4096 Mar  3 12:09 xinitrc.d
            drwxr-xr-x. 2 root root 4096 Mar  3 12:09 xinput.d
            lrwxrwxrwx. 1 root root   26 Mar  3 12:09 xinputrc ->
            /etc/alternatives/xinputrc
            -rwxr-xr-x. 1 root root 3547 Jul 25  2011 Xsession

        I'm not certain but I would guess that's when this happened. I
        remeber finding that the XFCE file manager, Thunar, was missing
        and instaling that with yum or yumex, I forget which now, and
        having some trouble, removed and re-installed. That's probably
        when things changed. I shut it down and didn't boot it 'til today.

        Well it's minor, only thing I've found is that "ll" wont work if
        I su to root, have to use ls, that's minor.

        I don't think it's worth a lot of time, I am considering
        replacing that computer with another used one of slightly newer
        vintage. Got to see what FedEx brings ...

        Thanks,

        Bob




More information about the users mailing list