--On August 20, 2015 at 3:36:45 AM +0000 Viktor Dukhovni
<[email protected]> wrote:
On Wed, Aug 19, 2015 at 10:21:54PM -0500, Paul Schmehl wrote:
> This is not the right test. Try:
>
> $ getent passwd filter
That returns nothing. It does return the line for my account. So what
would be the cause of that?
Missing from the "passwd" sources as listed in nsswitch.conf, ...
# cat /etc/nsswitch.conf
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: releng/10.2/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z
# dougb
$
#
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
So looks like you're using "nis" only. Read up on nsswitch.conf
and "passwd_compat". At this point you really should be following
the evidence where it leads you without hints at every step.
The problems are not Postfix-specific.
I managed to fix it using the following process:
1) pwd_mkdb -C /etc/password - Inappropriate file format
2) cp /etc/passwd /etc/passwd.bak
3) pwd_mkdb -C /etc/master.passwd (checked out OK)
4) cp /etc/master.passwd /etc/passwd
5) pwd_mkdb -u filter /etc/passwd
After that, getent passwd filter returned the line. So I assume it will
now work, although I won't test it until later.
Paul Schmehl ([email protected])
Independent Researcher