accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory).
Is the only good way now to set the system up again from beginning?
waaaah -.-
Thanks
accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory).
Is the only good way now to set the system up again from beginning?
waaaah -.-
Thanks
In a world of total automation, it is so much easier to replace something that's broken than to try to fix it. That's why you just buy a new toaster when the old one's broken -- more cost effective that way.
It's a hard situation, but in the future, I'd use a configuration management tool like salt or puppet. That way, if your server goes down or an accident like this happens, you can just tell salt or puppet to reinstall from the beginning, and -- poof! -- you have your old server back, with all its custom config and files in place where they should be. replace your old toaster with one fresh off the assembly line.