Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
30.0.0
-
Security Level: Default (Default Security Scheme)
-
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.