How do I unlock a user account?

I've been to system settings and to User Accounts. My account is the only one on the system and I have previously been able to UnLock the screen so that I could set my account to login without password prompt.

That didn't make any effect on the system. I still have to enter a password to log in, but now I can't unlock the User Accounts dialog to make any changes at all. What do I need to reset?

note how the unlock box in the upper right hand corner isn't available for selection...

enter image description here

2

6 Answers

Try sudo usermod -U username to unlock your account.

I just discovered your questions after it affected me too. Please take a look at following bug report: It seems somethin is broken in lightdm (new default display manager in Ubuntu 11.10). The problem had first occured during the beta release of Ubuntu Oneiric and seemed fixed, but users are still reporting problems. At the moment there isn't much you can do. Subscribe to the bug report and show that it affects you. Wait for a new fix or downgrade to an older lightdm version.

edit: Of course you can do something. Remove lightdm as display manager and install "good old" gdm display manager. Open a terminal and enter: sudo apt-get remove lightdm to remove lightdm, next enter sudo apt-get install gdm to install gdm. Reboot

Hope lightdm gets fixed soon!

2

Changing the default window manager to lightdm (as proposed here) solved that issue for me.

1

I had the same problem.

Setting the password to 'none' in Gnome 3 System Settings GUI meant I didn't need password to login but then couldn't unlock changes to user accounts anymore.

I solved it by changing the root password in the command line:

sudo passwd

The old password still worked, then I entered a new password, and now it works and can unlock user changes in the GUI again.

Follow these steps:

  1. Boot into recovery mode
  2. Hold down the shift key or press Esc key when computer starting.
  3. In the grub menu, select the Advanced Options for Ubuntu
  4. On next menu select recovery mode
  5. Then select Root – Drop to root shell prompt
  6. Now an option to enter commands appears at the bottom:
 mount -rw -o remount / ls /home passwd *username* Enter new UNIX password: Retype new UNIX password: exit
  1. On next window select resume - Resume normal boot

Enjoy Ubuntu with new password. More details in How to Reset Ubuntu Password in 2 Minutes.

What you need to do is learn command line access for modifying users. You NEED the root password, or to make a setuid program made in C.

This has a pretty good rundown of how to do things with users in bash.

Really you should make an effort to learn bash, it will save you insurmountable amounts of trouble on and down the line. If you really want the power of Unix systems it comes from the shell and scripting.

1

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

You Might Also Like