Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Huh, I feel kinda dumb right now.
Just did an

chown -R www-data:www-data .*

and voilá, /var is all messed up.
Already fixed some to root, but mysql refuses to start.
How can I restore the owner/group to /var/* on a Ubuntu 10.04.1 LTS ?

share|improve this question
If nothing better, boot up other ubuntu VM and copy one by one :( – Filipe YaBa Polido Apr 25 '12 at 1:05

Try this:

$ chown -R mysql:mysql /var/lib/mysql
share|improve this answer
Done it already, did't work. also fixed the mysqld.sock :| – Filipe YaBa Polido Apr 25 '12 at 1:11
Oh, wait... lib, missed that. Thanks – Filipe YaBa Polido Apr 25 '12 at 1:13
So, did that work, then? – EEAA Apr 25 '12 at 1:18
To MySQL, yes. Thank you. Now I have to check the rest, some things might be broken too and I didn't notice...yet :| – Filipe YaBa Polido Apr 25 '12 at 1:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.