>>>>> 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

Reply via email to