简体   繁体   English

我是否需要在Linux中为Nagios用户创建帐户?

[英]Do I need to create an account for Nagios user in Linux?

I have installed Nagios on CentOS, and it's working fine. 我在CentOS上安装了Nagios,它工作正常。

I want to try commands from Nagios user, but when I do su nagios from user, I get this: 我想尝试来自Nagios用户的命令,但是当我从用户那里做su nagios时,我得到了这个:

This account is currently not available. 此帐户目前无法使用。

But the web interface is working fine. 但是网络界面运行正常。 What's the problem here? 这有什么问题?

Probably no problems there, it's common to disable login for daemon "users". 可能没有问题,禁用登录守护程序“用户”是很常见的。

Check /etc/passwd , the login shell is probably disabled for this user. 检查/etc/passwd ,该用户可能已禁用登录shell。 You shouldn't be executing commands as nagios . 你不应该像nagios一样执行命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM