I am using Ubuntu 13.04 x86_64.
I wanted to own whole stuff in my home directory. So I executed these two commands.
sudo chown -RcH rootkea ~ sudo chown -RcL rootkea ~
Now due to those symbolic links linked to some other files in filesystem I have accidentally owned files which reside outside of my home directory.
The immediate consequences which I noticed are:
sudo not working
$ sudo sudo: effective uid is not 0, is sudo installed setuid root?
- system has become so slow. It just gets hanged when I click on shutdown / reboot. Each time I have to manually power off the machine.
creates a log file
/var/log/cups/error_logof indefinite size which consumes the last byte of my hard drive (after considerable time). Last time it was 17.8 GB!
The content of the file was only these two lines repeated uncountably:
E [24/May/2013:02:27:52 +0530] File "/usr/lib/cups/notifier/dbus" has insecure permissions (0100755/uid=1000/gid=0). W [24/May/2013:02:27:52 +0530] Notifier for subscription 531 (dbus://) went away, retrying!
cups program is screwed too.
Now I have no idea about how many other programs have gone to unusable state.
Is there any way to undo the effects of above mentioned two commands ?
How can I restore the default permission settings to whole filesystem ?