changing nagios user UID

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jmonn
Posts: 9
Joined: Mon Dec 14, 2015 10:27 am

changing nagios user UID

Post by jmonn »

Hello,

My company now requires the uid of nagios user to be a system uid (below 1000 on RHEL), so I am asked if I can change the UID to something below 1000.

id nagios
uid=1000(nagios) gid=1000(nagios) groupes=1000(nagios),1001(nagcmd)

Would that be enough ?

usermod -u 998 nagios
find / -user 1000 -exec chown -h 998 {} \;

Regards,

Jeremy
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: changing nagios user UID

Post by lmiltchev »

This *should* work, however you need to try it in the test environment first, before applying it to production. Make sure you stop nagios, ndo2db, npcd, and crond prior to running these commands. Also, make sure you don't have anything else on the system that is using the 998 UID. After changing the nagios UID, try starting services, and check their status.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: changing nagios user UID

Post by benjaminsmith »

Hello @jmon,

I see you've opened a support ticket for this issue, so I will close this thread. Please open one post/ticket per issue, so we can best focus are efforts.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked