Emergency - need to manually mark a file executable
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.