cd /etc/
chmod -R 664 .


If you find you did an accidental chmod -R, you may be able to restore it.

  1. Make sure SSH login keeps working (chmod -R 0600 /etc/ssh )
  2. Install a similar machine
  3. On that machine, issue this command:
    find /etc/ -exec stat --format "[ ! -L \"{}\" ] && chmod %a \"%n\"" {} \; >
  4. Copy that file to the f*cked up box
  5. Chmod +x
  6. Execute chmodder

You might want to install the software on the chmod-sourcebox to make sure the two boxes look alike.

By karlo