Problem With Sudo Sorry Try Again
-
sudo su --> "Sorry, try again." Hi I'm running 16.04.2 LTS, uname -r shows 4.4.0-78-generic, and I don't know why but when I try to run: it prompts me three times for my password the first two times saying Sorry, try again. the third says sudo: 3 incorrect password attempts
I've booted from live cd and reset my root password, verified I was in the sudo group, even added myself directly to the sudoers file.
I've purged and reinstalled sudo and ubuntu-minimal
From root I've changed my user password
At this point I'm stuck and haven't found anything else in my searches to resolve this issue. I can re-install from scratch but was looking to see if there was some other simple fix first.
The hard drive was full at one point but I cleaned up space, removed all the old images and headers, apt-get update && apt-get upgrade work correctly, and I've even run a reinstall_all.sh.
I'm not sure what my /etc/pam.d files should all look like, if anyone has a list of files and their contents that I could compare against I would appreciate it
Thanks everyone for any assistance you can provide.
-
Re: sudo su --> "Sorry, try again."
What do you mean when you say that you are entering your root password?
Please read The Forum Rules and The Forum Posting Guidelines
A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
This universe is crazy. I'm going back to my own.
-
Re: sudo su --> "Sorry, try again."
Does sudo -i work?
Or sudo -s?
-
Re: sudo su --> "Sorry, try again."
"booted from live cd and reset my root password"
Originally Posted by QIII
boot from live cd
mount -o rw /dev/sda1 /mnt
chroot /mnt
passwd
set the password"
From root I've changed my user password"after rebooting from the livecd back to the hard drive, I logged in as root and set my password
passwd <username>nope, both just continue to prompt for password
Originally Posted by TheFu
Last edited by howefield; June 4th, 2017 at 03:29 PM. Reason: posts combined.
-
Re: sudo su --> "Sorry, try again."
It is not advisable to use a root account. I would disable it ASAP.
When you use
are you entering YOUR user's password or the password you set up for root?Please read The Forum Rules and The Forum Posting Guidelines
A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
This universe is crazy. I'm going back to my own.
-
Re: sudo su --> "Sorry, try again."
It is not advised to log in as root. If you still want to do it and you understand and accept the risks, you must be aware that your sudo password and your root password are not the same. You have to use sudo and setup a root password first:
then, all you have to do is type su and press enter and type your root password. Again, not advisable, very easy to make fatal mistakes even if you are an advanced user. Backup your whole system before attempting to do anything.Code:
username@adsfPC-2:~$ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
-
Re: sudo su --> "Sorry, try again."
I realize that, and hence why I'm trying to figure out what is wrong with my sudo. When I 'su root' I'm typing in the root password
Originally Posted by QIII
When I 'sudo -i' or 'sudo su' I am using my user password and it keeps prompting and fails (and I have tried the root password, no success)
When I 'sudo su' I get this in my auth.log:
I canceled out after 1 attempt just to get the log entries but it fails 3 times normally before quittingCode:
Jun 4 06:30:26 server1 sudo: PAM (sudo) illegal module type: gJun 4 06:30:26 server1 sudo: PAM (sudo) no control flag supplied Jun 4 06:30:26 server1 sudo: PAM (sudo) no module name supplied Jun 4 06:31:50 server1 sudo: pam_unix(sudo:auth): auth could not identify password for [ <username> ] Jun 4 06:31:50 server1 sudo: <username> : 1 incorrect password attempt ; TTY=pts/1 ; PWD=/home/ <username> ; USER=root ; COMMAND=/bin/su
I don't want to su to root, I want to use sudo, but sudo is broken.
Originally Posted by leunam12
Hopefully my replies above will now serve to explain what is happening, I should have included auth.log from the begining sorry about that.
Now given I know my root password and I can su root successfully, the problem seems to be with pam but I don't know what I should be looking at to troubleshoot it.
Last edited by howefield; June 4th, 2017 at 03:29 PM. Reason: posts combined.
-
Re: sudo su --> "Sorry, try again."
Very strange. I googled "server1 sudo: PAM (sudo) illegal module type: gJun 4 06:30:26 server1 sudo: PAM (sudo) no control flag supplied" but google has nothing for it.
Can you login as root (just for now) and try reinstalling sudo?
Whether or not this will help, I can't say for sure.Code:
apt install --reinstall sudo
Last edited by oldos2er; June 4th, 2017 at 03:07 PM. Reason: Amended command
-
Re: sudo su --> "Sorry, try again."
Did sudo ever work?
Has the sudoers file (s) been modified? Can you restore from a backup?
Can you post the non-comment parts of the sudoers file and 'id' output, please?Is there a reason that PAM would have been touched? Doing any LDAP or SSO or ... ?
-
Re: sudo su --> "Sorry, try again."
Yep tried that already:
Originally Posted by oldos2er
Originally Posted by david144
Source: https://ubuntuforums.org/showthread.php?t=2362826
0 Response to "Problem With Sudo Sorry Try Again"
Post a Comment