You are not logged in.

#1 2003-06-05 16:40:02

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

PAM or SHADOW utilities ** B I G ** Problem

After the today update which installed pam and updated shadow, something weird happen with useradd/userdel

when I type

useradd  test
Password:
Enter new UNIX password:
Retype new UNIX password:

Each of them about root!!!
I mean, the first password it ask is the root one  (the user I logged in) and If I give a new password it change the root password. It is not very nice :cry:
If I write a wrong root password at first, this is the message:

useradd  test
Password:
useradd: PAM authentication failed

If I write the corect one but I write two different password  at  the second and third step:

useradd test
Password:
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
useradd: PAM chauthtok failed

But the user is added anyway.

So I am almost sure is a bug somewhere in the pam o in Shadow password file utilities  :shock:

Offline

#2 2003-06-05 19:09:59

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: PAM or SHADOW utilities ** B I G ** Problem

I'm working on the PAM issues now.  In the meantime, the quickest way to fix these problems is to add this line to /etc/pam.d/other:

auth           sufficient      pam_rootok.so

so the file looks like this:

#%PAM-1.0
auth            sufficient      pam_rootok.so
auth            required        pam_unix.so
account         required        pam_unix.so
password        required        pam_unix.so
session         required        pam_unix.so

Sorry for the inconvenience.

Offline

#3 2003-06-05 20:14:45

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: PAM or SHADOW utilities ** B I G ** Problem

Okay, PAM attempt #2 is up.

You'll probably see a couple file conflict errors when you --sysupgrade.  Just --force em.

Offline

#4 2003-06-07 09:23:45

miki
Member
Registered: 2003-04-02
Posts: 25

Re: PAM or SHADOW utilities ** B I G ** Problem

auth            sufficient      pam_unix.so

Offline

Board footer

Powered by FluxBB