LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-13-2004, 11:41 AM   #1
xfurious_mindx
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
login asks for password twice before authenticating


I have a peculiar problem. I have been messing with samba configuration (authenticating against an LDAP server - yikes) - and now whenever i log in via the x interface OR when i try to authenticate as su after logging in via ssh2, i am asked for my password twice. anybody have any ideas? this does NOT happen when logging in via ssh, btw - only when i'm already logged in and trying to use su powers.

tia
 
Old 04-13-2004, 12:08 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If you su as a user, your then logged in as that user.. so if your trying to access a Samba share as that user, that's why its asking for authentication once again, as that user.

Whenever you su, your logging in as that user, so you have to authenticate. The only user that it won't prompt a password for is when your root and su to another user, etc.
 
Old 04-13-2004, 12:18 PM   #3
xfurious_mindx
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
sorry, i didn't make myself clear.

when i log in to x (not samba), it asks for the username once, and the password twice. it only logs in after the password has been put in twice. it only looks at the second password for authentication, as i can put anything in for the first password and not receive an error message.

when i log in via ssh, it asks for the username and password once (after authenticating against my key)

however, when i'm logged in a ssh shell, and try to su, it asks for the su password twice. again, it only looks at the second password for authentication.

on any other system (even those running samba), when i log in to x or su after i'm in ssh, it only asks for the password once.

does that make any better sense?
 
Old 07-03-2009, 08:57 AM   #4
damaha
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
Unhappy

Have you resolved the problem?
If yes: how?

I have the identical problem and no idea, how to cure it
 
Old 07-03-2009, 09:52 AM   #5
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
How is your PAM setup?
Depending on your distro, it will be located in /etc/pam.d/auth or /etc/pam.d/system-auth
If you are using LDAP authetication, you should only have sufficient across from pam_unix.so and pam_ldap.so
You will probably find that you have required beside pam_unix.so
 
Old 07-06-2009, 04:00 AM   #6
damaha
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
My Distro ist Ubuntu.

I use it as a mailserver(Zimbra) and Samba-Server, utilising LDAP for user-management.
PAM setup is in /etc/pam.d/common-auth and is already:

auth sufficient pam_ldap.so
auth sufficient pam_unix.so


What else could be the problem?

thanx in advance ...
 
Old 07-07-2009, 04:32 AM   #7
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Can you post the full common-auth?
 
Old 07-08-2009, 03:11 AM   #8
damaha
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
I already did: The two lines above are the whole content of the file.
 
Old 10-05-2010, 12:30 AM   #9
pvsuja
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Hi,

I also have the same problem..
Please help me if you have already solved it?
 
Old 09-17-2012, 08:54 AM   #10
takeshimitsuiami
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
try this
auth sufficient pam_ldap.so use_first_pass
auth required pam_unix.so nullok_secure use_first_pass
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux asks me for a password feigenluis Linux - Newbie 10 05-31-2005 06:07 AM
suse live cd asks me for login name then password?? ginda Linux - Newbie 1 10-10-2004 04:48 PM
network asks for password????? naginata Linux - Networking 1 03-28-2004 09:45 AM
Samba asks password element Linux - Networking 1 09-11-2003 04:35 PM
Redhat 8 asks for root password before dialling head8k Linux - Newbie 9 02-21-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration