Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?
Thanks!

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

1 Answer 1

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

 
discard

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.