[Bug 685514] [NEW] snmpd doesn't run as root by default - it should

Francis Galiegue 685514 at bugs.launchpad.net
Sun Dec 5 14:14:36 GMT 2010


Public bug reported:

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:/, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:31
Row 2: hrFSMountPoint:/sys/fs/fuse/connections, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:32
Row 3: hrFSMountPoint:/dev, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:33
Row 4: hrFSMountPoint:/home, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:34
Row 5: hrFSMountPoint:/var, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:35
Row 6: hrFSMountPoint:/boot, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:36
Row 7: hrFSMountPoint:/home/fge/.gvfs, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:37
Row 8: hrFSMountPoint:/root/t, hrFSRemoteMountPoint:, hrFSAccess:1, hrFSStorageIndex:38 <-- HERE

Table hrStorageTable:
Row 1: hrStorageType:1.3.6.1.2.1.25.2.1.2, hrStorageDescr:Physical memory, hrStorageAllocationUnits:1024, hrStorageSize:4047792, hrStorageUsed:2369500
Row 3: hrStorageType:1.3.6.1.2.1.25.2.1.3, hrStorageDescr:Virtual memory, hrStorageAllocationUnits:1024, hrStorageSize:8930220, hrStorageUsed:2384276
Row 6: hrStorageType:1.3.6.1.2.1.25.2.1.1, hrStorageDescr:Memory buffers, hrStorageAllocationUnits:1024, hrStorageSize:4047792, hrStorageUsed:316
Row 7: hrStorageType:1.3.6.1.2.1.25.2.1.1, hrStorageDescr:Cached memory, hrStorageAllocationUnits:1024, hrStorageSize:1189020, hrStorageUsed:1189020
Row 10: hrStorageType:1.3.6.1.2.1.25.2.1.3, hrStorageDescr:Swap space, hrStorageAllocationUnits:1024, hrStorageSize:4882428, hrStorageUsed:14776
Row 31: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/, hrStorageAllocationUnits:4096, hrStorageSize:4882688, hrStorageUsed:910340
Row 32: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/sys/fs/fuse/connections, hrStorageAllocationUnits:4096, hrStorageSize:0, hrStorageUsed:0
Row 33: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/dev, hrStorageAllocationUnits:4096, hrStorageSize:504153, hrStorageUsed:81
Row 34: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/home, hrStorageAllocationUnits:4096, hrStorageSize:3909632, hrStorageUsed:1407358
Row 35: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/var, hrStorageAllocationUnits:4096, hrStorageSize:1220608, hrStorageUsed:231469
Row 36: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/boot, hrStorageAllocationUnits:4096, hrStorageSize:1201184, hrStorageUsed:45101
Row 37: hrStorageType:1.3.6.1.2.1.25.2.1.4, hrStorageDescr:/home/fge/.gvfs, hrStorageAllocationUnits:0, hrStorageSize:0, hrStorageUsed:0
--> 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
ProcVersionSignature: Ubuntu 2.6.35-23.41-generic 2.6.35.7
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

** Affects: net-snmp (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick ubuntu-une

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.
https://bugs.launchpad.net/bugs/685514

Title:
  snmpd doesn't run as root by default - it should



More information about the Ubuntu-server-bugs mailing list