NagiosEnterprises/ncpa

Nagios user with interactive shell

MaKeG0 opened this issue · 1 comments

Deploying NCPA on Ubuntu sets the nagios user with an interactive shell by default. Manually changing it to nologin didn't disrupt Nagios functionality. Is this behavior intentional or should it be corrected?

Suggestion: Consider adding the command usermod -s $(which nologin) nagios to build/linux/setup.sh to automatically set the shell to nologin.

Sorry, tested the $(which nologin) on SUSE and failed. I’m sure there is a way to make it compatible with all needed distros.