Ubuntu 11.04 upgrade sudo authentication failure

Asked by Phallmaster

After upgrading from 10.10. to 11.04 I have found that my sudo password doesn't work. I have always used the same password for my login so I know it. I can login fine but cant authenticate anything. I also cannot log into root or recovery mode. It is reporting that my user account is a member of admin. If I try and change my user password I get authentication manipulation token error. This was all working fine prior to me upgrading to 11.04.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Phallmaster
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

When you reset the password, did you do it ni root recovery mode?

Revision history for this message
Anthony Harrington (linuxchemist) said :
#2

http://www.psychocats.net/ubuntu/resetpassword is my best advice. Reset the root password - it won't ask for logins to do so and the instructions on that site are incredibly clear ;) Good luck.

Revision history for this message
Phallmaster (phallmaster) said :
#3

Still no luck, got into recovery mode and set root password. Edited sudoers file to include myusername ALL=(ALL) ALL. Still not working. Checked groups - and I am admin. Changed my password too.
Everytime I sudo and enter my password it says sorry try again - it is alway wrong and I don't know why? This has happened after the upgrade something has screwed my password.

Revision history for this message
Phallmaster (phallmaster) said :
#4

Also in recovery mode : added my username to groups sudo and root and reset my password.
Sudo still reporting my password is incorrect in normal mode!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

You need to be in the admin group

Revision history for this message
Phallmaster (phallmaster) said :
#6

I am already in the admin group.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What is the exact error message?
Please open a terminal and issue the following commands:

id
sudo id

Then copy all output and paste it into a new message of this question thread.

Revision history for this message
Phallmaster (phallmaster) said :
#8

phallmaster@MSI:~$ id
uid=1000(phallmaster) gid=1000(phallmaster) groups=1000(phallmaster),0(root),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),46(plugdev),111(lpadmin),119(admin),122(sambashare)

I can't do sudo id - but if I do it in recovery mode I get:

uid=0(root) gid=0(root) groups=0(root)

I have now lost wireless internet connection as asking for authentication and it won't accept my password.
I added a new user "temp" and assigned to admin and wireless won't work there either, plus it doesn't work on root login.
I am replying on another computer now.

If it's knackered is there an easy way to remove 11.04 and revert back 10.04 as I am not liking version 11!

Thanks for help so far...

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

I know that you can't sudo, but I asked you to try to do "sudo id" to see what exactly shows up on your screen when you try.

Revision history for this message
Phallmaster (phallmaster) said :
#10

sudo id asks for my password, which I enter and then it says sorry try again, after 3 attempts it comes up with 3 bad attempts message.

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Can you please issue the following command and copy/paste the output

tail /var/log/auth/log

Revision history for this message
Phallmaster (phallmaster) said :
#12

I cant believe it but it's now working, I know for a fact the sudoers file was incorrect - caused by upgrade but after fixing it I still had the same problem. I then decided to install 10.10 using live cd but before installign it asked for keyring password for internet and connected. I then rebooted chose ubuntu classic from login screen and now everything works!?
Thanks for you help - I'm closing this one now....