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
changing nagios user UID
Re: changing nagios user UID
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.
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
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!