Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

HELP! I'm locked out of all Ubuntu accounts

Writer Matthew Martinez

I was using these commands in terminal:

sudo apt-get install gksu
gksu nautilus

I 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!

3

1 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 emergency

give this sudo permission:

addgroup emergency sudo

just 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy