PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > login problem (password corruption? pam?)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

login problem (password corruption? pam?)

Réponse
 
LinkBack Outils de la discussion
Vieux 06/07/2008, 19h50   #1
Joseph Neal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut login problem (password corruption? pam?)

Hello all.

Logins keep going bad on me. Repeatedly.

I first noticed the problem yesterday after updating sid. First sudo failed
to accept my password. I logged out of KDE and was not able to log back in.

Let's call my normal login that I've been using the past couple years login1.

After this happened I switched to a console where I was successfully able to
log in as root. I tried using usermod to reset the password for user1 but
was still unable to login. I can su to user1 from root, however. I created
a new user, user2, which I was able to use to successfully log in. After
adding user2 to sudoers I was able to use kuser to change the password for
user1 and log back in to my normal account. All was fine and dandy until a
few hours later the same thing started happening again. This time I was
unable to log in as user1 or user2 so I was forced to create a user3 and
again use kuser to set a new password for user1.

This time I'm not logging out until I figure out what's going on.

Any guess as to what's going on?

Any idea why kuser lets me successfully reset the password and not usermod?

Here's how all this looked to auth.log:

Jul 6 07:55:33 dsl017-124-002 kdm: :0[4670]: pam_unix(kdm:auth):
authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user
=joe
Jul 6 07:55:51 dsl017-124-002 kdm: :0[4670]: pam_unix(kdm:auth):
authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user
=joseph
Jul 6 07:56:22 dsl017-124-002 login[4702]: pam_unix(login:auth):
authentication failure; logname=LOGIN uid=0 euid=0 tty=tty4 ruser= rhost
= user=joe
Jul 6 07:56:24 dsl017-124-002 login[4702]: FAILED LOGIN (1) on 'tty4' FOR
`joe', Authentication failure
Jul 6 07:56:29 dsl017-124-002 login[4702]: pam_unix(login:session): session
opened for user root by LOGIN(uid=0)
Jul 6 07:56:29 dsl017-124-002 login[4761]: ROOT LOGIN on 'tty4'
Jul 6 07:59:48 dsl017-124-002 usermod[8030]: change user `joe' password
Jul 6 07:59:59 dsl017-124-002 login[4700]: pam_unix(login:auth):
authentication failure; logname=LOGIN uid=0 euid=0 tty=tty3 ruser= rhost
= user=joe
Jul 6 08:00:01 dsl017-124-002 login[4700]: FAILED LOGIN (1) on 'tty3' FOR
`joe', Authentication failure
Jul 6 08:00:40 dsl017-124-002 su[8035]: Successful su for joe by root
Jul 6 08:00:40 dsl017-124-002 su[8035]: + tty4 root:joe


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 07/07/2008, 03h00   #2
Raj Kiran Grandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: login problem (password corruption? pam?)

Joseph Neal wrote:
> Hello all.
>
> Logins keep going bad on me. Repeatedly.
>
> I first noticed the problem yesterday after updating sid. First sudo failed
> to accept my password. I logged out of KDE and was not able to log back in.
>
> Let's call my normal login that I've been using the past couple years login1.
>
> After this happened I switched to a console where I was successfully able to
> log in as root. I tried using usermod to reset the password for user1 but
> was still unable to login. I can su to user1 from root, however. I created
> a new user, user2, which I was able to use to successfully log in. After
> adding user2 to sudoers I was able to use kuser to change the password for
> user1 and log back in to my normal account. All was fine and dandy until a
> few hours later the same thing started happening again. This time I was
> unable to log in as user1 or user2 so I was forced to create a user3 and
> again use kuser to set a new password for user1.
>
> This time I'm not logging out until I figure out what's going on.
>
> Any guess as to what's going on?
>
> Any idea why kuser lets me successfully reset the password and not usermod?


By reset, do you mean setting a null password? For that you can just use
"passwd -d <username>"

Did you check the /etc/passwd and /etc/shadow files to see whether the
usernames are disabled?

I suggest doing the following:

Create a new user4. Login from the console as user4 and make a backup of
your /etc/passwd and /etc/shadow files. Wait till the system refuses to
let you in, and then compare the files with your backed up versions to
see if something suspicious is going on.


>
> Here's how all this looked to auth.log:
>
> Jul 6 07:55:33 dsl017-124-002 kdm: :0[4670]: pam_unix(kdm:auth):
> authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user
> =joe
> Jul 6 07:55:51 dsl017-124-002 kdm: :0[4670]: pam_unix(kdm:auth):
> authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user
> =joseph
> Jul 6 07:56:22 dsl017-124-002 login[4702]: pam_unix(login:auth):
> authentication failure; logname=LOGIN uid=0 euid=0 tty=tty4 ruser= rhost
> = user=joe
> Jul 6 07:56:24 dsl017-124-002 login[4702]: FAILED LOGIN (1) on 'tty4' FOR
> `joe', Authentication failure
> Jul 6 07:56:29 dsl017-124-002 login[4702]: pam_unix(login:session): session
> opened for user root by LOGIN(uid=0)
> Jul 6 07:56:29 dsl017-124-002 login[4761]: ROOT LOGIN on 'tty4'
> Jul 6 07:59:48 dsl017-124-002 usermod[8030]: change user `joe' password
> Jul 6 07:59:59 dsl017-124-002 login[4700]: pam_unix(login:auth):
> authentication failure; logname=LOGIN uid=0 euid=0 tty=tty3 ruser= rhost
> = user=joe
> Jul 6 08:00:01 dsl017-124-002 login[4700]: FAILED LOGIN (1) on 'tty3' FOR
> `joe', Authentication failure
> Jul 6 08:00:40 dsl017-124-002 su[8035]: Successful su for joe by root
> Jul 6 08:00:40 dsl017-124-002 su[8035]: + tty4 root:joe
>
>


--

If you can't explain it simply, you don't understand it well enough.
-- Albert Einstein


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11089 seconds with 10 queries