Re: Extend - problems with ownerships/run-as

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hamish Whittal wrote:
> 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.

You could use "sudo ... MegaCli ..." in your script and configure your 
sudoers file appropriately.


+Thomas

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.