I have a Red Hat Entreprise Linux 4 server and I am encountering this error
# grep
Segmentation Fault
I know it is not the right use of grep command, but I did that just for testing purpose,then I did
# which grep
/bin/grep
# ls -l /bin/grep
-rwxr-xr-x 1 root root 79800 Aug 10 11:45 /bin/grep
Notice that Aug 10,11:45 it's the current server's date, and when i do cat /bin/grep, it seems I am rewriting this file each time.
This same thing happens with some other commads (like cp for example).
My question is how can I stop segmentation fault to happen again? I've also updated grep
command using rpm package that came with the recovery CD,but it only works for a while.
And also, I would like to know where can I find an rpm package repository for RHEL 4?, on the web, because my CD's (4) don't have all the rpms.
Thanks in advance for your help.
Any comments would be greatly appreciated.
Is it just me or are these permissions way off? Why is the user 'user' the owner of the /bin directory?
I'd suggest doing a md5sum and sha1sum against the /bin directory on a known clean machine and compare the values against what you have here (ideally from a rescue disk/recovery CD)