Pam question

Michels, Gustavo [EES/BR] gustavo.michels at
Mon Sep 17 10:06:02 GMT 2001

Hello Rogelio,

I found your post in the thread you mentioned, but I haven't applied the
changes. I was about to use your system-auth file, but as I was deleting
/etc/pam.d/samba and restoring /etc/pam.d/passwd to its original, I noticed
samba and winbind still worked correctly, even without any changes in the
pam files. I am sure all files there are as they were when the server was
first installed. But how is samba stil working, if the pam files does not
contain any references to or

Another thing I noticed, logging in via telnet with a local linux user is
taking much longer and if I stop the winbind daemon, telnet logins are as
fast as they should be.

Can you reproduce the same scenario I have here? I am using the latest
samba_2_2 cvs source code, maybe there are some changes there...


-----Original Message-----
From: Rogelio J. Baucells [mailto:rogelio at] 
Sent: segunda-feira, 17 de setembro de 2001 12:09
To: samba at
Subject: RE: Pam question

Hello Gustavo

You need to change the pam files of the services you want to auth using
winbindd. For example if you want to allo users to login using telnet, you
need to change the '/etc/pam.d/login' file. If you are using RedHat linux
there is a system-auth file that is used by all services. I modified this
file because I wanted to auth all services using winbind (my modification to
this file is posted in a thread called 'Winbindd -- before I send a bug
report'). Test your service while you are logged in the console, because if
you modify a file you are using to log in (login, sshd) and there is a
problem with winbind, you wont be able to log in again.

Rogelio J. Baucells

-----Original Message-----
From: Michels, Gustavo [EES/BR] [mailto:gustavo.michels at]
Sent: Monday, September 17, 2001 10:28 AM
To: samba at
Subject: Pam question

Hello people,

Maybe a simple question, but I can't find any info on the list or the
manpages about this.

I am using the latest samba_2_2 cvs code in linux with winbind working
perfectly. The samba server will act as a file/print server, so the users
just need to be authenticated by the NT PDC.

The winbind manpage says to add these entries in /etc/pam.d/*

auth        required    /lib/security/
auth        required    /lib/security/
auth        required    /lib/security/
auth        required    /lib/security/ use_first_pass shadow
account     required    /lib/security/

My question is exactly which file  is this '*' in my case. Which one(s)
should be added/changed in /etc/pam.d? I tried adding a 'samba' file with
these entries as well as using a 'passwd' file with the same entries and
both work. I'd just like to know which one am I supposed to use, or maybe
another one.



To unsubscribe from this list go to the following URL and read the

To unsubscribe from this list go to the following URL and read the

More information about the samba mailing list