You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch

16 lines
415 B

--- a/cfg/vnstat.conf
+++ b/cfg/vnstat.conf
@@ -69,10 +69,10 @@
##
# switch to given user when started as root (leave empty to disable)
-DaemonUser ""
+DaemonUser "vnstat"
# switch to given group when started as root (leave empty to disable)
-DaemonGroup ""
+DaemonGroup "vnstat"
# try to detect interface maximum bandwidth, 0 = disable feature
# MaxBandwidth will be used as fallback value when enabled