Date: Thu, 20 Oct 2005 15:37:50 +0200 (CEST) From: Erik Norgaard <norgaard@math.ku.dk> To: Olaf Greve <o.greve@axis.nl> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Weird SSH problem... Any ideas?!? Message-ID: <Pine.LNX.4.64.0510201534050.20313@shannon.math.ku.dk> In-Reply-To: <43579BE4.90305@axis.nl> References: <435767E5.7020002@axis.nl> <Pine.LNX.4.64.0510201218070.18028@shannon.math.ku.dk> <43578CD9.9020309@axis.nl> <Pine.LNX.4.64.0510201456310.20014@shannon.math.ku.dk> <43579BE4.90305@axis.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.64.0510201534050.20313>