LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 11:31 AM   #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 12:39 PM.
 
Old 08-19-2006, 07:32 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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, 07: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:38 PM.

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
Open Source Consulting | Domain Registration