LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2004, 08:30 PM   #1
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Rep: Reputation: 15
Exclamation 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?
 
Old 02-24-2004, 08:52 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
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
 
Old 02-24-2004, 08:56 PM   #3
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
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.
 
Old 02-24-2004, 09:15 PM   #4
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macos X like executable file rcainc Linux - Software 4 08-03-2005 05:01 AM
how do I lauch a file by its executable cjae SUSE / openSUSE 1 07-12-2005 11:51 AM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM
why/what's the difference between a file and an executable? sunowww General 6 06-05-2004 04:20 PM
-- MARK -- : Why is this repeated in my log file? scarr3d Debian 6 11-19-2003 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration