snmpd doesn't run as root by default - it should
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Opinion
|
Low
|
Unassigned |
Bug Description
I create a test LV with:
lvcreate -L5G -n test data
Now, as root, I mount it as /root/t. hrFSTable does see the new mount point, but it gives an index into hrStorageTable which does not exist:
Table hrFSTable:
Row 1: hrFSMountPoint:/, hrFSRemoteMount
Row 2: hrFSMountPoint:
Row 3: hrFSMountPoint:
Row 4: hrFSMountPoint:
Row 5: hrFSMountPoint:
Row 6: hrFSMountPoint:
Row 7: hrFSMountPoint:
Row 8: hrFSMountPoint:
Table hrStorageTable:
Row 1: hrStorageType:
Row 3: hrStorageType:
Row 6: hrStorageType:
Row 7: hrStorageType:
Row 10: hrStorageType:
Row 31: hrStorageType:
Row 32: hrStorageType:
Row 33: hrStorageType:
Row 34: hrStorageType:
Row 35: hrStorageType:
Row 36: hrStorageType:
Row 37: hrStorageType:
--> NO ROW 38 <--
The problem lies in the fact that snmpd does not run as root - if it does, then I have no problem seeing row 38. Also, if the mount point is accessible by the user running snmpd, I do see the row also.
In general, the fact that snmpd does not run as root limits the use of SNMP as a monitoring tool on Ubuntu very badly.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: snmp 5.4.3~dfsg-1ubuntu3
ProcVersionSign
Uname: Linux 2.6.35-23-generic x86_64
Architecture: amd64
Date: Sun Dec 5 14:59:24 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: net-snmp
Changed in net-snmp (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Opinion |