The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT]Adding MIBs to netSNMP



I know there are a few *nix Gurus around so wondering if anyone can help...

I have some software which uses NetSNMP via some PHP pages running via
apache and I have a custom MIB I am looking at. I can use the MIB to get
names for OIDs via the command line by either forcing the command line util
to use all my MIBs (-m ALL) or by adding it to $HOME/.snmp/snmp.conf.

Now as far as I can tell a PHP script is executed by apache as user
"nobody". On my install (a pretty default RedHat8 + Apache) the
home dir for
"nobody" is "/". So I added a "/.snmp" dir
and snmp.comf file, then set
owner and group to "nobody". Now it works - the PHP script is
making use of
the new custom MIB ..... BUT

is this safe ? is there a better way ?

Thanks

Dean

ls -al .*

.snmp:
total 12
drwxr-xr-x    2 nobody   nobody       4096 Nov 23 16:37 .
drwxr-xr-x   20 root     root         4096 Nov 23 16:37 ..
-rw-r--r--    1 nobody   nobody         10 Nov 23 16:37 snmp.conf





Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.