oh noes!

Associate
Joined
2 Jul 2004
Posts
1,435
my friend was deleting some files on our remote dedi, and they were linked to files in the /bin dir and he says its deleted them also

lots of files are no longer there now in /bin including bash and sh...

so i cant even login via ssh, but i have webmin access, filemanager and ability to upload files to the machine.

how can i get these core linux files back ? without bash/sh i cant even execute commands..

need help :(
 
Ouch, this might take major surgery if you can't access bash. Do you know exactly which files are missing?

If you know what you're looking for you can boot the machine up on a live CD, mount the hard disk, and copy over the necessary files.
 
BillytheImpaler said:
Ouch, this might take major surgery if you can't access bash. Do you know exactly which files are missing?

If you know what you're looking for you can boot the machine up on a live CD, mount the hard disk, and copy over the necessary files.

ok i got bash back by copying over the file.

how can i get back the rest of the binaries ? theres too many missing, so how can i recreate them on the server ?

i dont have physical access to the server as its a remote dedi
 
Since you have the ability to copy files across to it, why not just copy them across from another machine? I.e If there is a lot just create an archive copy that across then extract it to bin.

What distro are you running? (things like ls/cat etc are in coreutils/fileutils package) It may be possible to just reinstall that depending on how messed up your system is.
 
Last edited:
Back
Top Bottom