While I was setting up an Ubuntu server (EC2), I accidentally run the following:
sudo chown -R www-data.www-data /*
Anyway, is there an easy way to restore all the original file permissions?
I am not sure whether I should spend the time fixing this, or simply create a new ec2 instance and start from scratch. I am fairly early in the set up process so it might be the faster option.