Score:0

What does "sudo chmod -R 777 /" do?

in flag

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.

jpbrain avatar
ca flag
HI @OroZoro. Go for the backup or last snapshot. Too much work to recover it and related security issues.
ar flag
Welcome to Ask Ubuntu. CentOS 7 is not an official flavor of Ubuntu.
Artur Meinild avatar
vn flag
The question you probably should be asking is: WHY did you run `sudo chmod -R 777 /` on a production server?
Score:0
es flag

You just messed up your system; time to reinstall.

Yes, theoretically you now have all permissions, but you lost all setuid, setgid and sticky bits. Apart from losing all security, of course. Doing that on a production server (!!) is the cherry on top.

You lost the ability to use sudo, su and probably a dozen other commands that you probably wanted to keep using.

OroZoro avatar
in flag
I thought theoretically and acted, there wasn't any backup maintained, we had to reconfigure everything, to my fortune, there weren't any logs maintained so the culprit is unidentified :). Thanks for your answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.