I entered /var/www and I ran sudo find / -type d -exec chmod 755 {} ;, thinking that this will only affect folders in /var/www. This changed permissions of all system folders.
How can I restore every folder to its default permissions?
I entered /var/www and I ran sudo find / -type d -exec chmod 755 {} ;, thinking that this will only affect folders in /var/www. This changed permissions of all system folders.
How can I restore every folder to its default permissions?
Reinstall is only option. sorry :).
/var/wwwfolder, as well as/homeso that you can restore it after re-installation. But you will still have to verify the permissions of all the files after you restore. – Delorean Mar 22 '17 at 19:18