From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 10:27:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 607EE16A41F for ; Thu, 20 Oct 2005 10:27:23 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (fw.math.ku.dk [130.225.103.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80A5243D76 for ; Thu, 20 Oct 2005 10:27:13 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (localhost [127.0.0.1]) by imf.math.ku.dk (Postfix) with ESMTP id BE03E1B3B4; Thu, 20 Oct 2005 12:27:09 +0200 (CEST) Received: from shannon.math.ku.dk (shannon.math.ku.dk [130.225.103.12]) by imf.math.ku.dk (Postfix) with ESMTP; Thu, 20 Oct 2005 12:27:09 +0200 (CEST) Date: Thu, 20 Oct 2005 12:27:09 +0200 (CEST) From: Erik Norgaard To: Olaf Greve In-Reply-To: <435767E5.7020002@axis.nl> Message-ID: References: <435767E5.7020002@axis.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions Subject: Re: Weird SSH problem... Any ideas?!? 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: Thu, 20 Oct 2005 10:27:23 -0000 On Thu, 20 Oct 2005, Olaf Greve wrote: > Oct 20 11:39:40 milx sshd[48147]: Accepted keyboard-interactive/pam for > abcdef from 123.45.67.89 port 35335 ssh2 > Oct 20 11:39:40 milx sshd[48150]: fatal: login_get_lastlog: Cannot find > account for uid 1234 Some things to try, in sshd_config set: PrintLastLog=no LogLevel=DEBUG try toggling with AllowGroups and AllowUsers this is good for security also as you can deny system users or groups login and restrict users to login only from specific hosts, see the manpage for more options. Also try: lastlog > -This does not happen when "su -" ing to the user's account from the box > itself. Note, there is a differens between su'ing and logging in. Can you login? > -This may not happen to users that are allowed to become root (i.e. are in > the wheel group). > Possibly it would help to add the user account to the wheel group, but I'm > reluctant to do so for obvious reasons. No, you never want to accept such a solution, even if it solves the problem. Cheers, Erik