LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Emergency - need to manually mark a file executable (https://www.linuxquestions.org/questions/linux-software-2/emergency-need-to-manually-mark-a-file-executable-150158/)

davidbalt 02-24-2004 08:30 PM

Emergency - need to manually mark a file executable
 
As I detail in a related post in the Newbie forum, I have accidentally deleted my /bin folder.

Crucial to the recovery of my files is the ability to mark a downloaded version of mkdir and gzip executable.

Regrettably, chmod was also lost in the accidental delete.

I am comforable enough with my own skills that I would try to get around this problem the hard way if only I had a guide.

Can anyone help me?

shanenin 02-24-2004 08:52 PM

are you sure you lost chmod? that is part of the coreutils package. The easiest way would be to reinstall coreutils. then your chmod command should be there. I get the feeling more stuff then that is screwed up. Good luck:)

davidbalt 02-24-2004 08:56 PM

To bring this thread up to speed, I accidentally mv'ed a file overtop my /bin direcory. This is my local server, so I do have physical access, but it would be far easier and far less of a headache if I could somehow circumvent this from the command line, without having to actually take out the server, plug it into a monitor, etc, to use a boot cd or other live cd to recreate the directories. Doing a simple locate on coreutils returned only the documentation, but even if I had an rpm or source, I couldn't move it, chmod it, or rpm it anyway. I might be able to make it, but that is relying on the assumption that make requires no binaries usually located in /bin.

davidbalt 02-24-2004 09:15 PM

Basically, what I require is a way to go into the ext inode that belongs to mkdir, and turn the executable permission bit on. Mind you, I have no idea how to do this, nor have I ever heard about it being done before. But if there were a utility that would let you actually manipulate the FAT, then it might be good to know about. Although, for the record, I will likely just get my hands on SLAX and reconstruct the tree that way.


All times are GMT -5. The time now is 12:20 AM.