我是新来的BSD,我已经尝试search谷歌关于这个错误,但似乎没有人遇到它或什么。
当我尝试通过“/usr/local/etc/rc.d/oidentd.sh start”运行oidentd。 它说没有find命令。
当我尝试通过“oidentd start”运行它时,出现以下错误: [line 12]此构造仅对用户configuration文件有效。 读取configuration文件时出错
我在/ etc /中添加了oidentd.conf,并在rc.conf中添加了oidentd_enable =“YES”。
这是我在我的oidentd.conf中的
default { default { allow spoof deny spoof_all deny spoof_privport allow random_numeric allow numeric allow hide } } global { Reply "hello" } user root { default { force reply "UNKNOWN" } }
我现在卡住了,找不到任何关于它的文章。
“全局”指令仅为用户configuration专门定义。 也就是说,它可以用于用户宿主的configuration(〜/ .oidentd.conf)。 您必须从/usr/local/etc/oidentd.conf中删除全局指令(这是缺省位置,oidentd服务将寻找oidentd.conf)。 您可以使用oidentd_conf rc.confvariables来指定configuration文件的另一个位置,因此oidentd rc.conf条目可能如下所示:
oidentd_enable="YES" oidentd_conf="/usr/local/etc/oidentd.conf" #the default
至于第一个错误(当作为服务启动oidentd)…这可能需要一点debugging,因为我不知道是什么可能会导致此问题。 现在,按照上面的描述修复configuration文件,并尝试再次启动服务。