I was using the AWS EC2 to host websites under apache then I made a huge mistake... I tried to change a user group of a folder (to www-data) but instead of this I've changed the entire system user group.
My mistake was a "sudo chown -R www-data:www-data /"
So I lost root access and now almost everything stop to work. I can't even login to SSH anymore.
Is there a way to restore those permission?