I can no longer log in to my system after running this command :
sudo chown -R &USER: $HOME
as ROOT because I couldn't access a certain file.
Now I can't log in again.
I can no longer log in to my system after running this command :
sudo chown -R &USER: $HOME
as ROOT because I couldn't access a certain file.
Now I can't log in again.
Here's how I solved my problem following Zanna recommendation.
Ubuntu GNU/Linux, with Linux 3.8.0-26-generic (recovery mode)
. I chose the first option with recovery mode and then selected Enable networking.sudo chown -R username: /home/username
where username is my username. After the process finished running, I exited the shell and restarted my system.And Voila! I was able to log in again with no files affected, everything was intact. :)
chown
it back. Please either boot in recovery (enable networking and start a root shell) or with a live usb/Cd (mount your root partition and/home
if it is on another partition) and run the commandsudo chown -R username: /home/username
whereusername
is your username. If you don't know how to do these things, please take a look at questions such as this for guidance or comment and I or someone else will help you – Zanna Dec 16 '16 at 12:16