Xymon Mailing List Archive search

problem with ext script

list Operaciones
Fri, 05 Jul 2013 16:59:59 +0200
Message-Id: <user-90f1e258d3e6@xymon.invalid>

Thank you Paul, i think that will choose the second option.

Best regards.

El 05/07/13 16:46, Root, Paul T escribió:
Setuid the script

Sudo the command in the script

Run the script as root

Take your pick. The first one is not secure in the least.

The second one will require the xymon user to be in sudoers with permission to run the command without a password required. Or modifying the script to enter the password (which is not secure)

The last is pretty easy, but would be running outside of the tasks.cfg probably in cron. And so you would need to call the script, most likely, with xymoncmd to get the environment right.

Paul.

*From:*Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Operaciones
*Sent:* Friday, July 05, 2013 8:44 AM
*To:* xymon at xymon.com
*Subject:* [Xymon] problem with ext script

Hello Guy,

i have a small problem, i create a script for check the raid status on  Intel mainboards that use the command:

dmraid -r

So, when i run the script with xymon, show the error:

ERROR: you must be root

Do you know how can i fix it?

Thank you very much.