Page 1 of 1

changing nagios user UID

Posted: Tue Sep 17, 2019 2:37 am
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

Re: changing nagios user UID

Posted: Tue Sep 17, 2019 10:52 am
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.

Re: changing nagios user UID

Posted: Tue Sep 17, 2019 11:54 am
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.