Running master agent and subagent not as root

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170A1C779@dexbe012-6.exch012.intermedia.net>
 
Can anyone tell me how to run the master agent and the subagent not as
root?

I tried adding the following to snmpd.conf
master agentx
agentXSocket /tmp/agentx/master
agentXperms 0660 0550 nobody snmp

And I added this to the subagent:
    netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET,
                      "/tmp/agentx/master");

But get this error when I run the master agent:
agentx/master: initializing...
Error: Couldn't open a master agentx socket to listen on
(/tmp/agentx/master): 

Everything works fine if I run the master agent and the subagent as
root.

Any info would be appreciated

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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.