LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-31-2003, 06:23 PM   #1
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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:
Quote:
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?
 
Old 10-31-2003, 06:39 PM   #2
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
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
Code:
alias ls = ls --color
.
hope that works for you
 
Old 10-31-2003, 06:46 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
Thumbs up 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.


 
Old 10-31-2003, 06:55 PM   #4
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
no affero for me. your thanks is enough.
 
Old 10-31-2003, 07:55 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
Okay, here's big one in Chinese -->

Xiexie ! ! !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dark color schemes-white text doesnt show up in firefox, etc aw76 Linux - General 5 12-01-2005 10:16 AM
White color is grey on RADEON9200SE leonp Linux - Hardware 2 04-14-2005 02:51 AM
user permissions, superuser possible ? cozye Slackware 7 03-11-2005 10:19 PM
Video Is Black And White No Color Angsuman Linux - Software 6 06-14-2004 07:43 AM
ls in color for user and su -, but not su itsjustme Slackware 8 05-16-2003 02:42 PM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration