I was renaming home directory user of my another Ubuntu account using terminal:
sudo usermod -d /home/<new_home_directory_name> <another_username>
By mistake, I missed -m
option between <directory name>
and <user_name>
. Now I'm not able to login into that account.
When I login to that user using Ctrl+Alt+F1
, pwd
returns /
.
I can see 'Access-Your-Private-Data.desktop' when I do ls
in <older_home_directory>
.
Let me know how can I recover my account as it is the main account.
ls /home/*
?