Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13725

invalid permissions in /var/opennms on fresh install

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 29.0.0
    • 29.0.0
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • CentOS Stream release 8
      OpenJDK 11

    Description

      Installed from 30.0.0-SNAPSHOT RPMs and found that RRDs were not being saved to disk.

      I found that /opt/opennms/share/rrd or effectively /var/opennms/rrd is still owned by root, even though the process runs as the 'opennms' user.

      chown'ing the directory be be owned by 'opennms' resolves the issue:

      $ rpm -qa | grep opennms
      opennms-webapp-jetty-30.0.0-0.20211109.develop.89118.noarch
      opennms-30.0.0-0.20211109.develop.89118.noarch
      opennms-core-30.0.0-0.20211109.develop.89118.noarch
      $ ls -alh /opt/opennms/
      total 100K
      drwxr-xr-x. 10 root    root    4.0K Nov  9 04:01 .
      drwxr-xr-x.  5 root    root    4.0K Nov  9 03:59 ..
      drwxrwxr-x.  2 opennms opennms 4.0K Nov  9 03:59 bin
      drwxrwxr-x. 11 opennms opennms 4.0K Nov  9 03:59 contrib
      drwxrwxr-x.  7 opennms opennms 4.0K Nov  9 04:40 data
      drwxrwxr-x.  2 opennms opennms 4.0K Nov  9 03:59 deploy
      drwxrwxr-x. 27 opennms opennms  12K Nov  9 04:40 etc
      drwxr-xr-x.  4 opennms opennms 4.0K Nov  9 04:01 jetty-webapps
      drwxrwxr-x.  6 opennms opennms  56K Nov  9 03:59 lib
      lrwxrwxrwx.  1 opennms opennms   16 Nov  9 03:59 logs -> /var/log/opennms
      lrwxrwxrwx.  1 opennms opennms   12 Nov  9 03:59 share -> /var/opennms
      drwxrwxr-x. 30 opennms opennms 4.0K Nov  9 03:59 system
      $ ls -lah /var/opennms
      total 28K
      drwxr-xr-x.  7 opennms opennms   76 Nov  9 03:59 .
      drwxr-xr-x. 23 root    root    4.0K Nov  9 03:59 ..
      drwxr-xr-x. 24 root    root    8.0K Nov  9 03:59 etc-pristine
      drwxr-xr-x.  3 root    root      22 Nov  9 03:59 mibs
      drwxr-xr-x.  2 root    root      21 Nov  9 03:59 reports
      drwxr-xr-x.  4 root    root   49 Nov  9 03:59 rrd
      drwxr-xr-x.  2 root    root    8.0K Nov  9 03:59 xsds
      $ df -h | grep opt
      /dev/sdb1      1007G  1.3G  955G   1% /opt
      

      Attachments

        Activity

          People

            ranger Benjamin Reed
            j-white Jesse White
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: