Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-01-2016, 08:24 AM   #1
LQ Newbie
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Ubuntu 16.04 is locking me out

I am having an issue with my Ubuntu 16.04 distribution. What is happening is I'll lock my terminal to perform some small task or take a break from my work, but occasionally when I return, I will attempt to sign in but will be told my password is wrong. After several attempts, I end up having to restart my machine.

Does anyone know what is going on (no I am not typing it wrong 3 times in a row or using the wrong password)? If this happens is there a way to get in without having to do a hard restart?
Old 07-01-2016, 08:34 AM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,375

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
Some possible solutions at the link below at 'askubuntu'.
Old 07-01-2016, 09:38 AM   #3
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Where correct $USER and $PASSWD are entered in the X login window as you have assuredly stated above, the problem is sometimes owed to the resource sockets permission. There are two (2) simple practical ways to solve this:

1 - Simply keep on repeating the login $USERNAME and $PASSWD. To my experience when repeating reaches the 4th or 5th time the socket gives up taking the user and passwd at its face value, and let's you in, ignoring other issues. or,

2 - Ctl+Alt+F3, login at the shell then remove the ailing sockets
rm -f .ICEauthority && rm -f .Xauthority
then return to the X login window Ctl-Alt+F7(or F8) there login as normally. You should be allowed this time.

Don't worry about sockets removed, X creates them voluntarily at run time when there is none that exist.

Hope that helps. Good luck.

1 members found this post helpful.
Old 07-01-2016, 04:06 PM   #4
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,262

Rep: Reputation: 582Reputation: 582Reputation: 582Reputation: 582Reputation: 582Reputation: 582
I've found thyat the X-server sometimes uses a slightly different keyboard mapping after it is launched, and if you log out and try to log back in then some of the keystrokes might be incorrect. You can test it by CTRL+ALT+F1 and type out your password in the terminal. You can also try to log in to the terminal. One of the catchall commands for systemd errors is:

$ dpkg-reconfigure libpam-systemd

Because systemd uses pam and screws it up a lot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
locking different desktop windows in Ubuntu 10.04 jone kim Linux - Desktop 1 06-23-2010 08:03 AM
my ubuntu keep locking up unix1adm Ubuntu 16 03-10-2010 07:13 PM
ubuntu on lap top locking up unix1adm Linux - Software 6 02-18-2009 04:47 PM
Ubuntu 8.10 (64-bit) keeps locking up.... perry Ubuntu 5 12-04-2008 10:08 AM
Locking down ports on ubuntu dasy2k1 Linux - Security 8 10-29-2007 04:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration