[Samba] pam problems (apparently)

Eric S. Johansson esj at harvee.org
Wed Jun 29 23:53:59 GMT 2005


I've been having authentication problems with samba over the past couple 
of days as a try to build a new configuration.  Try all the different 
options of using pam, not using pam, encrypted, not encrypted passwords 
etc. nothing works.

So I strip everything (and I mean everything) out of smb.conf and try to 
use swat for configuration.  It fails to authenticate me and finally I 
get a log entry that might mean something (versus nothing in the log, 
any log).

log.swat:

[2005/06/29 17:34:58, 0] auth/pampass.c:smb_pam_passcheck(810)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User root !

the pam configuration is:

#%PAM-1.0
# * pam_smbpass.so authenticates against the smbpasswd file
# * changed Redhat's 'pam_stack' with 'include' for *BSD compatibility
#    (Diego "Flameeyes" Petteno'): enable with pam>=0.78 only
auth       required     pam_smbpass.so nodelay
#account    include      system-auth
#session    include      system-auth
account    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
password   required     pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf

private/smbpasswd has the root account password in it although I cannot 
verify its correctness.

I figure the authentication problem is not samba configuration related 
but more likely somewhere else like pam.

pointers would be most appreciated.

---eric



More information about the samba mailing list