I'm having a strange issue with a CentOS 6 box. A couple of hours ago I lost most of the files in /bin - ls,ps,mount,rpm for example are gone. It seems that the missing files are those provided by coreutils, but other coreutils files (man pages, stuff in /etc, /usr/bin) are in place.
What on earth could have caused this? Anyone seen anything similar?
Earlier today I noticed that crond is not running on the system, and I restarted it. No idea yet why it was stopped. It had probably been sleeping for some time, as it ran daily weekly and monthly scripts after starting it. My only theory so far is that something cron runs has deleted the files, but I don't see how that would happen. The only custom cronjob is a backup script which runs mysqldump and gzip to an nfs share.
I swear I did not delete the files by accident.. And no other admins have access to the system currently as it's not yet in production.
Here's a listing of what I now have in /bin. "dir" is still working.
# dir /bin awk dd gettext lscgroup sleep umount basename df grep mail sort uname bash dnsdomainname gtar ping stty unicode_stop cgclassify dumpkeys gunzip readlink su unlink cgcreate ed hostname rmdir sync zcat cgexec ex ipcalc rnano tar cut false iptables-xml rview taskset dbus-cleanup-sockets find link setfont touch dbus-uuidgen gawk loadkeys sh traceroute6
That's not much.. I have a feeling I'm missing something vital/simple here but it's eluding me. I can provide more info as requested.
Update: I have been browsing through system logs and find no weird logins, rm-commands or errors. Lots of "command not found" messages in root's mailbox from cron jobs, but that's expected in this case. The server is a VMware VM running apache and mysql. Intrusion is not likely (yeah, I know what that sounds like)..
I intalled another Centos 6 VM (from dvd iso, the previous problem host was from the minimal image) and quickly ran into similar problems, but now so far I'm missing just a couple of commands...
Here's what I did, a complete list:
- installed centos 6 from dvd .iso, into esxi 4.1 vm
- selected "web server" as base package in install
- configured network interface
- configured proxy in /etc/profile (with vi - note this later)
- installed mysqld and some php packages
- removed postgresql
- put some data in mysql db + apache documentroot
- yum update
- tried to configure an apache virtualhost - noticed that vi is missing
- noticed that /bin/cp is missing as well
- coreutils & vim-minimal are installed according to rpm
yum.log shows that during the yum update vim-minimal was updated, coreutils not, no package removals visible. Can't see anything strange in dmesg, /var/log/secure, /var/log/messages