fping should be setuid to root to work when running as user netdata (static binary); #2665
Costa Tsaousis (ktsaou) committed
Sep 5, 2017 at 22:59 UTC
419e92175d3873a2d171ab3df7f185c275dbdc50
1 file changed
+6
makeself/install-or-update.sh
+6
@@ -149,6 +149,12 @@ do
149
fi
150
done
151
152
+# fix the fping binary
153
+if [ -f bin/fping ]
154
+then
155
+ run chown root:${NETDATA_GROUP} bin/fping
156
+ run chmod 4750 bin/fping
157
+fi
158
159
# -----------------------------------------------------------------------------
160
progress "starting netdata"