Re: Missing bin directory
From: Andy Baxter (news2_at_earthsong.null.free-online.co.uk)
Date: 09/11/03
- Next message: Fred Tourette: "Re: Lindows, anyone?"
- Previous message: Scott M. Navarre: "Disk Druid warning during install of RH 8.0???"
- In reply to: Dan Grabbybear: "Missing bin directory"
- Next in thread: Michael Heiming: "Re: Missing bin directory"
- Reply: Michael Heiming: "Re: Missing bin directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 11 Sep 2003 11:11:36 +0100
Dan Grabbybear wrote:
> The /bin directory was deleted by accident on a server with only telnet
> access, and I'm wondering how I can get back some basic commands such as
> cp
> and mkdir. I have ftp access. Would it be possible to ftp an equivalent
> binary? Is it possible recreate the bin directory without mkdir or a cd?
> Thanks.
I'm assuming that you still have /usr/bin? Try using the built-in copy
function from midnight commander or a similar utility. This almost
certainly works using the standard unix functions not the cp command from
/bin, so as long as you still have /lib (most likely /lib/libc.so.6), it
might work.
Or you could run sshd on the server and use scp?
Also, the commands don't need to be in /bin in order to run - this is just
for convenience so they can be found through $PATH. So you could ftp a
suitable version of cp+mkdir to your usual ftp directory, then run them
from there using './cd' .
andy.
-- remove ' n - u - l - l ' to email me. Please don't send me html mail or un-notified attachments. These will be automatically filed under 'probable spam' unless I'm expecting an email which hasn't come. If you do need to send an attachment or html mail, put [attachment] or [html] in the subject line. Thanks, andy.
- Next message: Fred Tourette: "Re: Lindows, anyone?"
- Previous message: Scott M. Navarre: "Disk Druid warning during install of RH 8.0???"
- In reply to: Dan Grabbybear: "Missing bin directory"
- Next in thread: Michael Heiming: "Re: Missing bin directory"
- Reply: Michael Heiming: "Re: Missing bin directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|