-   Linux - Newbie (
-   -   user has color but superuser has only white - this should not be (

Bruce Hill 10-31-2003 07:23 PM

user has color but superuser has only white - this should not be
In xterm, as user I have colored text output, but as su all the text is white. How do I change this?

I did man dir_colors, which says:

Usually, the file used here is /etc/DIR_COLORS and can be overridden by a .dir_colors file in one's home directory.
but I have no file /etc/DIR_COLORS and no .dir_colors in my home directory.

Do you know how to give root the ability to display in colored text also?

joesbox 10-31-2003 07:39 PM

you probably need to make a .bashrc for root. look and see what yours is for your user under ~ and you may even cp it to root and chown/chgrp so that it will work for root. usually if you want ls to have color you need to

alias ls = ls --color
hope that works for you

Bruce Hill 10-31-2003 07:46 PM

Correct answer to the question
Thanks, Joe. You directed me to .bashrc which is where I needed to go. The following was in .bashrc for root, so I uncommented it and it works!

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval `dircolors`
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'

You got an affero? I can't get mine setup, though I though I did it.


joesbox 10-31-2003 07:55 PM

no affero for me. your thanks is enough.

Bruce Hill 10-31-2003 08:55 PM

Okay, here's big one in Chinese -->

Xiexie ! ! !

All times are GMT -5. The time now is 06:13 AM.