Archive

Ubuntu Sudo Password Fix

After creating a few Ubuntu Virtual Machines from a VMware image, I was having some issues with the sudo command.  It was requiring that I enter my password twice before authenticating me.  This would also happen when I logged into the console gdm.

 Here is the quick fix:

 1. sudo -i (yes type in your password twice for this one)

 2. vi /etc/pam.d/common-auth

 3. find the line "auth required pam_unix.so nullok_secure" and append "try_first_pass" so that you have "auth required pam_unix.so nullok_secure try_first_pass"

 4. Save the file and you should no longer have the double password sudo issue.

(click here should you not know how to use vi)