Date: Thu, 4 Aug 2011 19:30:56 +0200 From: Ed Schouten <ed@80386.nl> To: current@FreeBSD.org Subject: nsswitch.conf <-> WITHOUT_NIS Message-ID: <20110804173056.GD1787@hoeg.nl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi folks,
I just noticed cron doesn't work nicely when running a system built
without NIS, since it won't allow you to send emails:
| Aug 4 09:45:00 palm postfix/sendmail[12217]: fatal: www(80): No recipient addresses found in message header
| Aug 4 10:45:00 palm postfix/sendmail[12827]: fatal: www(80): No recipient addresses found in message header
| Aug 4 11:45:00 palm postfix/sendmail[13515]: fatal: www(80): No recipient addresses found in message header
| Aug 4 12:45:00 palm postfix/sendmail[14786]: fatal: www(80): No recipient addresses found in message header
| Aug 4 13:45:01 palm postfix/sendmail[15409]: fatal: www(80): No recipient addresses found in message header
| Aug 4 14:45:00 palm postfix/sendmail[18896]: fatal: www(80): No recipient addresses found in message header
According to various sources, this can be fixed by properly
configuration your nsswitch.conf. Now my question is, how should
nsswitch.conf be adjusted? The src.conf manual page says this:
If set, you might need to adopt your nsswitch.conf(5) and remove
‘nis’ entries.
That sort of seems to imply that you can just remove these lines:
group_compat: nis
passwd_compat: nis
services_compat: nis
But on the other hand, nsswitch.conf says it will default to `nis'
anyway. So I suspect the lines shouldn't be removed, but changed to
`files', right? Maybe we should consider modifying the configuration
file accordingly?
--- etc/Makefile
+++ etc/Makefile
@@ -256,6 +256,9 @@ distribution:
${DESTDIR}/boot/device.hints
.endif
.endif
+.if ${MK_NIS} == "no"
+ sed -i "" -e 's/nis/files/' ${DESTDIR}/etc/nsswitch.conf
+.endif
distrib-dirs:
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
--
Ed Schouten <ed@80386.nl>
WWW: http://80386.nl/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iQIcBAEBAgAGBQJOOtdQAAoJEG5e2P40kaK7vsUP/ifWUpyQ3a6tjUy/G5P48qVU
Jmvp07sUkDXlBIJUe2KHqw9jk/rXwn5fl2fotLFAUxAhpVloF/hRgo3jRkRihO/7
tOGw1DsBWylhLq+7fXury//yQu8LwrUaDsHgVBdDFXJ+AdzZjbHso4MYXda4kMFr
VwiPndK1E42YtEfDVhhT5scNNmyDLqbibHbl4cz5/tO3iM5cCAGAYtrjqqvuuPLl
IeNxlaodgvtkm27/h8uZp176IABdtQ+5sBixt9kMaHccKTa1zZa4aV/AJ+5HU5mi
qzuDNeERzyxDaSCkeDSeDAXKk+0sNYMCITFzIGZLzdGOkd+d4tm1p/v5Pw6Y5Wfa
eERTZUlVmmiL7vqbqMkIuDeW5Kmbl5bp2ASzmv18AuKd0oFkuhr9uT+F1d2K2ho3
l6FexC8TmSGiM7n6LphhSGQQFGKC1g9PqWIxg1AVofagxRB9AmDDhlG4J81BcmIh
qKYgqOFj9dYFOTBCK8MNntXe/ncdiqvCXIepquuEIbuQMluxBtP7aW07Q5G0s/6h
evHdUWvooe9I1m6nIViM2Jt9ebEZBxX3IjigKRmF89nf8KDyaZoGVhMsItEy88Rj
HKj2Jx5qypfeGq7m7Fb/g1rvMpedJcVDYqybGM2I1I3S17U/SmpfUgkWb+U35w9D
qbzbUrkme8JqdY8x5yA3
=T5OO
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110804173056.GD1787>
