So here's the deal:
I accidentally "chowned" a folder (I think it was my /home/username folder, but I'm not sure) to root instead of me (I think). Whatever I did, Ubuntu 10.04 would not boot because it "Could not update .ICEauthority - Permission denied."
This isn't the first time it's happened, so I booted up a live session, mounted the permanent installation (/dev/sda5, in case it matters) into a location I created for the purpose (/media/fix). In all, this is what I attempted:
Code:
sudo mkdir /media/fix
sudo mount /dev/sda5 /media/fix
sudo chroot /media/fix
apt-get update
apt-get upgrade
apt-get dist-upgrade
exit
exit
sudo reboot
The same thing came again: "Cannot update /home/username/.ICEauthority - Permission Denied". However, it let me log in but unmounted and encrypted my drive. When I accessed the README.txt it told me the above and suggested I run:
Code:
ecryptfs-mount-private
I tried that, it asked for my login passphrase, I typed it in, and it still said permission denied.
Then, I tried the following:
Code:
sudo chown username /home/username/.ICEauthority
That returned an error saying that "/home/username/.ICEauthority doesn't exist". Back to square one.
In frustration, I made my huge error. I meant to type:
Code:
sudo chown username -R /home
I hoped that would solve the permission errors. I accidentally hit enter before finishing, so the command I actually gave was:
Code:
sudo chown username -R /
After that, and a couple minutes of waiting while everything under root got chowned by username (or tried to ... lots of things gave a "permission denied" error), I tried to do:
It didn't work. I was told that I would need to be "uidroot" to use any "sudo" commands.
So, my question: is there a way to fix this, or is the only thing possible to reformat that partition and reinstall Linux? I have Windows on another partition, and I've saved everything important to the Windows partition anyway, so that would be doable, but I'd really like to get back to Linux without losing the programs and settings and all. Any help is much appreciated!