From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 13:37:54 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 DF9D216A41F for ; Thu, 20 Oct 2005 13:37:54 +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 762CF43D62 for ; Thu, 20 Oct 2005 13:37:54 +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 0643C24FA3; Thu, 20 Oct 2005 15:37:51 +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 15:37:51 +0200 (CEST) Date: Thu, 20 Oct 2005 15:37:50 +0200 (CEST) From: Erik Norgaard To: Olaf Greve In-Reply-To: <43579BE4.90305@axis.nl> Message-ID: References: <435767E5.7020002@axis.nl> <43578CD9.9020309@axis.nl> <43579BE4.90305@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 13:37:55 -0000 On Thu, 20 Oct 2005, Olaf Greve wrote: >> Well, it all seems to be a question of granting users access to the right >> file. Have you checked permissions on /etc/passwd and /etc/pwd.db ? > > These are both 644, owned by root:wheel. > >> These should be world readable while /etc/master.passwd and /etc/spwd.db >> should not. > > These are both 600, owned by root:wheel. > > Sounds like both have their permissions set-up just fine. Nonetheless I > suspect something went wrong when migrating these files from my previous > FreeBSD 5.2.1-release i386 machine, to my new FreeBSD 5.4-release amd64 > machine... > Basically, I just copied those four files (plus the group file) across, and > then rebuild the user's directory of the user that was having the login > issues... I think you can use mtree to get permissions right if they for some reason have been changed. Another effect I would suspect you see - that is normal users see - is that files' owner and group appears as numbers not the corresponding names. One interesting thing here is whether both user and group are numbers or only users. Try as normal user to 'ls -l /home' or something. Regarding 'login', you can invoke the 'login' command from a shell to allow a user to "really" login. Cheers, Erik