Page 1 of 1
Using SU from root to access other id's for Nagios
Posted: Tue Sep 11, 2018 1:01 pm
by dr057
If we have root access to a system and want to access lower level id's using SU can we issue su <id> within Nagios setup to access commands under those lower level id's to setup alerts? I assume this can be done within Nagios, but just wanted to please confirm.
Just wanted to add, even through we have root it still does not have access to the cmd list under some of the id's since it's an appliance.
Thanks
Re: Using SU from root to access other id's for Nagios
Posted: Tue Sep 11, 2018 3:39 pm
by npolovenko
Hello,
@dr057. Can you show your notification command and demonstrate how you want to edit it? What commands are you trying to access?
Re: Using SU from root to access other id's for Nagios
Posted: Wed Sep 12, 2018 6:37 am
by dr057
Hi Npolovenko,
I'm simply trying to find out if I can issue an su <id> using root from Nagios to access a set of commands under that id. From root alone I cannot access those commands as they are builtin to this application, but if I can do an su <id> in Nagios I can then access that command list.
Thanks
Re: Using SU from root to access other id's for Nagios
Posted: Wed Sep 12, 2018 12:04 pm
by scottwilkerson
you could do this only of you add the su <id> to a script that you have given sudo access to the nagios user.
Re: Using SU from root to access other id's for Nagios
Posted: Thu Sep 13, 2018 8:30 am
by dr057
okay, thanks Scott!
Re: Using SU from root to access other id's for Nagios
Posted: Thu Sep 13, 2018 8:34 am
by scottwilkerson
dr057 wrote:okay, thanks Scott!
May we close the thread?