LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   When command lines go bad (https://www.linuxquestions.org/questions/linux-general-1/when-command-lines-go-bad-362207/)

bob7 09-10-2005 08:33 PM

When command lines go bad
 
One thing that can be a double edged sword in linux is the complete ease of doing administrative stuff via the command line. For instance, you can simply type 'chmod 444 /' as root and mess up the entire system, which happens to be what I just did. Now how exactly do I recover from this?

aysiu 09-10-2005 08:41 PM

Can't you just chmod it back to 775 or something?

bob7 09-10-2005 09:06 PM

Yep, and that worked.

freakyg 09-11-2005 05:47 AM

chmod 775 is all good and well but, your system is now "VERY" insecure........there are files such as
/etc/shadow and /root that are now readable by users......LOL.........just hope you don't get hacked because crackers can now use your box to send out spam and worms!!


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