I need help to work out what damage I have done to my Ubuntu server.
I ran a poorly coded script which has overwritten 26 files on my Ubuntu server. The script used sudo to run with root permissions to copy files from my Raspberry Pi box.
There is nothing noticeably wrong with the Ubuntu server at the moment - it is operating fine currently in headless mode - but can anyone give my any advice as to what the files I have changed do and how I might put them back, if necessary?
I am especially worried about the files in the /boot directory. I worry that I may have left the Ubuntu server unable to reboot.
The files that were overwritten are:
-rwxr-xr-x 1 root root 17824 Apr 9 14:08 /boot/bootcode.bin
-rwxr-xr-x 1 root root 142 Feb 9 2013 /boot/cmdline.txt
-rwxr-xr-x 1 root root 1191 May 19 2013 /boot/config.txt
-rwxr-xr-x 1 root root 5783 Apr 9 14:08 /boot/fixup.dat
-rwxr-xr-x 1 root root 2068 Apr 9 14:08 /boot/fixup_cd.dat
-rwxr-xr-x 1 root root 8829 Apr 9 14:08 /boot/fixup_x.dat
-rwxr-xr-x 1 root root 3115216 Apr 9 14:08 /boot/kernel.img
-rwxr-xr-x 1 root root 9789752 Apr 9 14:08 /boot/kernel_emergency.img
-rwxr-xr-x 1 root root 2514136 Apr 9 14:08 /boot/start.elf
-rwxr-xr-x 1 root root 480216 Apr 9 14:08 /boot/start_cd.elf
-rwxr-xr-x 1 root root 3495816 Apr 9 14:08 /boot/start_x.elf
-rwxr-xr-x 1 root root 137 Feb 9 2013 /boot/issue.txt
-r--r--r-- 1 root root 0 Apr 16 09:22 /dev/sndstat
-rw-r--r-- 1 root root 0 Apr 9 12:17 /run/shm/.tmpfs
-rwxr-xr-x 1 root root 53293 Sep 9 2012 /dev/MAKEDEV
-rwxr-xr-x 1 root root 53293 Sep 9 2012 /sbin/MAKEDEV
-rwxr-xr-x 1 root root 227868 Jul 2 2012 /sbin/tc
drwxr-xr-x 2 root root 4096 Jan 18 19:19 /usr/lib/tc
lrwxrwxrwx 1 root root 6 Mar 30 2012 /sbin/swapoff -> swapon
lrwxrwxrwx 1 root root 10 Nov 20 2011 /sbin/lsmod -> /bin/lsmod
-rwxr-xr-x 1 root root 75868 Apr 29 2013 /bin/lsmod
lrwxrwxrwx 1 root root 13 Mar 7 2013 /sbin/ip6tables-save -> xtables-multi
-rwxr-xr-x 1 root root 24488 Jul 2 2012 /sbin/rtacct
-rwxr-xr-x 1 root root 26176 Aug 11 2012 /sbin/ntfslabel
-rwxr-xr-x 1 root root 93148 Dec 22 2012 /sbin/fdisk
-rwxr-xr-x 1 root root 30332 Dec 22 2012 /sbin/mkfs.cramfs
As requested, here is a list of all the files that are now in /boot:
-rw-r--r-- 1 root root 178944 Nov 27 2011 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 176764 Nov 27 2011 memtest86+.bin
-rwxr-xr-x 1 root root 142 Feb 9 2013 cmdline.txt
-rwxr-xr-x 1 root root 137 Feb 9 2013 issue.txt
-rwxr-xr-x 1 root root 1191 May 19 2013 config.txt
-rw------- 1 root root 5453616 Jan 30 17:47 vmlinuz-3.8.0-35-generic
-rw------- 1 root root 3192757 Jan 30 17:47 System.map-3.8.0-35-generic
-rw-r--r-- 1 root root 154959 Jan 30 17:47 config-3.8.0-35-generic
-rw-r--r-- 1 root root 919810 Jan 30 17:47 abi-3.8.0-35-generic
-rw------- 1 root root 5454928 Feb 3 22:19 vmlinuz-3.8.0-36-generic
-rw------- 1 root root 3192822 Feb 3 22:19 System.map-3.8.0-36-generic
-rw-r--r-- 1 root root 154959 Feb 3 22:19 config-3.8.0-36-generic
-rw-r--r-- 1 root root 919810 Feb 3 22:19 abi-3.8.0-36-generic
-rw-r--r-- 1 root root 20324962 Feb 16 07:02 initrd.img-3.8.0-35-generic
-rw-r--r-- 1 root root 20329365 Feb 19 06:39 initrd.img-3.8.0-36-generic
-rw------- 1 root root 5458256 Feb 19 21:52 vmlinuz-3.8.0-37-generic
-rw------- 1 root root 3194987 Feb 19 21:52 System.map-3.8.0-37-generic
-rw-r--r-- 1 root root 154970 Feb 19 21:52 config-3.8.0-37-generic
-rw-r--r-- 1 root root 920492 Feb 19 21:52 abi-3.8.0-37-generic
-rw------- 1 root root 5457776 Mar 13 16:46 vmlinuz-3.8.0-38-generic
-rw------- 1 root root 3195003 Mar 13 16:46 System.map-3.8.0-38-generic
-rw-r--r-- 1 root root 154970 Mar 13 16:46 config-3.8.0-38-generic
-rw-r--r-- 1 root root 920492 Mar 13 16:46 abi-3.8.0-38-generic
-rw-r--r-- 1 root root 20328592 Mar 25 06:44 initrd.img-3.8.0-37-generic
drwxr-xr-x 23 root root 4096 Apr 4 06:41 ..
drwxr-xr-x 3 root root 12288 Apr 4 06:42 grub
-rw-r--r-- 1 root root 20667791 Apr 9 13:44 initrd.img-3.8.0-38-generic
-rwxr-xr-x 1 root root 17824 Apr 9 14:08 bootcode.bin
-rwxr-xr-x 1 root root 5783 Apr 9 14:08 fixup.dat
-rwxr-xr-x 1 root root 2068 Apr 9 14:08 fixup_cd.dat
-rwxr-xr-x 1 root root 3115216 Apr 9 14:08 kernel.img
-rwxr-xr-x 1 root root 8829 Apr 9 14:08 fixup_x.dat
-rwxr-xr-x 1 root root 9789752 Apr 9 14:08 kernel_emergency.img
-rwxr-xr-x 1 root root 2514136 Apr 9 14:08 start.elf
-rwxr-xr-x 1 root root 480216 Apr 9 14:08 start_cd.elf
-rwxr-xr-x 1 root root 3495816 Apr 9 14:08 start_x.elf
drwxr-xr-x 3 root root 4096 Apr 9 14:08 .
/boot
directory?