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

Scripts invoke sudo even if running as root

    XMLWordPrintable

Details

    • Horizon 22 - Jun 23 - Jul 7, Horizon 22 - Jul 7 - Jul 21
    • Backlog
    • Multiple

    Description

      The following scripts in $OPENNMS_HOME/bin/ invoke sudo, even when run as root:

       [root@30horizon etc]# grep -Ril sudo ../bin/
      ../bin/fix-karaf-setup.sh
      ../bin/fix-permissions
      ../bin/install
      ../bin/opennms
      ../bin/runjava
      ../bin/update-package-permissions
      ../bin/upgrade
      

       
      This is problematic as some environments do not allow the root user to run commands via sudo (which is unnecessary anyway). This causes each of these commands to fail, and necessitates manually modifying the script to remove the sudo invocation.

      Attachments

        Activity

          People

            amay Alex May
            dino2gnt Dino Yancey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: