![libsasl2 更改路径](https://linux22.com/image/596677/libsasl2%20%E6%9B%B4%E6%94%B9%E8%B7%AF%E5%BE%84.png)
我一直在关注教程https://help.ubuntu.com/community/Postfix用于在 ubuntu 上安装 Postfix。
我被困在教程的身份验证部分,您可以在其中更改路径以位于错误的根目录中,如果您查看上面的链接,我有一个文件(/etc/default/saslauthd),它与教程中的文件几乎相同。
萨斯劳德
# This needs to be uncommented before saslauthd will be run automatically
START=yes
PWDIR="/var/spool/postfix/var/run/saslauthd"
PARAMS="-m ${PWDIR}"
PIDFILE="${PWDIR}/saslauthd.pid"
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="pam"
# Other options (default: -c)
# See the saslauthd man page for information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
# Note: See /usr/share/doc/sasl2-bin/README.Debian
#OPTIONS="-c"
#make sure you set the options here otherwise it ignores params above and will not work
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
当我在 ubuntu 中运行以下命令时
dpkg-statoverride --force --update --add root sasl 755 /var/spool/postfix/var/run/saslauthd
我收到以下错误
dpkg-statoverride: warning: An override for '/var/spool/postfix/var/run/saslauthd' already exists, but --force specified so will be ignored.
dpkg-statoverride: warning: --update given but /var/spool/postfix/var/run/saslauthd does not exist
我不知道为什么会发生这种情况,我严格按照教程一步一步操作,安装了所有必要的软件包,可能是什么问题?我必须手动创建
答案1
首先,它们是警告,而不是错误。
其次,阅读下一行:
这可能会报告“给定”的错误
--update
,并且/var/spool/postfix/var/run/saslauthd
目录不存在。您可以忽略它,因为saslauthd
下次启动时它将被创建。