Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DIR_COLORS as root
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wizbit
n00b
n00b


Joined: 30 Apr 2003
Posts: 7
Location: England

PostPosted: Tue Oct 14, 2003 1:54 pm    Post subject: DIR_COLORS as root Reply with quote

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
View user's profile Send private message
vrm-ol
n00b
n00b


Joined: 04 Jul 2003
Posts: 42
Location: Euskirchen, Germany

PostPosted: Tue Oct 14, 2003 5:40 pm    Post subject: Re: DIR_COLORS as root Reply with quote

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
View user's profile Send private message
wizbit
n00b
n00b


Joined: 30 Apr 2003
Posts: 7
Location: England

PostPosted: Tue Oct 14, 2003 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum