[Mageia-discuss] beta2 woes and no graphical root (tonyb)

Renaud (Ron) Olgiati renaud at olgiati-in-paraguay.org
Fri Apr 13 10:07:21 CEST 2012


On Thursday 12 Apr 2012 23:36 my mailbox was graced by a message from R James 
who wrote:
> BTW: I've done some silly things by mis-typing in a terminal as root
> or forgetting that I am root in an xterm window on my regular user's
> desktop. When logged into a bright red IceWM session, I tend to be
> more careful. Once a new system is set up, I rarely use it though.

I found that adding a line in /root/.bashrc:
	PS1='\n\[\033[1;31m\]\u@\h:\w \$ \[\033[0m\]'
and adding PS to the export helps avoid this kind of mistake in Konsile or 
terminal.
 
Cheers,
 
Ron.
-- 
                        Gottesmühlen mahlen langsam,
                         mahlen aber trefflich klein.
                               -- Friedrich von Logau
                                    
                   -- http://www.olgiati-in-paraguay.org --



More information about the Mageia-discuss mailing list