LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 08-19-2006, 12:31 PM   #1
mr_smith
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Question bash ls not coloring files, directories etc


problem solved - moderators can remove this thread.

Thank you!

Last edited by mr_smith; 08-19-2006 at 01:39 PM.
 
Old 08-19-2006, 08:32 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
Rather than requesting removal you should put your original question AND the solution. If you ran into the problem someone else will in the future. One of the benefits of forums like this is the ability to search for the problem without having to ask.

I'm assuming you figured out that you didn't have "ls" aliased to ls --color
 
Old 08-30-2006, 08:05 AM   #3
mr_smith
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Cool

Quote:
Originally Posted by jlightner
Rather than requesting removal you should put your original question AND the solution. If you ran into the problem someone else will in the future. One of the benefits of forums like this is the ability to search for the problem without having to ask.
Sory - you have a good point and I will do this next time.


Quote:
Originally Posted by jlightner
I'm assuming you figured out that you didn't have "ls" aliased to ls --color
Not exactly. /etc/DIR_COLORS was there but my problem was with permissions. Just root had colored output - all other user, didn't.

Why? Well, as I was moving something arround, I accidentally pressed chmod 755 /* instead ./* and in between I also used -R and some ohter permissions.

When I realized that changes were not being made because of my typo I couldn't do anything with the rhl9.

So first I managed to set permissions on /etc/pam.d to and /etc/securrety , hence I could login back (fail safe).

Then I changed files for ssh and ftp since these errors were shown in my logs.

And then the first annoying problem was no colors - besides the email was not working

Then I installed new rhl9 on another system, exported permissions and ownerships with:
Code:
find . -exec stat -c 'chmod %a "%n"; chown %U:%G "%n"' {} ";">my_perms
and uploaded my_perms to my hurt box, chmod 777, run and then it was OK Also email started working
 
  


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
Bash - listing directories tarja Programming 8 12-03-2005 05:03 PM
Bash script about directories tarja Programming 3 11-23-2005 02:19 PM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 04:22 PM
finding empty directories with bash Iriel Solaris / OpenSolaris 2 09-15-2005 01:52 PM
Copying linked files, replacing directories in bash scripts? ta0kira Programming 2 10-10-2004 05:46 AM


All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
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