Description of problem: Version-Release number of selected component (if applicable): steps Stick it at the end of /etc/bashrc if [ `id -un` = root ]; then PS1='\[\033[1;32m[\033[1;35m\]\u@\h\W\[\033[1;32m]\033[1;32m\]\$\[\033[1;0m\]' else PS1='\[\033[1;32m[\033[1;36m\]\u@\h\W\[\033[1;32m]\033[1;32m\]\$\[\033[1;0m\]' fi root prompts and non root prompts are not differentiated with colors. Actual results: root prompts and non root prompts are not differentiated with colors. this would be especially be useful for desktop systems and home users to warn them that root usage is privelaged Expected results: It should use colors to differentiate prompts Additional info: credit:rank AT pineaus.com
No colour scheme will please everyone, but at the very least it should be something simpler! All red, for instance, for a root login.
Hey That was just an example. Go ahead and implement a more simple mechanism. All I am suggesting is a simple method to differentiate between root and normal user accounts
See fedora-devel-list discussion: https://www.redhat.com/archives/fedora-devel-list/2004-December/msg00278.html
I think David Woodhouse's objection is most succinct: If the user is unaware of the distinction and the danger of doing things as root, changing the colour of the prompt isn't going to help. If the user _is_ aware of the difference, then the standard $/# indicator is sufficient.