Weird SSH problem... Any ideas?!?
norgaard at math.ku.dk
Thu Oct 20 06:37:55 PDT 2005
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
> 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
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.
More information about the freebsd-questions