View previous topic :: View next topic |
Author |
Message |
wizbit n00b
Joined: 30 Apr 2003 Posts: 7 Location: England
|
Posted: Tue Oct 14, 2003 1:54 pm Post subject: DIR_COLORS as root |
|
|
I've changed my /etc/DIR_COLORS file so that it no longer displays directories and files in a bold font. This works fine as a regular user, however when you su to root it reverts back to normal (i.e. bold directories).
I'm using aterm and have tested this with xterm and rxvt, which all behave the same. I don't want to use Eterm (I have tried this and it works correctly) as aterm does everything I need.
I think its just a simple configuration thing but I'm not sure where...
Any ideas? |
|
Back to top |
|
|
vrm-ol n00b
Joined: 04 Jul 2003 Posts: 42 Location: Euskirchen, Germany
|
Posted: Tue Oct 14, 2003 5:40 pm Post subject: Re: DIR_COLORS as root |
|
|
wizbit wrote: | I've changed my /etc/DIR_COLORS file so that it no longer displays directories and files in a bold font. This works fine as a regular user, however when you su to root it reverts back to normal (i.e. bold directories).
Any ideas? |
Does roots shell (i assume bash) source any of the system wide config-scripts? (man bash, section 'Invocation' to find out, when bash reads which file), Does any of those files include something like eval `dircolors -b /etc/DIR_COLORS`?
vrm |
|
Back to top |
|
|
wizbit n00b
Joined: 30 Apr 2003 Posts: 7 Location: England
|
Posted: Tue Oct 14, 2003 7:11 pm Post subject: |
|
|
Quote: | Does any of those files include something like eval `dircolors -b /etc/DIR_COLORS`? |
My own .bashrc had the eval command but not root's.
Just added it to the /etc/profile and everything works as it should.
Thanks for the help. |
|
Back to top |
|
|
|