Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Before I mention anything further, DO NOT give me a response saying that terminal won't show password input. I'm AWARE of that.

I'm typing my user password in (not a capslock issue), and for some reason it still says 'Authentication Failure'.

Is there some other password (one I'm not aware of) I'm supposed to be using other than my user password? I've had this ubuntu before, on another hard drive and I didn't have this problem. (And it was the same ubuntu, ubuntu 12.04 LTS)

ai@AiNekoYokai:~$ groups
ai adm cdrom sudo dip plugdev lpadmin sambashare
ai@AiNekoYokai:~$ lsb_release -rd
Description:    Ubuntu 12.04 LTS
Release:    12.04
ai@AiNekoYokai:~$ pkexec cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

I can log in with my password, but it's not accepted as valid for authentication <-- That is pretty much my issue. (Although, I haven't gone into recovery mode.)

I've ran:

ai@AiNekoYokai:~$ ls /etc/sudoers.d
README

And also reinstalled sudo with:

pkexec apt-get update
pkexec apt-get --purge --reinstall install sudo

pkexec usermod -a -G admin $USER <- Says admin does not exist

su $USER <- worked for me, however, my password still does not do much (in sense of not working for other things)

I changed my password with pkexec passwd $USER. I was able to change it no problem.

gksudo xclock was something I was able to get into, no problem. (Clock showed)

ai@AiNekoYokai:~$ gksudo xclock
share|improve this question

6 Answers

I had this problem when I was using a special keyboard layout (Bépo). The terminal was not recognizing the special characters. Maybe this is your problem too ?

How to change the keyboard-layout in the console, with special characters?

share|improve this answer
I appreciate you trying to help, but I don't have a special keyboard layout. But I do thank you very much for the effort! ^-^ – Souta Jun 18 '12 at 23:56
up vote 1 down vote accepted

Run pkexec passwd $USER to change password. Then retry.

If it doesn't work, there are other troubleshooting things you can do (detailed in the question above).

share|improve this answer
1  
Are you saying that pkexec passwd $USER worked for you? I'd gotten the sense that it did not, and that the problem was instead because of some typo you'd been making (something like using su instead of sudo, but not necessarily that). – Eliah Kagan Jun 21 '12 at 2:53
It was part of both. I kept typing something wrong (unsure what it was) but then on the last time I tried it, I managed to get it working. I honestly think it was mostly a password issue. I was using some special characters (not umlaut-special), and a friend of mine pointed out something to me with how my previous password started and how the terminal might have mistook said password. (That, or it was just some freaky glitch, but since it hasn't happened since password change, I'm calling user error on myself.) – Souta Jun 21 '12 at 13:42
@mods then this really should not be the accepted answer – Private Mar 8 at 7:35

Why dont you add (to be more explicit)

# User privilege specification
root    ALL=(ALL:ALL) ALL  
ai      ALL=(ALL:ALL) ALL
share|improve this answer

https://help.ubuntu.com/community/RootSudo#root_account This might help you...

share|improve this answer
1  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Also, it's unclear what would be gained from enabling the root account in this situation (even if this were still not solved). All sorts of administrative tools are written or configured to use sudo, so to get the problem solved, fixing sudo really was necessary. (Plus, that method for enabling the root account uses sudo.) – Eliah Kagan Jul 27 '12 at 6:46

I found this quick and easy way to reset Ubuntu user password.

I was messing around with /etc/passwd and /etc/shadow and somehow lost my ability to use sudo, and then realized my user password got changed or deleted somehow. I was able to fix the problem using those instructions.

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Eliah Kagan Dec 25 '12 at 13:53

ini this i found that can make your super user back... :) http://lucidlynxuser.wordpress.com/2013/03/08/solved-repair-problem-password-super-user-in-ubuntu-via-gui-mode/

share|improve this answer
2  
Don't just provide a link. Provide a cogent summary as well in case the link breaks later on. – vasa1 Mar 8 at 5:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.