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.
during the install and debugging of a php app on my home server I accidentally ran this command:
chmod 0444 /etc/*
I didn't notice any problems right away but soon I was unable to run any command with messages that I didn't have permission.
I rebooted.
Computer will not boot says that it can not run /bin/bash (don't remember reason given) and then that it can not run several other programs called for by init.
I booted from a rescue cd and restored permissions as best I could according to the /etc/ listing of a similiar computer. I still get same error.
I would've'e have thought changing back permissions would take care of it.
Any thoughts on how to correct situation shy of a reload.
I spent many late evenings getting LAMP and PEAR several other apps compiled and configured. I'd like to avoid that if possible.
I obviously need to setup some sort of backup solution.
System
Vector Linux 3.2 (Based on Slack 9.0)
amd k6-2 500
If more info is required I will be more than happy to oblige.
Eeek. I remember an accidental permissions loss on /usr. What a nightmare. I ended up reinstalling. In any case, more specific error messages will help us to debug your problem.
At one time I already changed permission to 777 thinking that would at least get me booted. It didn't. I don't understand why not. Unless I cleared a suid bit somewhere? I will to get some pertinent boot log information and post back.
I dug deeper into the problem tonite. I attempted to use a recue disk and chroot into my root partition. I recieved this error:
<error qoute>
"Cannot execute /bin/bash: Permission denied"
<\error qoute>
After further troubleshooting I discovered that somehow permissions had been changed to 0444 in /lib also.
Not sure how, but anyways all is back to normal and I have a bootable system. Hope this helps someone else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.