LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-14-2002, 11:50 PM   #1
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
PAM User Login Authentication Failure


I have box at school that is being used by students to do labs. With new accounts I issue them a passwd and then use chage to set the passwd expiration date to a past date so that when they login they have to change their passwd.

I setup a new box today with some new user and when I tried to login with a dummy account I got this error when I tried to login...

Nov 14 10:21:26 host sshd(pam_unix)[16491]: authentication failure; logname=user uid=0 euid=0 tty=/dev/pts/3 ruser= rhost=host user=user

To setup the accounts with chage I did...

chage user
mim passwd age: 0
max passwd age:30
last passwd change: 2002-01-01
exp warning: 7
passwd inactive: -1
account inactive: 2003-01-01

chage -l user show this...
mim: 0
max: 30
warning: 7
inactive: -1
last change: 2002-01-01
passwd expires: 2002-01-31
passwd inactive: never
account expires: 2003-01-01

I'm not really familiar with PAM and I've never had this problem before. Does anyone have an idea what might be going on?
 
Old 11-15-2002, 12:43 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
passwd expires: 2002-01-31
Password is expired ...
 
Old 11-15-2002, 12:56 AM   #3
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
Yes, yes...but when you login it asks for a new password and then after entering the passwd for the first time (it's ask you again to confirm) the user is dropped.

This is suppose to be a trick that you can use so you can issue a passwd to a user and then when they login they have to enter a new passwd. This has worked for me in the past on a different box.
 
Old 11-15-2002, 12:01 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hmm. Can you tell us if you're working with different Sshd versions? I've read sshd->pam is a wee bit b0rken in v3.x
Btw, did you try a diff between the /etc/pam.d dirs?
 
Old 11-16-2002, 05:00 PM   #5
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
I'm using open-ssh-3.4 on my box and my users putty to login. Mmm....broken you say? Would you indulge me further and explain what you mean by the second part of your question?
 
Old 11-16-2002, 08:01 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I just wanted to know if both your /etc/pam.d tree's where different, that's all. Btw, did you try verbose logging? Modules in the stack usually will take "debug" as argument.


Another clarification: I *thought* I read some stuff on a mailinglist a while ago about some interaction between Sshd and PAM being b0rken (PAM side), can't remember tho what it exactly was except it was some really minor glitch.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cyrus NO Login failed: authentication failure nobu Linux - Enterprise 6 10-24-2005 08:15 PM
Login Failure after messing with Authentication Configuration s14rider Linux - Software 8 01-14-2005 02:42 PM
NIS client: user authentication failure mahasona Linux - Networking 0 12-05-2003 03:13 PM
PAM set a no user login policy varoquau Linux - Security 2 10-28-2003 06:37 AM
NIS and pam/gdm authentication failure cquense Linux - Networking 0 07-05-2001 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:01 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