Month: March 2013
-
Backup and restore permissions linux (accidental chmod -R)
cd /etc/ chmod -R 664 . *SHIT!* If you find you did an accidental chmod -R, you may be able to restore it. Make sure SSH login keeps working (chmod -R 0600 /etc/ssh ) Install a similar machine On that machine, issue this command: find /etc/ -exec stat –format “[ ! -L \”{}\” ] &&…