Can Nagios be installed to not use /home/nagios?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pdindak
Posts: 2
Joined: Mon Oct 17, 2011 8:54 am

Can Nagios be installed to not use /home/nagios?

Post by pdindak »

On a server where I am installing Nagios 3.3.1 as sudo root, no /home directories are allowed.

Can I configure Nagios install to place /home/nagios somewhere else?

Thanks for your help!

Phil
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Can Nagios be installed to not use /home/nagios?

Post by agriffin »

Yes, you can create the nagios user before you start the installation (from source) and give it a different home directory. For example:

Code: Select all

# /usr/sbin/useradd -r -m -d /var/log/nagios -s /bin/sh -c "Nagios User" nagios
This will put it in /var/log/nagios instead of /home/nagios. Hope that helps!
pdindak
Posts: 2
Joined: Mon Oct 17, 2011 8:54 am

Re: Can Nagios be installed to not use /home/nagios?

Post by pdindak »

It sure did! Thanks for the info!

Phil
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Can Nagios be installed to not use /home/nagios?

Post by agriffin »

You're welcome, Phil! Glad I could help!
Locked