Re: is it possible to install agent without root priority?

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Fri, 3 Oct 2008 23:36:46 +0800, "xiao ren" <[email protected]> said:

xr> Is there a way to install net-snmp snmpd and run it by a user other
xr> than "root"?  I know that I must specify another listening port, but
xr> besides this, what else do I have to do? Thanks!

You can have it run as anyone.  The issues with doing so are
that the persistent directory isn't writable (/var/net-snmp/snmpd.conf)
but this can be changed with the SNMP_PERSISTENT_FILE and the
SNMPCONFPATH variable.

The bigger issue is that most OSes don't let you access much of the data
you need in order to be able to implement many of the objects that an
agent reports.

The other thing you can do is start the agent as root, but set the
"agentuser" setting in the snmpd.conf file to have it drop down to the
privileges of a non-root user after it starts.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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.