From owner-freebsd-questions@FreeBSD.ORG Sat Sep 29 15:29:55 2007 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 1CE8116A418 for ; Sat, 29 Sep 2007 15:29:55 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id C7E2313C455 for ; Sat, 29 Sep 2007 15:29:54 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so6097857pyb for ; Sat, 29 Sep 2007 08:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=aOucREz1cgefucg65AGOOuFhGbGx+cSX9PmhtEykjMU=; b=nCX77rStwb/2qXz+/aeDUBE6gKSpViXDyxwI0OZHCQhi93kmxATkntPfm4YOsgmiqUoydTbXTCghrczkSH5G/uLer4xSLR6F4utxwJF3X1kaH8Ud7Ml2gjjBVYrfew7lhMz8ygIOsJn32q0bwSt2keJHRtuG3mK2a6pOZF9+DlI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZyFJiqKNMT78YSjVGSNkNARSHMOHmxTFwR1uf8uxAOFlUatgbvjhjmlIQFEg27dHBMMM5I3L0J0F2M/4drQ32GYoNf65NeIAl6pDOfk+DXgNHRJ8l/2APLkPVGY6Z/guU/+bqIHzFkx1qoLgMNke+y0ORJ9gEkHaFrDSAl3jYws= Received: by 10.35.87.10 with SMTP id p10mr5152594pyl.1191079793873; Sat, 29 Sep 2007 08:29:53 -0700 (PDT) Received: by 10.35.128.7 with HTTP; Sat, 29 Sep 2007 08:29:53 -0700 (PDT) Message-ID: <8cb6106e0709290829m780a4942nb0e87860268b71df@mail.gmail.com> Date: Sat, 29 Sep 2007 11:29:53 -0400 From: "Josh Carroll" To: "FreeBSD Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sshd+pam problem on a fresh 6.2-RELEASE (amd64) install X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2007 15:29:55 -0000 On a fresh install of FreeBSD 6.2 (amd64), I've run into a problem with sshd and PAM. When the box first boots up, I cannot ssh in. I am immediately disconnected. If I look in /var/log/auth.log, I see: Sep 29 03:20:47 pflog sshd[68798]: in openpam_load_module(): no pam_opieaccess.so found Sep 29 03:20:47 pflog sshd[68798]: fatal: PAM: initialisation failed The /etc/pam.d/sshd file is proper (verified via mergemaster). If I comment out the lines for the opie and opieaccess module, it fails on pam_login_access.so instead, with the same error. I also used the default sshd_config, thinking maybe my customized one was causing a problem. It had the same problem, however, and does this with or without UsePAM yes in sshd_config. Now, here's the weird part: if I restart sshd, it works fine. As a workaround, I can do something ugly like /etc/rc.d/sshd restart in another rc script, but would obviously like to avoid this and find the root cause. Any ideas? I tried doing an ldd on /usr/lib/pam* inside the /etc/rc.d/sshd script, but the output is identical when it starts up on boot as when I restart it. No missing libraries/etc. Thanks, Josh