Extend - problems with ownerships/run-as
Hamish Whittal <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi guys, I wish to extend the agent functionality using a script: If I run the command as follows: su -c "/opt/MegaRAID/MegaCli/MegaCli -LDInfo -L0 -a0" root Then I get a result, but running it as: su -c "/opt/MegaRAID/MegaCli/MegaCli -LDInfo -L0 -a0" snmp Then nothing is returned. snmpd runs as the user snmp, but the MegaCli seems only to want to return output when it's run as root, not as snmp. As a result, my script returns an empty string and not what I'm after. How does one get around this type of problem. I would not like to run snmpd as root for obvious security reasons. Thanks H ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users