From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 03:15:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07F2C1065670 for ; Mon, 19 Jul 2010 03:15:28 +0000 (UTC) (envelope-from mmcgrew1@mail.csuchico.edu) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3D548FC1E for ; Mon, 19 Jul 2010 03:15:27 +0000 (UTC) Received: by iwn35 with SMTP id 35so5217109iwn.13 for ; Sun, 18 Jul 2010 20:15:27 -0700 (PDT) Received: by 10.231.173.145 with SMTP id p17mr5149402ibz.32.1279507507305; Sun, 18 Jul 2010 19:45:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.150.196 with HTTP; Sun, 18 Jul 2010 19:44:46 -0700 (PDT) From: Michael McGrew Date: Sun, 18 Jul 2010 19:44:46 -0700 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: samba pam_smbpass & passwd seg fault X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 03:15:28 -0000 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? /usr/local/etc/smb.conf security = user passdb backend = smbpasswd cat /etc/pam.d/passwd # # $FreeBSD: src/etc/pam.d/passwd,v 1.3.36.1 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 pam_passwdqc.so enforce=users password required pam_unix.so no_warn try_first_pass nullok password optional /usr/local/lib/pam_smbpass.so try_first_pass smbconf=/usr/local/etc/smb.conf [root@localhost ~]# passwd Changing local password for root New Password: Retype New Password: Segmentation fault: 11 (core dumped)