Using sudo or logging in requires entering the password twice, gksudo does not work because of this.

Asked by slavik

When I try to launch Synaptic from System -> Administration menu, gksudo (redirected to gksu) asks for the password and after entering the password, it still does not launch Synaptic.

All programs in System -> Administration exhibit the same behavior.

Running 'gksudo synaptic' in terminal produces the same output. Running 'sudo systic' in terminal asks for the user password two times (rejects it the first time, even though the password is correct). After the password is accepted by sudo in terminal, I can use gksudo and sudo from within terminal, but not by using launchers from menus.

The error I get when using 'gksudo nautilus' after the password is accepted by sudo in terminal:
(nautilus:11305): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

EDIT: seems to happen after latest update.

EDIT2: I also have to enter the password twice to log in.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
slavik
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
slavik (gslavik) said :
#1

Changin the password and rebooting solves the problem ... but why?

Revision history for this message
slavik (gslavik) said :
#2

After enabling support for Windows Active Directory (which doesn't work as it should, as it doesn't allow logging in a user that does not have a local account)

Revision history for this message
Best slavik (gslavik) said :
#3

After digging around with help in IRC, the solution is here:
https://wiki.ubuntu.com/DoublePasswordPromt

the short story is that it was trying to authenticate through kerberos (since I tried setting up active directory on my computer) and failing, then it would ask local system (this would be the second promt)