在CentOS 6.3上遇到麻烦

我在VPS上有一个奇怪的问题。 当我尝试运行它,我不断得到这个错误:

[root @ ldvps〜]#oidentd
[第4行]此构造仅对用户configuration文件有效
读取configuration文件时出错

我也确保它通过input从/etc/oidentd.conf中读取正确的oidentd.conf

oidentd -c /etc/oidentd.conf

但我得到同样的错误。

这是我的oidentd.conf文件:

# Configuration for oidentd # see oidentd.conf(5) # default { default { allow spoof allow spoof_all allow spoof_privport allow random allow random_numeric allow numeric allow hide } } 

有一件事情我做得不对,或者是事实上有问题。 任何帮助或其他build议,将不胜感激。

谢谢。

你的/etc/oidentd.conf应该如下所示:

 default { default { allow spoof deny spoof_all deny spoof_privport allow random_numeric allow numeric allow hide } } user root { default { force reply "UNKNOWN" } } user username { default { allow spoof allow spoof_all allow spoof_privport } } 

您可以定义每个用户的configuration。 发出以下内容

vi ~/.oidentd.conf

 global { reply "nickname" } to irc.freenode.net { reply "freenode" }