HELP! I'm locked out of all Ubuntu accounts
Matthew Martinez
I was using these commands in terminal:
sudo apt-get install gksu
gksu nautilusI needed to move some files from one account into another & then I wanted to rename some of the accounts. I got a failure message & my desktop wallpaper went black.
I logged out & now I cannot log into ANY account at all. One account is my son's (with his school homework on it) & the other is mine (an admin). There is no password on my son's but I have one on mine.
I cannot get into either account...I am brought back to the login screen. I can't even get to a terminal to make any changes. Any help would be appreciated!
31 Answer
If you hold [shift] during boot you will get a textmode menu.
Choose (recovery mode)
After boot you will be greeted by a colorful texmode screen
choose root
Make the system read/write
mount -o rw,remount /add a new user to your system:
adduser emergencygive this sudo permission:
addgroup emergency sudojust reboot with reboot and login with your freshly made account.
If this all works out OK you can start repairing the things that went wrong.
Good Luck :-)
7