Re: I did chmod -R 440 /. now i cant do anything!
You've messed up permissions for the the root (/) directory, and by using the -R option everything else as well. You should not have used /. , instead, you should have used ./ although changing permission to 440 on your home directory is a bad idea as well.
All directories in / should be 755 and files 655. /home/$USER (and subdirectories) should be 760 and files 640 or 650 if you want write permissions. An exception is /tmp which should be 777.
I suppose that the only way to fix this is to write a script that will recursively change permissions of everything depending on whether or not a file is a directory or not, taking into account executable files like executable binaries and scripts, which, just like directories also need the executable bit set.
You've got your work cut out for you, that's for sure. You might want to consider a reinstall. Good luck.
Last edited by x1a4; June 1st, 2008 at 05:11 PM.
Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way. --Christopher Hitchens