I did sudo chmod -R 777 /
on our production server and everything got messed up. The hosted sites and API's stopped working, SSH said connection refused, it was a cyberpanel running cent os 7 and we couldn't even log into cyberpanel.
I thought that all users would have have all permissions on all files in the system and executed the command. I don't quite understand what went wrong.
sudo chmod -R 777 /
on a production server? – Artur Meinild Jun 29 '21 at 16:18sudo chmod 777 -R /
makes every file and directory on the entire system world-readable, world-writable, and world-executable. And since777
is equivalent to0777
, it will also deactivate the setuid, setgid, and sticky bits. Your system is now completely de-immunised. Wipe and reinstall everything from scratch. – 000 Feb 23 '24 at 00:06