LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   bash ls not coloring files, directories etc (http://www.linuxquestions.org/questions/red-hat-31/bash-ls-not-coloring-files-directories-etc-475394/)

mr_smith 08-19-2006 12:31 PM

bash ls not coloring files, directories etc
 
problem solved - moderators can remove this thread.

Thank you!

MensaWater 08-19-2006 08:32 PM

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

mr_smith 08-30-2006 08:05 AM

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 :D Also email started working ;)


All times are GMT -5. The time now is 04:32 PM.