Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old July 18th, 2007   #1
akkad
Way Too Much Ubuntu
 
Join Date: May 2007
Location: Dubai
Beans: 252
Ubuntu 9.04 Jaunty Jackalope
Login screen asks for password twice

i have asked this many times, i believe there is a solution for this :

i have edited some configuration for keyring to stop asking for the keyring password in every login where it went fine, but after that the login screen started to ask me to enter the password twice to be able to login, any idea how to make it ask for the password just one time ???
akkad is offline   Reply With Quote
Old July 18th, 2007   #2
Koybe
Dipped in Ubuntu
 
Koybe's Avatar
 
Join Date: Oct 2005
Location: Belgium
Beans: 564
Hardy Heron (Ubuntu Development)
Re: login password twice

It seems to be a pam problem.

What did you do to any pam files? (/etc/pam.d)
Koybe is offline   Reply With Quote
Old July 18th, 2007   #3
akkad
Way Too Much Ubuntu
 
Join Date: May 2007
Location: Dubai
Beans: 252
Ubuntu 9.04 Jaunty Jackalope
Re: login password twice

as forum suggested i have added the following to this file /etc/pam.d/gdm :
auth optional pam_keyring.so try_first_pass
session optional pam_keyring.so
akkad is offline   Reply With Quote
Old July 18th, 2007   #4
Koybe
Dipped in Ubuntu
 
Koybe's Avatar
 
Join Date: Oct 2005
Location: Belgium
Beans: 564
Hardy Heron (Ubuntu Development)
Re: login password twice

I guess you installed libpam-keyring package.

So instead of
Code:
 auth	optional	pam_keyring.so try_first_pass
session	optional	pam_keyring.so
in /etc/pam.d/gdm

just put :
Code:
@include common-pamkeyring
Koybe is offline   Reply With Quote
Old July 20th, 2007   #5
akkad
Way Too Much Ubuntu
 
Join Date: May 2007
Location: Dubai
Beans: 252
Ubuntu 9.04 Jaunty Jackalope
Re: login password twice

ok here is what i did :
- sudo gedit /etc/pam.d/gdm
- then i did the replacement u told me about

but it is still the same i should enter the password two times
akkad is offline   Reply With Quote
Old July 20th, 2007   #6
Koybe
Dipped in Ubuntu
 
Koybe's Avatar
 
Join Date: Oct 2005
Location: Belgium
Beans: 564
Hardy Heron (Ubuntu Development)
Re: login password twice

Could you explain more?

When exactly are you asked for the password the second time? Both in login screen? One before, one after?

Eventually, post your /etc/pam.d/common-auth, /etc/pam.d/common-account and /etc/pam.d/gdm
Koybe is offline   Reply With Quote
Old July 20th, 2007   #7
dca
Fresh Brewed Ubuntu
 
dca's Avatar
 
Join Date: Jul 2006
Location: Orlando
Beans: 1,260
Ubuntu 8.04 Hardy Heron
Re: Login screen asks for password twice

It's possible network manager is asking the p/w after login when detecting networks???
__________________

Registered Linux User #419773, Ubuntu User #8473

If you type rm -Rf / as root at command line you will get herpes... then die...
"It is what it is."
dca is offline   Reply With Quote
Old July 20th, 2007   #8
akkad
Way Too Much Ubuntu
 
Join Date: May 2007
Location: Dubai
Beans: 252
Ubuntu 9.04 Jaunty Jackalope
Re: Login screen asks for password twice

here is the case exactly :
on the login screen itself i asked to enter the username first then password, as i enter the password and then press enter the password text field is cleared and i should enter the password again after that it will login and load desktop.

guys am not talking about the network password or the keyring password, it is all in the login screen before loading the desktop, but i mentioned the keyring in my post because this behavior appeared after i did the configuration for keyring.
akkad is offline   Reply With Quote
Old July 21st, 2007   #9
Koybe
Dipped in Ubuntu
 
Koybe's Avatar
 
Join Date: Oct 2005
Location: Belgium
Beans: 564
Hardy Heron (Ubuntu Development)
Re: Login screen asks for password twice

Ok. Could you then post the files I asked you?

Code:
cat /etc/pam.d/common-account
cat /etc/pam.d/common-auth
cat /etc/pam.d/gdm
Koybe is offline   Reply With Quote
Old July 21st, 2007   #10
akkad
Way Too Much Ubuntu
 
Join Date: May 2007
Location: Dubai
Beans: 252
Ubuntu 9.04 Jaunty Jackalope
Re: Login screen asks for password twice

the result for cat /etc/pam.d/common-account :
#
# /etc/pam.d/common-account - authorization settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authorization modules that define
# the central access policy for use on the system. The default is to
# only deny service to users whose accounts are expired in /etc/shadow.
#
account required pam_unix.so


the result for cat /etc/pam.d/common-auth:
#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
auth required pam_unix.so nullok_secure


the result for cat /etc/pam.d/gdm :
#%PAM-1.0
auth optional pam_keyring.so try_first_pass
session optional pam_keyring.so
auth requisite pam_nologin.so
auth required pam_env.so
@include common-auth
@include common-account
session required pam_limits.so
@include common-session
@include common-password


i hope i got u the needed output.
akkad is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:53 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry