samba pam_smbpass & passwd seg fault

Michael McGrew mmcgrew1 at
Mon Jul 19 03:15:28 UTC 2010

I'm trying to sync the local unix account passwords to the samba
smbpass db using pam. When i run passwd, after it's done it seg faults
and produces a core dump. The odd thing is that it works, the users
local unix password gets synced to the smbpass db, but it seg faults.
Below are my relevant config files. Is this a bug or am I doing
something wrong?


security = user
passdb backend = smbpasswd

cat /etc/pam.d/passwd
# $FreeBSD: src/etc/pam.d/passwd,v 2010/02/10 00:26:20 kensmith Exp $
# PAM configuration for the "passwd" service

# passwd(1) does not use the auth, account or session services.

# password
#password       requisite         enforce=users
password        required             no_warn
try_first_pass nullok
password        optional        /usr/local/lib/
try_first_pass smbconf=/usr/local/etc/smb.conf

[root at localhost ~]# passwd
Changing local password for root
New Password:
Retype New Password:
Segmentation fault: 11 (core dumped)

More information about the freebsd-questions mailing list